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;
-
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/
This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:32 EST