On 15 August 2013 18:33, Wolfram Sang <[email protected]> wrote:
> On Thu, Aug 08, 2013 at 10:55:11AM +0530, Sachin Kamat wrote:
>> __initdata should be placed between the variable name and equal
>> sign for the variable to be placed in the intended section.
>>
>> Signed-off-by: Sachin Kamat <[email protected]>
>
> Did this become a rule? Where? When?
The correct usage has been documented in the header file init.h where
the macros have been defined.
I quote it below for reference:
For initialized data:
* You should insert __initdata between the variable name and equal
* sign followed by value, e.g.:
*
* static int init_variable __initdata = 0;
* static const char linux_logo[] __initconst = { 0x32, 0x36, ... };
--
With warm regards,
Sachin
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html