Skip to contentSkip to conversation

/mm/slab.c

KJ Christophe Jaillet 1 participant 1 message Mar 13, 2006 Kernel janitors

lore
Share & tools
lore
#0 lore raw

Hi all,

in /mm/slab.c we can find around line 263 :

struct array_cache {
unsigned int avail;
unsigned int limit;
unsigned int batchcount;
unsigned int touched;
spinlock_t lock;
void *entry[0]; /*
* Must have this definition in here for the proper
* alignment of array_cache. Also simplifies accessing
* the entries.
* [0] is for gcc 2.95. It should really be []. */
};

The last line of the comment seems outdated, so maybe it could be removed and the [0] turned into [] as suggested which is IMO a bit clearer.

As far as I know (/Documentation/Changes), 2.95 is no more the reference when building the kernel.

As I have actually no way to compile the kernel, I just point it out in case someone wants to give it a try.

CJ

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors