Skip to contentSkip to conversation

SCSI sr.c: make a struct static

PATCH New Adrian Bunk 1 participant 1 message Nov 15, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SCSI sr.c: make a struct static

The patch below makes a needlessly global struct static.

drivers/scsi/sr.c renamed from drivers/scsi/sr.c.old +1 -1
@@ -512,7 +512,7 @@
 	return cdrom_media_changed(&cd->cdi);
 }
 
-struct block_device_operations sr_bdops =
+static struct block_device_operations sr_bdops =
 {
 	.owner		= THIS_MODULE,
 	.open		= sr_block_open,