Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755985Ab1DJKIf (ORCPT ); Sun, 10 Apr 2011 06:08:35 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:50237 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755796Ab1DJKIe (ORCPT ); Sun, 10 Apr 2011 06:08:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=cwcK9xRqJ2U74H6vxFGxLfA8uPnS2x5mJ3x6PZM8U6m87cxctAwDeXSK4cysUFnBtx B1VEik42qxgetSdyq2pgrsvZ4WNg0E7onMYzcj527z88WLJd/OHqpEcL1njDh9kQqYMa IDyt11rxA60JXH+SgdzkxXwdeoMrvtadLpxow= Date: Sun, 10 Apr 2011 18:08:18 +0800 From: Harry Wei To: petr@vandrovec.name, viro@zeniv.linux.org.uk, arnd@arndb.de, npiggin@kernel.dk, jens.axboe@oracle.com, greg@kroah.com, akpm@linux-foundation.org, joe@perches.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH]initialize the array of fs/ncpfs/inode.c Message-ID: <20110410100816.GB4953@gmail.com> Mail-Followup-To: petr@vandrovec.name, viro@zeniv.linux.org.uk, arnd@arndb.de, npiggin@kernel.dk, jens.axboe@oracle.com, greg@kroah.com, akpm@linux-foundation.org, joe@perches.com, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1405 Lines: 50 Hi us, When i compile the linux-2.6.38.2, some warnings happened to me. One of them is like following. fs/ncpfs/inode.c: In function 'ncp_fill_super': fs/ncpfs/inode.c:451: warning: 'data.mounted_vol[1u]' may be used uninitialized in this function ... See details by the URL: http://s1202.photobucket.com/albums/bb364/harrywei/Kernel/?action=view¤t=patched.png So i patch for it below. Thanks. Harry Wei. From: Harry Wei Signed-off-by: Harry Wei --- fs/ncpfs/inode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 00a1d1c..15f0ebb 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c @@ -30,6 +30,7 @@ #include #include #include +#include #include @@ -461,6 +462,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent) #endif struct ncp_entry_info finfo; + data.mounted_vol[NCP_VOLNAME_LEN + 1] = {0}; data.wdog_pid = NULL; server = kzalloc(sizeof(struct ncp_server), GFP_KERNEL); if (!server) -- 1.7.0.4 -- 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/