Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756148AbYLKEPR (ORCPT ); Wed, 10 Dec 2008 23:15:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753232AbYLKEPE (ORCPT ); Wed, 10 Dec 2008 23:15:04 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:34878 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751666AbYLKEPD (ORCPT ); Wed, 10 Dec 2008 23:15:03 -0500 Date: Wed, 10 Dec 2008 20:14:55 -0800 From: Andrew Morton To: Al Viro Cc: Nguyen Anh Quynh , LKML , Kuniyasu Suzaki Subject: Re: [PATCH] fix calls to request_module() Message-Id: <20081210201455.0c611484.akpm@linux-foundation.org> In-Reply-To: <20081211040118.GK28946@ZenIV.linux.org.uk> References: <9cde8bff0812101935j5ef56140k67035d892a868738@mail.gmail.com> <20081211040118.GK28946@ZenIV.linux.org.uk> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 23 On Thu, 11 Dec 2008 04:01:18 +0000 Al Viro wrote: > On Thu, Dec 11, 2008 at 12:35:21PM +0900, Nguyen Anh Quynh wrote: > > Hi, > > > > The request_module() function should always have the 1st param as a > > format argument. So for example, request_module("i2c-powermac") should > > be called as request_module("%s", "i2c-powermac"). Otherwise, new gcc > > like gcc 4.3.2 on Ubuntu 8.10 would spit out a lot of warnings. This > > patch fixes them all in linus-git tree. > > ... and it doesn't address the underlying problems at all. A string literal > without a single % in it is a perfectly sane and valid format. _Why_ are > we getting these warning? extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2))); ? -- 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/