From patchwork Fri Jul 14 12:06:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9840755 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 DC3A460393 for ; Fri, 14 Jul 2017 12:09:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFBFE28752 for ; Fri, 14 Jul 2017 12:09:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C45DE2877A; Fri, 14 Jul 2017 12:09:34 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 76EE42875A for ; Fri, 14 Jul 2017 12:09:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932127AbdGNMIw (ORCPT ); Fri, 14 Jul 2017 08:08:52 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:61866 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753830AbdGNMIv (ORCPT ); Fri, 14 Jul 2017 08:08:51 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0M3jdZ-1dnnPo0jw1-00rFxu; Fri, 14 Jul 2017 14:07:41 +0200 From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Masahiro Yamada , Michal Marek Cc: Greg Kroah-Hartman , Linus Torvalds , Guenter Roeck , akpm@linux-foundation.org, netdev@vger.kernel.org, "David S . Miller" , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, x86@kernel.org, Arnd Bergmann , linux-kbuild@vger.kernel.org Subject: [PATCH 01/22] kbuild: disable -Wformat-truncation warnings by default Date: Fri, 14 Jul 2017 14:06:53 +0200 Message-Id: <20170714120720.906842-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170714120720.906842-1-arnd@arndb.de> References: <20170714120720.906842-1-arnd@arndb.de> X-Provags-ID: V03:K0:92WWBQ7B8PToazBKMpJ+DptMaDwg6IrCD4LO39e1mXqU4uGPBTh /pH56XafZfDxEZjT59Xth0zeiFb2TrJ//vUXUbiaFZiPXrFyOXTE15BONJzTeAm/z2IDDXs 3w7K5lapDYwdL0eQF2wGw1mOHuxGBnnOFrjLFnwWqLcCDufQS5Sp+F/D2JsqbcFbPE4aUdS uPAq8FxcJ6MPjQ2DbJxMA== X-UI-Out-Filterresults: notjunk:1; V01:K0:nqvDx+noyQ8=:CMWp9m/jS86Czc/EDGMPpY fkGork8cIfISdPA0g/XUz8B47xY0mQNNHMIcgssdyUnP3baEXT9jl0DGXdbVGcsoYBLN7MRxA 2lwEQSazzDwezpLBPafwvRvbrB5mpvmIvwF0J+YF/YH8GnmBQfde7FRz+XfqHeBDzJC6xic+L lq9bk5+/OiF/GAbJt4ldeaa8G8vb03o3M79xdT5tg/iwCez56pkdYv5nU3XxcXogTuOmsRhbm w/wSOhpacRoKgT7uRW+8iJ6sjGDrpGxwDgvoGrMkadgghhelVBSPNQWNCm/pdZ1fu7k45gjqv 4Vc/u7eeaFA2fBWWWbiVMWidnAqHcQ8JdfOYlKsBIPMnXP5yXceoCa5MnAWHSb0BOgaYa1CJm u2J0cHJ+6+Yeaj9q13DvYIHDzT1gpkFmyz3tCb2Mz3CS6gPBuPvkRDfYepNmdgYKmheNaPO/O Ej5QfcKZ0/KoEM1zwPI2DvBnRz5kIUW2wPWo5URlB7OkGkWYUWJdYfFYV9dtjGak9zDSJMT42 yRiJ4ti8Z733AtqJJEks+IoC7w9rVEmI+HoI0MRaQkfRsVY8nfZt4jd4dWUFkiqBw5Rd1pQEt FPMBWbMs9RuoVkQYkxWOrbICAcbh9ds29aT0jTcynXC44QzqjzCaMaL+NrhW7naYUzSoInOSo 6pPxkMnCdJ1vISrPs4/KReohh5SpQM6dwgxSG0N6XaD2GNK/b6tMGMm5PKMfS0+U2ZOwIB4uE 0qFtsHxF6W8s0bLAR3M24cI2P0zAkyo9dkuQDA== Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With x86 allmodconfig, we currently get 233 -Wformat-truncation warnings, which makes the entire warnings rather useless. This turns off the warning by default, unless we specify W=1 or higher Signed-off-by: Arnd Bergmann --- scripts/Makefile.extrawarn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index fb3522fd8702..4b63c2f71adb 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -67,5 +67,8 @@ KBUILD_CFLAGS += $(call cc-disable-warning, format) KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare) KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length) KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized) +else +# noisy gcc-7 warnings +KBUILD_CFLAGS += $(call cc-option,-Wformat-truncation=0) endif endif