[PATCH] mark struct file_operations const 2
commit5dfe4c964a0dd7bb3a1d64a4166835a153146207
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 Feb 2007 08:55:31 +0000 (12 00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:44 +0000 (12 09:48 -0800)
tree2fb2fd8c09922be4f40a5a9ac50b537b1d780e27
parent540473208f8ac71c25a87e1a2670c3c18dd4d6db
[PATCH] mark struct file_operations const 2

Many struct file_operations in the kernel can be "const".  Marking them const
moves these to the .rodata section, which avoids false sharing with potential
dirty data.  In addition it'll catch accidental writes at compile time to
these shared resources.

[akpm@osdl.org: sparc64 fix]
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
59 files changed:
arch/arm/common/rtctime.c
arch/arm/mach-at91rm9200/clock.c
arch/avr32/mm/tlb.c
arch/cris/arch-v10/drivers/ds1302.c
arch/cris/arch-v10/drivers/eeprom.c
arch/cris/arch-v10/drivers/gpio.c
arch/cris/arch-v10/drivers/i2c.c
arch/cris/arch-v10/drivers/pcf8563.c
arch/cris/arch-v32/drivers/cryptocop.c
arch/cris/arch-v32/drivers/gpio.c
arch/cris/arch-v32/drivers/i2c.c
arch/cris/arch-v32/drivers/pcf8563.c
arch/cris/arch-v32/drivers/sync_serial.c
arch/cris/kernel/profile.c
arch/i386/kernel/apm.c
arch/i386/kernel/cpu/mtrr/if.c
arch/i386/kernel/cpuid.c
arch/i386/kernel/microcode.c
arch/i386/kernel/msr.c
arch/ia64/hp/common/sba_iommu.c
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/salinfo.c
arch/ia64/sn/kernel/sn2/sn2_smp.c
arch/ia64/sn/kernel/sn2/sn_hwperf.c
arch/m68k/bvme6000/rtc.c
arch/m68k/mvme16x/rtc.c
arch/mips/kernel/rtlx.c
arch/mips/kernel/vpe.c
arch/mips/sibyte/sb1250/bcm1250_tbprof.c
arch/parisc/kernel/perf.c
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kernel/nvram_64.c
arch/powerpc/kernel/proc_ppc64.c
arch/powerpc/kernel/rtas-proc.c
arch/powerpc/kernel/rtas_flash.c
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/iseries/lpevents.c
arch/powerpc/platforms/iseries/mf.c
arch/powerpc/platforms/iseries/proc.c
arch/powerpc/platforms/iseries/viopath.c
arch/powerpc/platforms/pseries/eeh.c
arch/powerpc/platforms/pseries/hvCall_inst.c
arch/powerpc/platforms/pseries/reconfig.c
arch/powerpc/platforms/pseries/rtasd.c
arch/powerpc/platforms/pseries/scanlog.c
arch/ppc/8xx_io/cs4218_tdm.c
arch/s390/hypfs/inode.c
arch/s390/kernel/debug.c
arch/sh/boards/landisk/landisk_pwb.c
arch/sh/mm/cache-debugfs.c
arch/sh/mm/pmb.c
arch/sh/oprofile/op_model_sh7750.c
arch/sparc/kernel/apc.c
arch/sparc64/kernel/time.c
arch/sparc64/solaris/socksys.c
arch/um/drivers/harddog_kern.c
arch/v850/kernel/rte_cb_leds.c
arch/x86_64/kernel/mce.c