From: Stephen Hemminger <shemminger@osdl.org>
To: viro@math.psu.edu
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Eliminate compiler warnings from jbd_kmalloc
Date: 09 Oct 2002 11:52:50 -0700 [thread overview]
Message-ID: <1034189570.1895.33.camel@dell_ss3.pdx.osdl.net> (raw)
This looks trivial and fixes compiler warnings. __FUNCTION__ is a
constant and gcc warns about passing it as a mutuable string.
--- linux-2.5/include/linux/jbd.h 2002-09-09 10:27:12.000000000 -0700
+++ dcl-latest/include/linux/jbd.h 2002-10-09 11:40:00.000000000 -0700
@@ -54,7 +54,7 @@
#define jbd_debug(f, a...) /**/
#endif
-extern void * __jbd_kmalloc (char *where, size_t size, int flags, int retry);
+extern void * __jbd_kmalloc (const char *where, size_t size, int flags, int retry);
#define jbd_kmalloc(size, flags) \
__jbd_kmalloc(__FUNCTION__, (size), (flags), journal_oom_retry)
#define jbd_rep_kmalloc(size, flags) \
--- linux-2.5/fs/jbd/journal.c 2002-09-30 10:00:49.000000000 -0700
+++ dcl-latest/fs/jbd/journal.c 2002-10-09 11:41:07.000000000 -0700
@@ -1526,7 +1526,7 @@
* Simple support for retying memory allocations. Introduced to help to
* debug different VM deadlock avoidance strategies.
*/
-void * __jbd_kmalloc (char *where, size_t size, int flags, int retry)
+void * __jbd_kmalloc (const char *where, size_t size, int flags, int retry)
{
void *p;
static unsigned long last_warning;
reply other threads:[~2002-10-09 18:47 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=1034189570.1895.33.camel@dell_ss3.pdx.osdl.net \
--to=shemminger@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@math.psu.edu \
/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®