Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp366209pxb; Sat, 11 Sep 2021 07:30:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsOfbKp+Twd9ETpBbgh+R2aokkfxBeei/wz96Qf2xi0EjCTaS501wxx4VrzdxEBb8oWuek X-Received: by 2002:a05:6e02:198d:: with SMTP id g13mr1992511ilf.319.1631370606908; Sat, 11 Sep 2021 07:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631370606; cv=none; d=google.com; s=arc-20160816; b=h6zwW3OwF6GnvykdrzASiaj/SwJ5PS0N10cPgWDAECYSSgWIZTRRsJ9GFpF4orj61U ye4XvVOhiOLZEc//pHTCQIuRvrhMeLSZPr7rRwOkO8b05I3lTkA+9mVRzWtygozq1lgH 3NMBZZ263HRngOK0NcmaJd4sJ2aNH852Q+tX65fLgPE6hQdqwhaEJRaiPHkp7pls2aTM 1pMiBnNM1him9iKbEuBJfY6QgJAj7uwgPiaTICKwhhIDc+tvRo/+VcsMnzlMKTo58J/z KOFabdYddup0EisoOx0YDK6cPhkG8hzSdN1ADEmy9N1mPquZNkUsFiQqh/L71kfRKhus m8cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=GEqRQ9y9a9MIz3wuwpdSf+YO6+ZP1yLEjSzwiERQLUE=; b=vcKyuU3VKzLCFvdGkWau+JR3DpZ6la+t4hBbNzMz2K3wrzknG1nR0R/G6mb8kxwAyk 0qlPpYNYS2AmhpfbCZiWgSFjkdrhA/BB+CnY2G8McxYbnrcHIImEAMYasrYPSoRU6O+h sE3P0pf5UsUle8qDD2HKWD+kSgy6tfoJgYv+3t3ifKt7vfT3pCes0l8cxrvsWAcicN+q UDjq4gdzY54k63oXNuX+L+M00jSgEEVN45uzMbhHGKBETwc8Kynm8XFzmlpb6X6TUxPk IIbmHrzmF/FEfnFm+kVmq0ybrzbZO7NPZjiLZmODf0NmcEjmhnw7oHUVIuGTCzKMJz6j Qj9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=bQxDj5+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si1705530jat.54.2021.09.11.07.29.54; Sat, 11 Sep 2021 07:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=bQxDj5+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236112AbhIKOaZ (ORCPT + 99 others); Sat, 11 Sep 2021 10:30:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbhIKOaY (ORCPT ); Sat, 11 Sep 2021 10:30:24 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5C75C061574; Sat, 11 Sep 2021 07:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=GEqRQ9y9a9MIz3wuwpdSf+YO6+ZP1yLEjSzwiERQLUE=; b=bQxDj5+rnE36snGRjDajJqf702 Z/ThVOWXP8sAy/mxc8S7d11dASUIcJBUH/RZsc9LuNBWPy7jVTRpIUKTUUHkV+Wvddewz6jC8bdOm AAaHwGiDHO0LSG9DGs3ksvKPw9cJ29ni/DeCf6m26D135Tw57yDh5NnqUz0iF7NRAcXxSfW86xbU1 3VflL6UBzeTc5DBrje7LICjquuUnqUDo9X+erTBQh0QXS3lr6sz42SWxhoGBFjP+T3xlhRdx6qFM6 YVtvWy/k3z/6HcoBloGBtjh9xgSLb6DUA++mlK7KNwbZxTE0+qETwNQ12s8ViEBAj/RfvHGT32b44 2fJYgYjg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mP40B-002OZ9-1G; Sat, 11 Sep 2021 14:29:07 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 6604E9862C9; Sat, 11 Sep 2021 16:29:05 +0200 (CEST) Date: Sat, 11 Sep 2021 16:29:05 +0200 From: Peter Zijlstra To: masahiroy@kernel.org Cc: linux-kernel@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, x86@kernel.org, linux-toolchains@vger.kernel.org Subject: [PATCH] Makefile: 'Promote' -Wunused-but-set-variable to W=3 Message-ID: <20210911142905.GZ4323@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upgrade -Wunused-but-set-variable to W=3 to avoid the build robots sending endless spam for this garbage warning. By promoting it to W=3 the robots will no longer report it and people will no longer attempt to fix them by making the code worse. Signed-off-by: Peter Zijlstra (Intel) --- diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index d53825503874..6686cc587d3b 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -28,7 +28,6 @@ KBUILD_CFLAGS += -Wmissing-format-attribute KBUILD_CFLAGS += -Wmissing-prototypes KBUILD_CFLAGS += -Wold-style-definition KBUILD_CFLAGS += -Wmissing-include-dirs -KBUILD_CFLAGS += $(call cc-option, -Wunused-but-set-variable) KBUILD_CFLAGS += $(call cc-option, -Wunused-const-variable) KBUILD_CFLAGS += $(call cc-option, -Wpacked-not-aligned) KBUILD_CFLAGS += $(call cc-option, -Wstringop-truncation) @@ -88,6 +87,7 @@ KBUILD_CFLAGS += -Wredundant-decls KBUILD_CFLAGS += -Wsign-compare KBUILD_CFLAGS += -Wswitch-default KBUILD_CFLAGS += $(call cc-option, -Wpacked-bitfield-compat) +KBUILD_CFLAGS += $(call cc-option, -Wunused-but-set-variable) KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN3