]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] mark struct file_operations const 5
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 Feb 2007 08:55:34 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:45 +0000 (09:48 -0800)
commitd54b1fdb1d9f82e375a299e22bd366aad52d4c34
treef94768d59702dbbc0beb9a70d9be65dbc5e5108d
parentfa027c2a0a0d6d1df6b29ee99048502c93da0dd4
[PATCH] mark struct file_operations const 5

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>
45 files changed:
drivers/message/i2o/i2o_config.c
drivers/message/i2o/i2o_proc.c
drivers/misc/hdpuftrs/hdpu_cpustate.c
drivers/misc/ibmasm/ibmasmfs.c
drivers/mtd/mtdchar.c
drivers/net/bonding/bond_main.c
drivers/net/hamradio/bpqether.c
drivers/net/hamradio/scc.c
drivers/net/hamradio/yam.c
drivers/net/ibmveth.c
drivers/net/irda/vlsi_ir.c
drivers/net/ppp_generic.c
drivers/net/pppoe.c
drivers/net/tun.c
drivers/net/wan/cosa.c
drivers/net/wireless/airo.c
drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
drivers/net/wireless/strip.c
drivers/oprofile/event_buffer.c
drivers/oprofile/event_buffer.h
drivers/oprofile/oprofile_files.c
drivers/oprofile/oprofilefs.c
drivers/parisc/ccio-dma.c
drivers/parisc/eisa_eeprom.c
drivers/parisc/sba_iommu.c
drivers/pci/hotplug/cpqphp_sysfs.c
drivers/pci/proc.c
drivers/pcmcia/pcmcia_ioctl.c
drivers/pnp/isapnp/proc.c
drivers/rtc/rtc-dev.c
drivers/rtc/rtc-proc.c
drivers/s390/block/dasd_eer.c
drivers/s390/block/dasd_proc.c
drivers/s390/char/fs3270.c
drivers/s390/char/monreader.c
drivers/s390/char/monwriter.c
drivers/s390/char/tape_char.c
drivers/s390/char/tape_proc.c
drivers/s390/char/vmcp.c
drivers/s390/char/vmlogrdr.c
drivers/s390/char/vmwatchdog.c
drivers/s390/cio/blacklist.c
drivers/s390/crypto/zcrypt_api.c
drivers/s390/net/qeth_proc.c
drivers/s390/scsi/zfcp_aux.c