Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 9 Jan 2003 14:08:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 9 Jan 2003 14:08:44 -0500 Received: from air-2.osdl.org ([65.172.181.6]:45517 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id ; Thu, 9 Jan 2003 14:08:28 -0500 Subject: [PATCH] slab.c warnings From: Stephen Hemminger To: Linus Torvalds Cc: Kernel Mailing List Content-Type: text/plain Organization: Open Source Devlopment Lab Message-Id: <1042139831.4864.51.camel@dell_ss3.pdx.osdl.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 09 Jan 2003 11:17:11 -0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 33 This gets rid of the compiler warnings in mm/slab.c: Example: mm/slab.c: In function `slab_destroy': mm/slab.c:806: warning: passing arg 1 of `__slab_error' discards qualifiers from pointer target type mm/slab.c:810: warning: passing arg 1 of `__slab_error' discards qualifiers from pointer target type diff -Nru a/mm/slab.c b/mm/slab.c --- a/mm/slab.c Thu Jan 9 11:10:13 2003 +++ b/mm/slab.c Thu Jan 9 11:10:13 2003 @@ -502,7 +502,8 @@ #define slab_error(cachep, msg) __slab_error(__FUNCTION__, cachep, msg) -static void __slab_error(char *function, kmem_cache_t *cachep, char *msg) +static void __slab_error(const char *function, kmem_cache_t *cachep, + const char *msg) { printk(KERN_ERR "slab error in %s(): cache `%s': %s\n", function, cachep->name, msg); - 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/