[-mm patch] drivers/md/md.c: make code static



This patch makes needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

drivers/md/md.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.17-mm1-full/drivers/md/md.c.old 2006-06-21 22:59:44.000000000 +0200
+++ linux-2.6.17-mm1-full/drivers/md/md.c 2006-06-21 23:00:02.000000000 +0200
@@ -175,7 +175,7 @@
/* Alternate version that can be called from interrupts
* when calling sysfs_notify isn't needed.
*/
-void md_new_event_inintr(mddev_t *mddev)
+static void md_new_event_inintr(mddev_t *mddev)
{
atomic_inc(&md_event_count);
wake_up(&md_event_waiters);
@@ -2309,7 +2309,7 @@
*/
enum array_state { clear, inactive, suspended, readonly, read_auto, clean, active,
write_pending, active_idle, bad_word};
-char *array_states[] = {
+static char *array_states[] = {
"clear", "inactive", "suspended", "readonly", "read-auto", "clean", "active",
"write-pending", "active-idle", NULL };


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] fix plip 1
    ... For calling from outside interrupts, ... So "fix plip 1" is a ... Subject: [PATCH 1/2] plip: use netif_rx_nifor packet receive ...
    (Linux-Kernel)
  • Re: [PATCH 000 of 6] A few block-layer tidy-up patches.
    ... instead of bio_kmap_atomic (so interrupts are disabled). ... need to disable interrupts, and ps3disk doesn't, make the disabling of ... that as well since I had to hand-apply patch #2. ... didn't re-indent most of the loops to ease review. ...
    (Linux-Kernel)
  • Re: [PATCH 2.6.20.3] Flush writes to MSI-X table
    ... and in interrupts being sent to stale vectors after rebalancing. ... Hardware which supports MSI-X typically also supports some ... This patch has been validated with network hardware which ...
    (Linux-Kernel)
  • Re: [PATCH] kthread: airo.c
    ... we're at it try to kill the idiociy of doing the trylock in the calling ... here's a small incremental patch ontop of yours to implement my ... struct semaphore sem; ... +static int airo_thread ...
    (Linux-Kernel)
  • Re: [2.6 patch] drivers/w1/: possible cleanups
    ... On Mon, 2004-11-29 at 02:52 +0100, Adrian Bunk wrote: ... > - make needlessly global code static ... Thank you, but I will not apply your patch as is, since many parts of it ... dscore.o - this is _generic_ driver for DS2490 based hardware. ...
    (Linux-Kernel)