[PATCH 1/2 2.6.10] rcu: make two internal structs static

From: Manfred Spraul (manfred_at_colorfullife.com)
Date: 12/29/04

  • Next message: Manfred Spraul: "[PATCH 1/2 2.6.10] rcu: simplify quiescent state detection"
    Date:	Wed, 29 Dec 2004 16:23:26 +0100 (CET)
    To: akpm@osdl.org
    
    

    The patch below makes two needlessly global structs static.

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

    Tested with 2.6.10, no rediff required.
    Signed-off-by: Manfred Spraul <manfred@colorfullife.com>

    --- linux-2.6.10-rc2-mm4-full/kernel/rcupdate.c.old 2004-12-12 03:13:54.000000000 +0100
    +++ linux-2.6.10-rc2-mm4-full/kernel/rcupdate.c 2004-12-12 03:14:15.000000000 +0100
    @@ -60,9 +60,9 @@
                                           /* for current batch to proceed. */
     };

    -struct rcu_state rcu_state ____cacheline_maxaligned_in_smp =
    +static struct rcu_state rcu_state ____cacheline_maxaligned_in_smp =
               {.lock = SPIN_LOCK_UNLOCKED, .cpumask = CPU_MASK_NONE };
    -struct rcu_state rcu_bh_state ____cacheline_maxaligned_in_smp =
    +static struct rcu_state rcu_bh_state ____cacheline_maxaligned_in_smp =
               {.lock = SPIN_LOCK_UNLOCKED, .cpumask = CPU_MASK_NONE };

     DEFINE_PER_CPU(struct rcu_data, rcu_data) = { 0L };

    -
    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: Manfred Spraul: "[PATCH 1/2 2.6.10] rcu: simplify quiescent state detection"

    Relevant Pages

    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... I think the patch should be included in the official kernel ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • [2.6 patch] drivers/char/mxser.c cleanups
      ... This patch contains the following cleanups: ... make two needlessly global structs static ... remove the unused global function SDS_PORT8_DTR ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] cdrom.c: make several functions static (fwd)
      ... The patch forwarded below still applies and compiles against ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... There had been need of rain for many days. ...
      (Linux-Kernel)
    • [2.6 patch] some parport_pc.c cleanups (fwd)
      ... The patch forwarded below still applies and compiles against ... extern struct parport *parport_pc_probe_port (unsigned long base, ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [2.4 patch] fix a compile warning in tipar.c (fwd)
      ... [2.4 patch] fix a compile warning in tipar.c ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)