Re: [PATCH] pcmcia network drivers cleanup

From: Dominik Brodowski (linux_at_dominikbrodowski.de)
Date: 10/25/04

  • Next message: Timothy Miller: "Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?"
    Date:	Mon, 25 Oct 2004 17:36:15 +0200
    To: Stelian Pop <stelian@popies.net>, jgarzik@pobox.com, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
    
    

    On Mon, Oct 25, 2004 at 05:30:38PM +0200, Stelian Pop wrote:
    > > #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i")
    > >
    > > static int irq_list[4] = { -1 };
    > > MODULE_PARM(irq_list, "1-4i");
    > > INT_MODULE_PARM(irq_mask, 0xdeb8);
    > >
    > > block being replaced with
    > >
    > >
    > > static int irq_list[4] = { -1 };
    > > static int irq_mask irq_mask = 0xdeb8;
    > >
    > > module_parm(irq_mask, int, 0444};
    >
    > Sure, it is probably saner, but INT_MODULE_PARM is used for quite a
    > few other parameters in each driver, and I didn't want to touch
    > all of them.

    You need to convert all paramters at once, as MODULE_PARM and module_parm()
    can't exist in the same module at the same time anyway. Also, as all
    INT_MODULE_PARMs were defined to be MODULE_PARM, it should be safe to do so.

    Thanks,
            Dominik
    -
    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: Timothy Miller: "Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?"

    Relevant Pages

    • Re: [PATCH] RTC: Add mmap method to rtc character driver
      ... driver was there, and its infrastructure lent itself rather easily toward adding ... open that driver and send it a UIE or PIE ioctl, it will start ticking ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: XFS breakage in 2.6.18-rc1
      ... system disk too who had to take the hit. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: How to run an a.out file in a kernel module
      ... called in a kernel module using call_usermodehelper ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: Net: e1000 driver: TX Hang message
      ... It receives packets but keeps on giving "Tx hang" ... > the same piece of code is in the 2.6.13.2 kernel's e1000 driver. ... > More majordomo info at http://vger.kernel.org/majordomo-info.html ... > Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: XFS Bug null pointer dereference in xfs_free_ag_extent
      ... I also filed bug 6877 at kernel.org ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)