[PATCH 2.4.21-BK] Eliminate warning in drivers/usb/hc_sl811.c

Marc-Christian Petersen (m.c.p@wolk-project.de)
Tue, 10 Dec 2002 02:48:28 +0100


--------------Boundary-00=_SORV18KJ0C2UQJL1LE0O
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Marcelo,

compile warning is:
#warning linux/malloc.h is deprecated, use linux/slab.h instead.

attached patch uses linux/slab.h instead, as adviced by above ;)

ciao, Marc
--------------Boundary-00=_SORV18KJ0C2UQJL1LE0O
Content-Type: text/x-diff;
charset="us-ascii";
name="malloc-deprecated-slab-instead.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="malloc-deprecated-slab-instead.patch"

--- linux-old/drivers/usb/hc_sl811.c 2002-12-05 18:54:27.000000000 +0100
+++ linux-wolk/drivers/usb/hc_sl811.c 2002-12-10 02:43:44.000000000 +0100
@@ -28,7 +28,7 @@
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/sched.h>
-#include <linux/malloc.h>
+#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/smp_lock.h>

--------------Boundary-00=_SORV18KJ0C2UQJL1LE0O--

-
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/