aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/btaudio.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2007-02-12 03:55:37 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:46 -0500
commit9c2e08c592cd357a8330c34def1e8ecfdcf53275 (patch)
tree62e7449e43bb502f2e9630ab41832ceccd9a0f65 /sound/oss/btaudio.c
parentda7071d7e32d15149cc513f096a3638097b66387 (diff)
[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>
Diffstat (limited to 'sound/oss/btaudio.c')
-rw-r--r--sound/oss/btaudio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/oss/btaudio.c b/sound/oss/btaudio.c
index ad7210a00dc0..f845528e1fac 100644
--- a/sound/oss/btaudio.c
+++ b/sound/oss/btaudio.c
@@ -429,7 +429,7 @@ static int btaudio_mixer_ioctl(struct inode *inode, struct file *file,
429 return 0; 429 return 0;
430} 430}
431 431
432static struct file_operations btaudio_mixer_fops = { 432static const struct file_operations btaudio_mixer_fops = {
433 .owner = THIS_MODULE, 433 .owner = THIS_MODULE,
434 .llseek = no_llseek, 434 .llseek = no_llseek,
435 .open = btaudio_mixer_open, 435 .open = btaudio_mixer_open,
@@ -796,7 +796,7 @@ static unsigned int btaudio_dsp_poll(struct file *file, struct poll_table_struct
796 return mask; 796 return mask;
797} 797}
798 798
799static struct file_operations btaudio_digital_dsp_fops = { 799static const struct file_operations btaudio_digital_dsp_fops = {
800 .owner = THIS_MODULE, 800 .owner = THIS_MODULE,
801 .llseek = no_llseek, 801 .llseek = no_llseek,
802 .open = btaudio_dsp_open_digital, 802 .open = btaudio_dsp_open_digital,
@@ -807,7 +807,7 @@ static struct file_operations btaudio_digital_dsp_fops = {
807 .poll = btaudio_dsp_poll, 807 .poll = btaudio_dsp_poll,
808}; 808};
809 809
810static struct file_operations btaudio_analog_dsp_fops = { 810static const struct file_operations btaudio_analog_dsp_fops = {
811 .owner = THIS_MODULE, 811 .owner = THIS_MODULE,
812 .llseek = no_llseek, 812 .llseek = no_llseek,
813 .open = btaudio_dsp_open_analog, 813 .open = btaudio_dsp_open_analog,