From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751293AbeACWeE (ORCPT + 1 other); Wed, 3 Jan 2018 17:34:04 -0500 Received: from ozlabs.org ([103.22.144.67]:34187 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbeACWeD (ORCPT ); Wed, 3 Jan 2018 17:34:03 -0500 Date: Thu, 4 Jan 2018 09:33:59 +1100 From: Stephen Rothwell To: Steve French , CIFS Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Long Li , Pavel Shilovsky , Ronnie Sahlberg Subject: linux-next: build warning after merge of the cifs tree Message-ID: <20180104093359.4e012f2f@canb.auug.org.au> 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 Return-Path: Hi all, After merging the cifs tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/seqlock.h:36:0, from include/linux/time.h:6, from include/linux/stat.h:19, from include/linux/module.h:10, from fs/cifs/smbdirect.c:16: fs/cifs/smbdirect.c: In function 'smbd_recv_buf': include/linux/spinlock.h:260:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] _raw_spin_unlock_irqrestore(lock, flags); \ ^ fs/cifs/smbdirect.c:1865:16: note: 'flags' was declared here unsigned long flags; ^ Introduced by commit ac69f66e54ca ("CIFS: SMBD: Implement function to receive data via RDMA receive") OK, this is a false positive, but annoying. I am using gcc 5.2.0. -- Cheers, Stephen Rothwell