From patchwork Thu Nov 10 16:44:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 693342 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tF89S36Dhz9vDp for ; Fri, 11 Nov 2016 03:47:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4sVm-0004Dl-PV; Thu, 10 Nov 2016 16:47:38 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4sVi-0003wa-22 for linux-snps-arc@lists.infradead.org; Thu, 10 Nov 2016 16:47:35 +0000 Received: from wuerfel.lan ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MHfXI-1c5ywY3m9s-003PTv; Thu, 10 Nov 2016 17:45:47 +0100 From: Arnd Bergmann To: Linus Torvalds Subject: [PATCH v2 11/11] Kbuild: enable -Wmaybe-uninitialized warnings by default Date: Thu, 10 Nov 2016 17:44:54 +0100 Message-Id: <20161110164454.293477-12-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161110164454.293477-1-arnd@arndb.de> References: <20161110164454.293477-1-arnd@arndb.de> X-Provags-ID: V03:K0:bAjFzAv975O55N/Er9AEM4XGCSaNbeUMLaLIZdxmQg0w46I2Tay x44oSOCr7j350/i06yF1z4lAt5ETrbi2kyu+ZZ8Qy02hTQJpXX/ngJNTXi1YWIAg1WIO+nT mTnz/1HsNg1iBi3Fc/AgfNlMSu52J+E6Cy/OlS99Ccr2BfHqMZtv1w7WmzmEtz5dysTWcAN RELdH8jeX5ZhSC7g5eBuQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:IihISzsQ98E=:3+zGG4LVU1nJonLCU+47Zl qFM4yUvEWUT2l8+Z/ZpqIuRvOz7lN1lgde4UTHC+fNr+RUaz4xoCrO9A9x5SQaHEPYRjDjKUS Xvc19Tx+6PIaIs+MLSsWwqHd5aKOy/5Os4Sp1D/wyZn/dZXl1dtdpB/p23VS41NVY6w7t13Wj 8kcrlr/28HPTMY0b5YlPD2ua+I/usb/hp9H6YKPO2s0g3W5c1mSp/msTonibOC/8Yz+AGtVyE gV5VDy0axIDGG8FBPAFTxfgqWflSrKcXoxPIL4Dml/BLiPDY4qSPfB9Iun+33cN3Aa3O+go2h DEWtjDukLWXurBEe4ru39MsPzQpXK1t2vZg4+1V+EcHYlUywBCslXo/ERyIcQh2vl+CejrhKr WjHPEpCNx0BlaruUAV+UluUqC8DlD18vIhS1iLovx/PIaadjQgLM+A/P59H82dRoxj1Enll/A t2GsRmhM8v3JpnxWz7lV/7LbYePqS/+rcHn+WInB23GenCL1pGN7O0PBOvtqQhjd00aXES8ye t3j4Er09y+h073BDUlHeEUGrSNcs2MAmp8ZiPNpvWth+gfUwRNFUtNt6dv5p4+vrIHTnffvAN yckfBO08Odnk5QIHcNPyn2AhMN7ejpoAQ+j6/Jspjcy1CNgzsooH/swcinc02wuVgM1hqONAT cXP7fNN18F27b9fqT+eY0t1rzjiZkd8jZigxg2V0U6EQ4832lJEepR+p2RoLVlFZi9T4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161110_084734_550034_2610CA40 X-CRM114-Status: GOOD ( 12.20 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.131 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.131 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sean Young , Trond Myklebust , linux-s390@vger.kernel.org, Herbert Xu , x86@kernel.org, Sebastian Ott , Russell King , Javier Martinez Canillas , Ilya Dryomov , linux-snps-arc@lists.infradead.org, linux-media@vger.kernel.org, Arnd Bergmann , linux-kbuild@vger.kernel.org, Jiri Kosina , Michal Marek , nios2-dev@lists.rocketboards.org, Mauro Carvalho Chehab , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Anna Schumaker , "Luis R . Rodriguez" , linux-crypto@vger.kernel.org, Martin Schwidefsky , Ley Foon Tan , Andrew Morton , "David S. Miller" , Jonathan Cameron MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Previously the warnings were added back at the W=1 level and above, this now turns them on again by default, assuming that we have addressed all warnings and again have a clean build for v4.10. I found a number of new warnings in linux-next already and submitted bugfixes for those. Hopefully they are caught by the 0day builder in the future as soon as this patch is merged. Signed-off-by: Arnd Bergmann --- Please check if there are any remaining warnings with this patch before applying. The one known issue right now is commit 32cb7d27e65d ("iio: maxim_thermocouple: detect invalid storage size in read()"), which is currently in linux-next but not yet in mainline. There are a couple of warnings that I get with randconfig builds, and I have submitted patches for all of them at some point and will follow up on them to make sure they get addressed eventually. --- scripts/Makefile.extrawarn | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 7fc2c5a..7c321a6 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -60,8 +60,6 @@ endif KBUILD_CFLAGS += $(warning) else -KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized) - ifeq ($(cc-name),clang) KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) KBUILD_CFLAGS += $(call cc-disable-warning, unused-value)