Fw: devel Digest, Vol 57, Issue 179

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dont sent any more email to me..
-----Özgün İleti----- From: devel-request@xxxxxxxxxxxxxxxxxxxxxx Sent: Thursday, May 24, 2012 10:00 PM To: devel@xxxxxxxxxxxxxxxxxxxxxx Subject: devel Digest, Vol 57, Issue 179
Send devel mailing list submissions to
devel@xxxxxxxxxxxxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel
or, via email, send a message with subject or body 'help' to
devel-request@xxxxxxxxxxxxxxxxxxxxxx
You can reach the person managing the list at
devel-owner@xxxxxxxxxxxxxxxxxxxxxx
When replying, please edit your Subject line so it is more specific
than "Re: Contents of devel digest..."
Today's Topics:
  1. RE: [PATCHv2 3/8] staging: comedi: das08: Use
     module_comedi_{pci_, }driver (H Hartley Sweeten)
  2. From Hon Usman Mustapha (Hon.usman mustapha)
  3. Re: [PATCHv2 3/8] staging: comedi: das08: Use
     module_comedi_{pci_, }driver (Ian Abbott)
----------------------------------------------------------------------
Message: 1
Date: Thu, 24 May 2012 11:36:46 -0500
From: H Hartley Sweeten <hartleys@xxxxxxxxxxxxxxxxxxx>
To: Ian Abbott <abbotti@xxxxxxxxx>, "devel@xxxxxxxxxxxxxxxxxxxxxx"
<devel@xxxxxxxxxxxxxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Bernd Porr
<berndporr@xxxxxxx>, Frank Mori Hess <fmhess@xxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [PATCHv2 3/8] staging: comedi: das08: Use
module_comedi_{pci_, }driver
Message-ID:
<ADE657CA350FB648AAC2C43247A983F0020698BACCA0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
On Thursday, May 24, 2012 9:27 AM, Ian Abbott wrote:
If PCI boards are supported, use the module_comedi_pci_driver() macro to
register the module as a comedi driver and a PCI driver.  Otherwise, if
ISA (or PC/104) boards are supported, use the module_comedi_driver()
macro to register the module as a comedi driver.  Otherwise, this is
only a helper module for an external comedi driver (das08_cs).

Signed-off-by: Ian Abbott <abbotti@xxxxxxxxx>
---
<snip>
+#else /* DO_COMEDI_DRIVER_REGISTER */
+static int __init das08_init(void)
+{
+ return 0;
 }

-static void __exit driver_das08_cleanup_module(void)
+static void __exit das08_exit(void)
 {
-#if IS_ENABLED(CONFIG_COMEDI_DAS08_PCI)
- pci_unregister_driver(&driver_das08_pci_driver);
-#endif
-#ifdef DO_COMEDI_DRIVER_REGISTER
- comedi_driver_unregister(&driver_das08);
-#endif
 }

-module_init(driver_das08_init_module);
-module_exit(driver_das08_cleanup_module);
+module_init(das08_init);
+module_exit(das08_exit);
+#endif /* DO_COMEDI_DRIVER_REGISTER */
When this file is only compiled to be used as a helper library
are the module_init/module_exit stubs even needed?
Take a look at the drivers/gpio/gpio-generic.c driver for an
example.
Regards,
Hartley
------------------------------
Message: 2
Date: Thu, 24 May 2012 13:26:21 -0300 (BRT)
From: "Hon.usman mustapha" <gercomtecnobus@xxxxxxxxxxxxxxxxxxxxx>
To: undisclosed-recipients:;
Subject: From Hon Usman Mustapha
Message-ID:
<1672517377.137812.1337876781498.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1
Dear Sir,
Greetings and peace from Allah.
I am Hon.usman mustapha, a former top government official in Nigeria.
I have a serious issue that i want to share with you, and i will be needing your help. As a former top government official, a conspiracy was set against my political career, recently i have serious problems with Mr President because of an allegation of missing of public funds during my administration in the office as a minister. My properties and bank accounts in Nigeria and outside Nigeria has been frozen by Mr. President and i have been Charged to court. I don't know if i will be jailed if found convicted, because in my country, the judiciary is very corrupt, so justice is perverted and as such one should expect the worst violation of human right and justice. But my lawyers are doing their best so that i don't get sentenced to Jail. Please i need your help to keep an amount of 35 million dollars that is presently in a financial institution in Europe which nobody knows about. If you accept to invest and keep this money, you can take 5 million dollars for yourself. This is better for me, rather than my president should find out to take all the money.
I am happy because the money does not have any trace because all
original documents was not found in my residence in Nigeria. This money released to you within 3 working days. Please confirm your telephone numbers and home/office address for discussion.
Regards
Hon.usman mustapha
------------------------------
Message: 3
Date: Thu, 24 May 2012 18:06:01 +0100
From: Ian Abbott <abbotti@xxxxxxxxx>
To: H Hartley Sweeten <hartleys@xxxxxxxxxxxxxxxxxxx>
Cc: "devel@xxxxxxxxxxxxxxxxxxxxxx" <devel@xxxxxxxxxxxxxxxxxxxxxx>, Ian
Abbott <ian.abbott@xxxxxxxxx>, Bernd Porr <berndporr@xxxxxxx>, Frank
Mori Hess <fmhess@xxxxxxxxxxxxxxxxxxxxx>, Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [PATCHv2 3/8] staging: comedi: das08: Use
module_comedi_{pci_, }driver
Message-ID: <4FBE6A79.6090006@xxxxxxxxx>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
On 2012-05-24 17:36, H Hartley Sweeten wrote:
On Thursday, May 24, 2012 9:27 AM, Ian Abbott wrote:
If PCI boards are supported, use the module_comedi_pci_driver() macro to
register the module as a comedi driver and a PCI driver.  Otherwise, if
ISA (or PC/104) boards are supported, use the module_comedi_driver()
macro to register the module as a comedi driver.  Otherwise, this is
only a helper module for an external comedi driver (das08_cs).

Signed-off-by: Ian Abbott<abbotti@xxxxxxxxx>
---

<snip>

+#else /* DO_COMEDI_DRIVER_REGISTER */
+static int __init das08_init(void)
+{
+ return 0;
  }

-static void __exit driver_das08_cleanup_module(void)
+static void __exit das08_exit(void)
  {
-#if IS_ENABLED(CONFIG_COMEDI_DAS08_PCI)
- pci_unregister_driver(&driver_das08_pci_driver);
-#endif
-#ifdef DO_COMEDI_DRIVER_REGISTER
- comedi_driver_unregister(&driver_das08);
-#endif
  }

-module_init(driver_das08_init_module);
-module_exit(driver_das08_cleanup_module);
+module_init(das08_init);
+module_exit(das08_exit);
+#endif /* DO_COMEDI_DRIVER_REGISTER */

When this file is only compiled to be used as a helper library
are the module_init/module_exit stubs even needed?
They used to be.  I wasn't aware things had changed.  The comments in
<linux/init.h> suggest they're required:
/* Each module must use one module_init(). */
#define module_init(initfn) \
...
/* This is only required if you want to be unloadable. */
#define module_exit(exitfn) \
...
Take a look at the drivers/gpio/gpio-generic.c driver for an
example.
Hmm. :-\
--
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@xxxxxxxxx>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
------------------------------
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel
End of devel Digest, Vol 57, Issue 179
**************************************
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux