[patch] watchdog: fix warning "defined but not used"

From: Guillaume Thouvenin (guillaume.thouvenin_at_bull.net)
Date: 07/30/04

  • Next message: Tim Waugh: "Re: [PATCH] Gigabit Ethernet support for forcedeth"
    Date:	Fri, 30 Jul 2004 11:33:00 +0200
    To: linux-kernel@vger.kernel.org
    
    
    

    Hello,

      Function wdtpci_init_one() in file wdt_pci.c generates a warning when
    compiling the watchdog driver. Here is a trivial patch for 2.6.8-rc2 to
    remove this warning.

    HTH
    Guillaume

    
    

    --- wdt_pci.c.orig 2004-07-30 09:00:13.435106288 +0200
    +++ wdt_pci.c 2004-07-30 09:00:31.465365272 +0200
    @@ -682,8 +682,8 @@ out:
     out_misc:
     #ifdef CONFIG_WDT_501_PCI
             misc_deregister(&temp_miscdev);
    -#endif /* CONFIG_WDT_501_PCI */
     out_rbt:
    +#endif /* CONFIG_WDT_501_PCI */
             unregister_reboot_notifier(&wdtpci_notifier);
     out_irq:
             free_irq(irq, &wdtpci_miscdev);

    -
    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: Tim Waugh: "Re: [PATCH] Gigabit Ethernet support for forcedeth"

    Relevant Pages