[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] Re: [KJ] [PATCH] dm: uninitialize static variables



>  static unsigned int __attribute__((__section__(".bss"))) major = 0;
>  static unsigned int __attribute__((__section__(".bss"))) _major = 0;

it should be:

static unsigned int major __attribute__ ((section(".bss"))) = 0;

> If you could tell me how to achieve this in a fancy way which also works,
> I'm all ears. Maybe the janitorial steering committee might also like the
> idea enough to adjust their current TODO list.

yup, maybe it's worth of a discussion on the list

-- 
Carlos Manuel Duclos Vergara
http://www.toolchains.com/personal/blog


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]