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: 9421531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A126060720 for ; Thu, 10 Nov 2016 16:48:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3C9E2976F for ; Thu, 10 Nov 2016 16:48:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 983482977B; Thu, 10 Nov 2016 16:48:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B51629772 for ; Thu, 10 Nov 2016 16:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935158AbcKJQse (ORCPT ); Thu, 10 Nov 2016 11:48:34 -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-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)