mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: linux-kernel@vger.kernel.org
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>
Subject: [PATCH 2.4.21-BK] Eliminate warning in drivers/usb/hc_sl811.c
Date: Tue, 10 Dec 2002 02:48:28 +0100	[thread overview]
Message-ID: <200212100248.28309.m.c.p@wolk-project.de> (raw)

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

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

[-- Attachment #2: malloc-deprecated-slab-instead.patch --]
[-- Type: text/x-diff, Size: 376 bytes --]

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

                 reply	other threads:[~2002-12-10  1:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212100248.28309.m.c.p@wolk-project.de \
    --to=m.c.p@wolk-project.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®