* [PATCH] Eliminate compiler warnings from jbd_kmalloc
@ 2002-10-09 18:52 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2002-10-09 18:52 UTC (permalink / raw)
To: viro; +Cc: linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-09 18:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09 18:52 [PATCH] Eliminate compiler warnings from jbd_kmalloc Stephen Hemminger
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®