[2.6 patch] cfq-iosched.c: make some code static

From: Adrian Bunk (bunk_at_stusta.de)
Date: 01/29/05

  • Next message: Adrian Bunk: "[2.6 patch] drivers/block/aoe/aoechr.c cleanups"
    Date:	Sat, 29 Jan 2005 14:35:24 +0100
    To: Jens Axboe <axboe@suse.de>
    
    

    This patch makes some needlessly global code static.

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

    --- linux-2.6.11-rc2-mm1-full/drivers/block/cfq-iosched.c.old 2005-01-29 14:05:30.000000000 +0100
    +++ linux-2.6.11-rc2-mm1-full/drivers/block/cfq-iosched.c 2005-01-29 14:05:49.000000000 +0100
    @@ -1790,7 +1790,7 @@
             .store = cfq_attr_store,
     };
     
    -struct kobj_type cfq_ktype = {
    +static struct kobj_type cfq_ktype = {
             .sysfs_ops = &cfq_sysfs_ops,
             .default_attrs = default_attrs,
     };
    @@ -1819,7 +1819,7 @@
             .elevator_owner = THIS_MODULE,
     };
     
    -int cfq_init(void)
    +static int cfq_init(void)
     {
             int ret;
     

    -
    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/block/aoe/aoechr.c cleanups"

    Relevant Pages

    • Re: modprobe + request_module() deadlock
      ... calls request_moduleonce the depending module went to LIVE state. ... +static int pending_call(struct notifier_block *self, unsigned long state, ... +static struct notifier_block pending_notifier = { ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2.6.7-rc3] Adds class support to msr.c
      ... | `-- dev ... +static struct class_simple *msr_class; ... +static int msr_class_simple_device_add ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6.7-rc3] Adds class support to msr.c
      ... Thanks to Randy Dunlap for pointing out the unnecessary tabs. ... +static struct class_simple *msr_class; ... +static int msr_class_simple_device_add ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 1/2][FAT] miss-sync issues on sync mount (miss-sync on write)
      ... Hiroyuki Machida ... +static int fat_commit_write(struct file *file, struct page *page, ... static struct address_space_operations fat_aops = { ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12-rc1-mm1: resume regression [update] (was: Re:2.6.12-rc1-mm1: Kernel BUG at pci:389)
      ... :-) I'm not sure if the patch that I have reverted is related ... static struct sysdev_class irqrouter_sysdev_class = { ... 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)