public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: cmpci 6.82 released
@ 2004-04-14 17:15 C.L. Tien - 田承禮
  2004-04-16 20:43 ` Adrian Bunk
  2004-04-29 19:46 ` Marcelo Tosatti
  0 siblings, 2 replies; 9+ messages in thread
From: C.L. Tien - 田承禮 @ 2004-04-14 17:15 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

Hi,

I made several changes for cmpci.6.77, so the version is now 6.82.

The patch is mostly from kernel 2.6, which change to support newer gcc,
fix possible security hole. I also use the same include files for both
kernel versions.

The cmpci-6.82-patch2.4.tar.bz2 is made from official kernel 2.4.25, but should  be able to patch other 2.4 kernel.

The cmpci-6.82-patch2.6.tar.bz2 is from official kernel 2.6.5, it will
show error when patch cmpci.c for kernel 2.6.4 or earlier, that's ok.

Sincerely,
ChenLi Tien

[-- Attachment #2: cmpci-6.82-patch2.4.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 19590 bytes --]

[-- Attachment #3: cmpci-6.82-patch2.6.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 22306 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH]: cmpci 6.82 released
@ 2004-04-17  1:52 C.L. Tien - 田承禮
  2004-04-17 19:40 ` Adrian Bunk
  0 siblings, 1 reply; 9+ messages in thread
From: C.L. Tien - 田承禮 @ 2004-04-17  1:52 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

Did you mean __devinit should be __devexit for cm_remove? Indeed, when I first change it, this question rose. There are still many other driver in kernel 2.4.25 use the same way. But I checked the driver in kernel 2.6 tree use the __devexit already for correct semantic meaning. I made following change, thanks for your correction.

retrieving revision 6.82
retrieving revision 6.83
diff -a -u -r6.82 -r6.83
--- cmpci.c	13 Apr 2004 16:02:58 -0000	6.82
+++ cmpci.c	17 Apr 2004 01:39:20 -0000	6.83
@@ -3275,7 +3275,7 @@
 MODULE_DESCRIPTION("CM8x38 Audio Driver");
 MODULE_LICENSE("GPL");
 
-static void __devinit cm_remove(struct pci_dev *dev)
+static void __devexit cm_remove(struct pci_dev *dev)
 {
 	struct cm_state *s = pci_get_drvdata(dev);
 
@@ -3332,12 +3332,12 @@
        .name	 = "cmpci",
        .id_table = id_table,
        .probe	 = cm_probe,
-       .remove	 = cm_remove
+       .remove	 = __devexit_p(cm_remove),
 };
 
 static int __init init_cmpci(void)
 {
-	printk(KERN_INFO "cmpci: version $Revision: 6.82 $ time " __TIME__ " " __DATE__ "\n");
+	printk(KERN_INFO "cmpci: version $Revision: 6.83 $ time " __TIME__ " " __DATE__ "\n");
 	return pci_module_init(&cm_driver);
 }


-----Original Message-----
From:	Adrian Bunk [mailto:bunk@fs.tum.de]
Sent:	2004/4/16 [星期五] 下午 04:43
To:	C.L. Tien - 田承禮
Cc:	linux-kernel@vger.kernel.org
Subject:	Re: [PATCH]: cmpci 6.82 released
On Thu, Apr 15, 2004 at 01:15:31AM +0800, C.L. Tien - ?????? wrote:
> Hi,
> 
> I made several changes for cmpci.6.77, so the version is now 6.82.
> 
> The patch is mostly from kernel 2.6, which change to support newer gcc,
> fix possible security hole. I also use the same include files for both
> kernel versions.
> 
> The cmpci-6.82-patch2.4.tar.bz2 is made from official kernel 2.4.25, but should  be able to patch other 2.4 kernel.
> 
> The cmpci-6.82-patch2.6.tar.bz2 is from official kernel 2.6.5, it will
> show error when patch cmpci.c for kernel 2.6.4 or earlier, that's ok.

There seem to be some bugs in the __{,dev}{init,exit} changes.

E.g. in the 2.6 patch:

  static void __devinit cm_remove(struct pci_dev *dev)
                   ^^^^


> Sincerely,
> ChenLi Tien


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-05-02 19:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-14 17:15 [PATCH]: cmpci 6.82 released C.L. Tien - 田承禮
2004-04-16 20:43 ` Adrian Bunk
2004-04-29 19:46 ` Marcelo Tosatti
2004-04-29 19:55   ` Marcelo Tosatti
2004-04-29 20:40   ` Jeff Garzik
2004-05-02 19:33     ` Willy Tarreau
2004-04-29 21:14   ` Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2004-04-17  1:52 C.L. Tien - 田承禮
2004-04-17 19:40 ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox