[2.6 patch] drivers/block/rd.c: make two variables static
From: Adrian Bunk (bunk_at_stusta.de)
Date: 11/29/04
- Previous message: Adrian Bunk: "[2.6 patch] drivers/block/nbd.c: make some functions static"
- In reply to: Christoph Hellwig: "Re: [2.6 patch] drivers/block/: some cleanups"
- Next in thread: Adrian Bunk: "[2.6 patch] drivers/block/pktcdvd.c: make two functions static"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 13:36:18 +0100 To: linux-kernel@vger.kernel.org
The patch below makes two needlessly global variables static.
diffstat output:
drivers/block/rd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc1-mm3-full/drivers/block/rd.c.old 2004-11-06 20:18:40.000000000 +0100
+++ linux-2.6.10-rc1-mm3-full/drivers/block/rd.c 2004-11-06 20:19:25.000000000 +0100
@@ -77,7 +77,7 @@
* architecture-specific setup routine (from the stored boot sector
* information).
*/
-int rd_size = CONFIG_BLK_DEV_RAM_SIZE; /* Size of the RAM disks */
+static int rd_size = CONFIG_BLK_DEV_RAM_SIZE; /* Size of the RAM disks */
/*
* It would be very desirable to have a soft-blocksize (that in the case
* of the ramdisk driver is also the hardblocksize ;) of PAGE_SIZE because
@@ -89,7 +89,7 @@
* behaviour. The default is still BLOCK_SIZE (needed by rd_load_image that
* supposes the filesystem in the image uses a BLOCK_SIZE blocksize).
*/
-int rd_blocksize = BLOCK_SIZE; /* blocksize of the RAM disks */
+static int rd_blocksize = BLOCK_SIZE; /* blocksize of the RAM disks */
/*
* Copyright (C) 2000 Linus Torvalds.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Adrian Bunk: "[2.6 patch] drivers/block/nbd.c: make some functions static"
- In reply to: Christoph Hellwig: "Re: [2.6 patch] drivers/block/: some cleanups"
- Next in thread: Adrian Bunk: "[2.6 patch] drivers/block/pktcdvd.c: make two functions static"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|