Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp137991rwb; Wed, 10 Aug 2022 16:29:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR7FBNeHItfScvP4R/v6GyOiiPGdnGR7d76xl6gtQSkBhmL7n8KGHJ3AlzN5UPnesP7d0js5 X-Received: by 2002:a63:1a49:0:b0:41b:c0b2:c94d with SMTP id a9-20020a631a49000000b0041bc0b2c94dmr24049944pgm.524.1660174140083; Wed, 10 Aug 2022 16:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660174140; cv=none; d=google.com; s=arc-20160816; b=M8uBH6AH7FZZLfBfRP5h4gzcq/lrpsGMU0nLomY0rKxG3EEguiVRLevjWeWRn53MJJ 5jvt9TXDr4GE7In9UG0G1rXhAnsEwUw6/v4kcC0HcZ06gzgU4gdpMJvXbXlUKgo1ATwQ O2qC229AsHOSmZUsjxHILGxdfDH5yD+V+erKLGA+3vZcdKEjdZezo4OUURcDqAcSgRt1 Obo6G/98EBZBIY5wOwqaUVYjUuHPMNI/xZHgOxh7nr5Ck9EkMu07fmtzLG2WMkW4ynb1 Xs4u4UFVve3UKv4TcslA5GA5aqueNnrd9IWct8KvRYxwsTvA5GsFQOQfxw01tp8VeKBy 66zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3P2ogaEHZ4xxKYlXzo0OXDg69HLfAeNV69vpVXfyQdA=; b=wVte52Tw6Fo66qN8okq525tLwANv0psmysfyVicUc2PDVdqfZdecLZh7LZ+nJVasHE 2+Slrah2DbwhUNgbnduukNVJrZjpppgKR6uTfj5Sv2Klc+bW37l8SzDQpMQnNcMnB7Wr QAEwHwy3b5ou4khV+6CYpckTTmawBVNUwVwUSuYg/Sq5CXcCGzrkKPM4JMIGNiXgiXdg efN++q77kEFGm20d+K0nloQd/CgJfUGON1P7X5ktYtskQJSC+wzgWojDXnulynjSAXO+ qGlPh1dlaX3i5gQ7pWbk9CRLy5s3YQXvrNGmO+3HSa+KzcNwiaT1OmKi0R/c6abd+vp0 IyoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fQxNqwPV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170902740800b0017087643e9fsi13526128pll.579.2022.08.10.16.28.29; Wed, 10 Aug 2022 16:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fQxNqwPV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230508AbiHJXBv (ORCPT + 99 others); Wed, 10 Aug 2022 19:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbiHJXBt (ORCPT ); Wed, 10 Aug 2022 19:01:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F6216068D; Wed, 10 Aug 2022 16:01:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1904EB81ECC; Wed, 10 Aug 2022 23:01:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48AABC433C1; Wed, 10 Aug 2022 23:01:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660172505; bh=NnDvxipWRWd22orltCAXMkg0yBGFjX0zipam7lQ+xZk=; h=From:To:Cc:Subject:Date:From; b=fQxNqwPVBp5/BwVHJmmCpTrKNt8De6t9ihL+6vUTvAmr8X94LXBb1Kr1ATSYdCpp7 5795/Y/AupALDlYajNSBCEJsSYz44G3JlGqSkE0776U+lFbAj8TA3ooZwWD+rVEEiS 41EueM3llhm6ZoHPJK3oG52p2khuVOlPNUbBfc8okBbFsOx6acrpuFhjiZwRrcibeX 4B70Xbe5flokCaxsL5cjvTWEVP6BeDVQaKNsEaVhegJ1ZeUq3ROqnTzpIeCRggwD9d oxYKF60xbEmGx/vyc1ER0LVhwdIdJBJ30ljgMYcSyhxcktgoE1hlEKfX+X+0RryuBG F2DQuYibHMKPA== From: Nathan Chancellor To: Masahiro Yamada Cc: Nick Desaulniers , Tom Rix , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor Subject: [PATCH] scripts/Makefile.extrawarn: Do not disable clang's -Wformat-zero-length Date: Wed, 10 Aug 2022 16:01:33 -0700 Message-Id: <20220810230133.1895778-1-nathan@kernel.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no instances of this warning in the tree across several difference architectures and configurations. This was added by commit 26ea6bb1fef0 ("kbuild, LLVMLinux: Supress warnings unless W=1-3") back in 2014, where it might have been necessary, but there are no instances of it now so stop disabling it to increase warning coverage for clang. Signed-off-by: Nathan Chancellor --- scripts/Makefile.extrawarn | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 9bbaf7112a9b..69cec45c4e71 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -48,7 +48,6 @@ else ifdef CONFIG_CC_IS_CLANG KBUILD_CFLAGS += -Wno-initializer-overrides KBUILD_CFLAGS += -Wno-sign-compare -KBUILD_CFLAGS += -Wno-format-zero-length KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access) base-commit: aeb6e6ac18c73ec287b3b1e2c913520699358c13 -- 2.37.1