> > +static unsigned long sched_core_alloc_task_cookie(void) > > +{ > > + struct sched_core_task_cookie *ck = > > + kmalloc(sizeof(struct sched_core_task_cookie), GFP_KERNEL); > > struct sched_core_task_cookie *ck = kmalloc(sizeof(*ck), GFP_KERNEL); > > Also, those type names are unfortunately long.. > > > +static void sched_core_get_task_cookie(unsigned long cookie) > > +{ > > + struct sched_core_task_cookie *ptr = > > + (struct sched_core_task_cookie *)cookie; > > struct sched_core_task_cookie *ptr = (void *)cookie; > > Know your language and use it to avoid typing excessively long names :-)
Good point, done. Keeping sched_core_task_cookie for now unless you'd prefer a replacement, since it is only used internally by coretag.c.