Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757036Ab0KJVfD (ORCPT ); Wed, 10 Nov 2010 16:35:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26295 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756843Ab0KJVfB (ORCPT ); Wed, 10 Nov 2010 16:35:01 -0500 Subject: Re: [PATCH] fs/gfs2/glock.h: Add __attribute__((format(printf,2,3)) to gfs2_print_dbg From: Steven Whitehouse To: Joe Perches Cc: linux-kernel@vger.kernel.org, cluster-devel@redhat.com In-Reply-To: <1289423946.15905.103.camel@Joe-Laptop> References: <5918196ac71b4e3184a534643cdf499b54416541.1289348757.git.joe@perches.com> <1289422527.2438.20.camel@dolmen> <1289423946.15905.103.camel@Joe-Laptop> Content-Type: text/plain; charset="UTF-8" Organization: Red Hat UK Ltd Date: Wed, 10 Nov 2010 21:35:00 +0000 Message-ID: <1289424900.2438.21.camel@dolmen> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1258 Lines: 40 Hi, Now in the GFS2 -nmw git tree. Thanks, Steve. On Wed, 2010-11-10 at 13:19 -0800, Joe Perches wrote: > Functions that use printf formatting, especially > those that use %pV, should have their uses of > printf format and arguments checked by the compiler. > > Signed-off-by: Joe Perches > --- > No current uses report any error in an allyesconfig build. > > fs/gfs2/glock.h | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h > index db1c26d..a12d117 100644 > --- a/fs/gfs2/glock.h > +++ b/fs/gfs2/glock.h > @@ -212,6 +212,8 @@ int gfs2_glock_nq_num(struct gfs2_sbd *sdp, > int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); > void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); > void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); > + > +__attribute__ ((format(printf, 2, 3))) > void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...); > > /** > > -- 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/