Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758852AbZFWIzn (ORCPT ); Tue, 23 Jun 2009 04:55:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752766AbZFWIze (ORCPT ); Tue, 23 Jun 2009 04:55:34 -0400 Received: from cantor.suse.de ([195.135.220.2]:35844 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754904AbZFWIzd (ORCPT ); Tue, 23 Jun 2009 04:55:33 -0400 Date: Tue, 23 Jun 2009 10:55:35 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@wotan.suse.de To: Alex Riesen Cc: linux-kernel@vger.kernel.org, Tom Talpey , Trond Myklebust Subject: Re: [PATCH] Use formatting of module name in SUNRPC In-Reply-To: <20090527175955.GB8969@blimp.localdomain> Message-ID: References: <20090527175955.GB8969@blimp.localdomain> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1365 Lines: 47 On Wed, 27 May 2009, Alex Riesen wrote: > Besides, the old code caused gcc-4.3.3 to produce the warning: > "format not a string literal and no format arguments" > > Signed-off-by: Alex Riesen > --- > net/sunrpc/xprt.c | 5 +---- > 1 files changed, 1 insertions(+), 4 deletions(-) > > diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c > index 06ca058..82f62fd 100644 > --- a/net/sunrpc/xprt.c > +++ b/net/sunrpc/xprt.c > @@ -162,7 +162,6 @@ EXPORT_SYMBOL_GPL(xprt_unregister_transport); > int xprt_load_transport(const char *transport_name) > { > struct xprt_class *t; > - char module_name[sizeof t->name + 5]; > int result; > > result = 0; > @@ -174,9 +173,7 @@ int xprt_load_transport(const char *transport_name) > } > } > spin_unlock(&xprt_list_lock); > - strcpy(module_name, "xprt"); > - strncat(module_name, transport_name, sizeof t->name); > - result = request_module(module_name); > + result = request_module("xprt%s", transport_name); > out: > return result; > } Trond, are you planning to take this one through your tree? Thanks, -- Jiri Kosina SUSE Labs -- 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/