Skip to content

mark const init data with __initconst instead of __initdata

Uwe Kleine-König linux-arm-kernel linux-arm-msm linux-hams linux-ia64 linux-ide linux-media linux-mips linux-mm linux-mtd linux-omap linux-samsung-soc linuxppc-dev lkml lm-sensors netdev platform-driver-x86 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 6 repliesApplied
  2. v117 patches 12 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/15pinctrl: mark const init data with __initconst instead of __initdataDocumentation/pinctrl.txt drivers/pinctrl/pinctrl-coh901.c+3 -31 reply
2/15ARM: mark const init data with __initconst instead of __initdataarch/arm/mach-at91/clock.c arch/arm/mach-davinci/board-tnetv107x-evm.c arch/arm/mach-davinci/da830.c +6 more+39 -391 reply
3/15FRV: mark const init data with __initconst instead of __initdataarch/frv/mb93090-mb00/pci-irq.c+1 -10 replies
4/15net: mark const init data with __initconst instead of __initdatadrivers/net/hamradio/6pack.c drivers/net/hamradio/bpqether.c drivers/net/hamradio/mkiss.c +4 more+9 -90 replies
5/15hwmon: mark const init data with __initconst instead of __initdatadrivers/hwmon/w83627ehf.c+9 -93 replies
6/15mfd: mark const init data with __initconst instead of __initdatadrivers/mfd/ab5500-core.c+1 -11 reply
7/15mips: mark const init data with __initconst instead of __initdataarch/mips/bcm63xx/dev-pcmcia.c arch/mips/mti-malta/malta-setup.c arch/mips/pci/fixup-mpc30x.c +4 more+9 -90 replies
8/15h8300: mark const init data with __initconst instead of __initdataarch/h8300/kernel/timer/itu.c arch/h8300/kernel/timer/timer16.c arch/h8300/kernel/timer/timer8.c +3 more+8 -80 replies
9/15ia64: mark const init data with __initconst instead of __initdataarch/ia64/xen/irq_xen.c arch/ia64/xen/irq_xen.h+2 -20 replies
10/15powerpc: mark const init data with __initconst instead of __initdataarch/powerpc/platforms/52xx/mpc52xx_pci.c arch/powerpc/platforms/cell/qpace_setup.c arch/powerpc/platforms/cell/setup.c+3 -30 replies
11/15gpio/samsung: mark const init data with __initconst instead of __initdatadrivers/gpio/gpio-samsung.c+1 -10 replies
12/15ide: mark const init data with __initconst instead of __initdatadrivers/ide/ali14xx.c drivers/ide/cmd640.c drivers/ide/dtc2278.c +6 more+10 -100 replies
13/15media/video/s5p-tv: mark const init data with __initconst instead of __initdatadrivers/media/video/s5p-tv/mixer_drv.c+1 -10 replies
14/15drivers/x86: mark const init data with __initconst instead of __initdatadrivers/platform/x86/dell-laptop.c+1 -10 replies
15/15kstrtox: mark const init data with __initconst instead of __initdatalib/test-kstrtox.c+2 -20 replies

Reviews trailers per patch

1 of 15 patches has a Reviewed-by or Acked-by.

PatchSekhar Nori
1/15
2/15A-b
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/15] mark const init data with __initconst instead of __initdata

Hello,

Quoted 5 lines · Uwe Kleine-König

this series fixes a common error to use __initdata to mark const variables. Most of the time this works well enough to go unnoticed (though I wonder why the linker doesn't warn about that). Just try adding something like

Quoted 8 lines
	int something __initdata;

to one of the patched files and compile to see the error.

While touching these annotations I also corrected the position where it was wrong to go between the variable name and the =.

Note this series is not compile tested.

I now dropped the wrong annotations. So two patches became obsolete (mtd and percpu). Note that I also dropped fixing the position of __initdata if changing it to __initconst was wrong. (I think if __initdata is placed before the variable name it doesn't have any effect.)

I didn't promote the Acks I got because all acked changes changed in v2.

For the details changed in each patch see the changelogs in the respective patch mails that I follow up to this mail.

Thanks
Uwe

Signature · 6 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/