__cpuinitconst and __devinitconst
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | introduce __cpuinitconstdrivers/ include/ | +3 | 2 replies | |
| 2/4 | use __cpuinitconst for x86arch/ arch/ arch/ +7 more | +29 | 0 replies | |
| 3/4 | introduce __devinitconstdrivers/ drivers/ drivers/ +1 more | +6 | 2 replies | |
| 3/4 | use __devinitconst on x86arch/ arch/ arch/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] __cpuinitconst and __devinitconst
Since __cpuinitdata/__devinitdata don't allow const to be specified with them (otherwise .init.data sections with and without the writeable attribute will be generated by the compiler), and since __devinitdata except for embedded systems evaluates to <empty> unconditionally and __cpuinitdata at least in most production kernel configurations also likely evaluates to <empty>, it seems appropriate to add an additional attribute allowing the respective objects to end up in .rodata rather than .data when not used at initialization time only.
Patch 1 introduces __cpuinitconst and a single common code consumer. Patch 2 adds a number of x86 consumers of __cpuinitconst. Patch 3 introduces __devinitconst and common code consumers. Patch 4 adds a number of x86 consumers of __devinitconst.