]> err.no Git - linux-2.6/commit
[PATCH] mark struct file_operations const 9
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 Feb 2007 08:55:37 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:46 +0000 (09:48 -0800)
commit9c2e08c592cd357a8330c34def1e8ecfdcf53275
tree62e7449e43bb502f2e9630ab41832ceccd9a0f65
parentda7071d7e32d15149cc513f096a3638097b66387
[PATCH] mark struct file_operations const 9

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>
32 files changed:
arch/powerpc/platforms/cell/spufs/spufs.h
drivers/s390/char/tape_class.c
drivers/s390/char/tape_class.h
security/inode.c
security/keys/proc.c
security/selinux/selinuxfs.c
sound/core/control.c
sound/core/hwdep.c
sound/core/info.c
sound/core/init.c
sound/core/oss/mixer_oss.c
sound/core/oss/pcm_oss.c
sound/core/pcm_native.c
sound/core/rawmidi.c
sound/core/seq/oss/seq_oss.c
sound/core/seq/seq_clientmgr.c
sound/core/sound.c
sound/core/timer.c
sound/oss/ad1889.c
sound/oss/btaudio.c
sound/oss/dmasound/dmasound_core.c
sound/oss/emu10k1/audio.c
sound/oss/emu10k1/midi.c
sound/oss/emu10k1/mixer.c
sound/oss/hal2.c
sound/oss/msnd_pinnacle.c
sound/oss/os.h
sound/oss/sh_dac_audio.c
sound/oss/soundcard.c
sound/oss/via82cxxx_audio.c
sound/oss/vwsnd.c
sound/sound_core.c