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: 101531 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp824862qge; Thu, 10 Nov 2016 08:48:37 -0800 (PST) X-Received: by 10.107.17.205 with SMTP id 74mr6871554ior.96.1478796517749; Thu, 10 Nov 2016 08:48:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fi1si4888822pab.9.2016.11.10.08.48.37; Thu, 10 Nov 2016 08:48:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935415AbcKJQsf (ORCPT + 27 others); Thu, 10 Nov 2016 11:48:35 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:61240 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964878AbcKJQrr (ORCPT ); Thu, 10 Nov 2016 11:47:47 -0500 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 Cc: Andrew Morton , Arnd Bergmann , Anna Schumaker , "David S. Miller" , Herbert Xu , Ilya Dryomov , Javier Martinez Canillas , Jiri Kosina , Jonathan Cameron , Ley Foon Tan , "Luis R . Rodriguez" , Martin Schwidefsky , Mauro Carvalho Chehab , Michal Marek , Russell King , Sean Young , Sebastian Ott , Trond Myklebust , x86@kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, nios2-dev@lists.rocketboards.org, linux-s390@vger.kernel.org, linux-crypto@vger.kernel.org, linux-media@vger.kernel.org, linux-nfs@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.9.0 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)