[2.6 patch] drivers/scsi/pas16.c: make code static

From: Adrian Bunk (bunk_at_stusta.de)
Date: 02/28/05

  • Next message: Adrian Bunk: "[2.6 patch] drivers/scsi/qla2xxx/: cleanups"
    Date:	Mon, 28 Feb 2005 21:58:16 +0100
    To: James.Bottomley@SteelEye.com
    
    

    This patch makes needlessly global code static.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    ---
     drivers/scsi/pas16.c |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    --- linux-2.6.11-rc4-mm1-full/drivers/scsi/pas16.c.old	2005-02-28 19:37:31.000000000 +0100
    +++ linux-2.6.11-rc4-mm1-full/drivers/scsi/pas16.c	2005-02-28 20:38:07.000000000 +0100
    @@ -137,7 +137,7 @@
     static int pas16_irq = 0;
      
     
    -int scsi_irq_translate[] =
    +static const int scsi_irq_translate[] =
     	{ 0,  0,  1,  2,  3,  4,  5,  6, 0,  0,  7,  8,  9,  0, 10, 11 };
     
     /* The default_irqs array contains values used to set the irq into the
    @@ -145,7 +145,7 @@
      * irq jumpers on the board).  The first value in the array will be
      * assigned to logical board 0, the next to board 1, etc.
      */
    -int default_irqs[] __initdata = 
    +static int default_irqs[] __initdata = 
     	{  PAS16_DEFAULT_BOARD_1_IRQ,
     	   PAS16_DEFAULT_BOARD_2_IRQ,
     	   PAS16_DEFAULT_BOARD_3_IRQ,
    @@ -177,7 +177,7 @@
     
     #define NO_BASES (sizeof (bases) / sizeof (struct base))
     
    -unsigned short  pas16_offset[ 8 ] =
    +static const unsigned short  pas16_offset[ 8 ] =
         {
     	0x1c00,    /* OUTPUT_DATA_REG */
     	0x1c01,    /* INITIATOR_COMMAND_REG */
    -
    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/
    

  • Next message: Adrian Bunk: "[2.6 patch] drivers/scsi/qla2xxx/: cleanups"

    Relevant Pages

    • [2.6 patch] drivers/scsi/pas16.c: make code static
      ... This patch makes needlessly global code static. ... irq jumpers on the board). ... The first value in the array will be ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: _POSIX_SYMLOOP_MAX
      ... In case if that's what had happened, I owe Andries an apology for sloppiness - ... array in nameidata. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • segfault mdadm --write-behind, 2.6.14-mm2 (was: Re: RAID1 ramdisk patch)
      ... I can create and use the array with: ... attach them with losetup and try to create the array with mdadm: ... 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/ ...
      (Linux-Kernel)
    • Re: [RFC] cleanup patches for strings
      ... larger, slower, and uses more stack. ... If the array is declared const makes ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: question about max_readahead for ide devices in 2.4?
      ... Andrew> That's correct - it's all a bit weird. ... sets an entry in the read_aheadarray. ... Or am I missing something else?? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)