[PATCH] mark struct file_operations const 3
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 Feb 2007 08:55:32 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:45 +0000 (09:48 -0800)
commit2b8693c0617e972fc0b2fd1ebf8de97e15b656c3
tree3eb7dfbc8d5e4031e4992bdd566e211f5ada71f3
parent5dfe4c964a0dd7bb3a1d64a4166835a153146207
[PATCH] mark struct file_operations const 3

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.

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>
58 files changed:
block/blktrace.c
crypto/proc.c
drivers/acorn/char/i2c.c
drivers/block/DAC960.c
drivers/block/acsi_slm.c
drivers/block/aoe/aoechr.c
drivers/block/paride/pg.c
drivers/block/paride/pt.c
drivers/block/pktcdvd.c
drivers/bluetooth/hci_vhci.c
drivers/cdrom/viocd.c
drivers/char/briq_panel.c
drivers/char/drm/drm_drv.c
drivers/char/drm/i810_dma.c
drivers/char/drm/i830_dma.c
drivers/char/generic_nvram.c
drivers/char/mbcs.c
drivers/char/mspec.c
drivers/char/random.c
drivers/char/tpm/tpm_bios.c
drivers/char/viotape.c
drivers/char/watchdog/iTCO_wdt.c
drivers/char/watchdog/omap_wdt.c
drivers/char/watchdog/pc87413_wdt.c
drivers/char/watchdog/pnx4008_wdt.c
drivers/char/watchdog/rm9k_wdt.c
drivers/char/watchdog/smsc37b787_wdt.c
drivers/char/watchdog/w83697hf_wdt.c
drivers/i2c/chips/tps65010.c
drivers/i2c/i2c-dev.c
drivers/ide/ide-proc.c
drivers/ide/ide-tape.c
drivers/ieee1394/dv1394.c
drivers/ieee1394/raw1394.c
drivers/ieee1394/video1394.c
drivers/infiniband/core/ucm.c
drivers/infiniband/core/ucma.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/ipath/ipath_diag.c
drivers/infiniband/hw/ipath/ipath_file_ops.c
drivers/infiniband/hw/ipath/ipath_fs.c
drivers/infiniband/hw/ipath/ipath_kernel.h
drivers/infiniband/ulp/ipoib/ipoib_fs.c
drivers/input/input.c
drivers/input/misc/hp_sdc_rtc.c
drivers/input/misc/uinput.c
drivers/input/serio/serio_raw.c
drivers/isdn/capi/capi.c
drivers/isdn/capi/kcapi_proc.c
drivers/isdn/divert/divert_procfs.c
drivers/isdn/hardware/eicon/divamnt.c
drivers/isdn/hardware/eicon/divasi.c
drivers/isdn/hardware/eicon/divasmain.c
drivers/isdn/hardware/eicon/divasproc.c
drivers/isdn/hysdn/hysdn_procconf.c
drivers/isdn/hysdn/hysdn_proclog.c
drivers/isdn/i4l/isdn_common.c