Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2489455pxj; Mon, 10 May 2021 04:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxOEtiSCjKSWsgI7W9+mv+s8gO6K8YgFnzZG4J8iW35VypmghAG/tdpJV6iNEzDocvck6i X-Received: by 2002:a6b:d918:: with SMTP id r24mr17552930ioc.25.1620645637866; Mon, 10 May 2021 04:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645637; cv=none; d=google.com; s=arc-20160816; b=Y1sJK2RLAS3dBCXKKtX1ZFx6827ukQBl2UkdogAj7eTUx68w7jub1DgkFjxRYvqvHV 8ovfSy5Yj06FlNbtb0ZhToiSyfDmkyTHnLa0DRXMuXQFcCCPMRDj2J9tBmXvXQUU6qjB 24NsXo8isW1ooVfDNLh94WB0dxeVhaCYGI8FEIryG+VjXEmOeCKOpb/UoSqn5Wn16ei9 Qp2e/Rm5df5sPvRICMVU1pCefDJDrpMsbGlmpp9A1ylb01Rt1WxXYAdwxQJCA79i4tR+ RF58CUTf1f/+LRPjS5cBj8wbl/kuMhGd/K6uBUbQYOepW7GH5QZ/JQhG9s8u2zDxCkwX casw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6dYvz8NWnqUvuC7NR7OOkUQMepbMD83FNFIScjTOPAg=; b=IGbfVvGrD1de3bzrkiDDhw62ymF2KgGneaeP2SdkzdiOjX5gVpYdrONannz2JUS7W7 JMSIqy+wm6ks/3reXNhu1sFEB25UfNlcgijvRVJTP7ftpSAcA/8DZkljBYSfm2mvnPam P3xgtQOPp0nDYl7VMj2OA2hu7pkMRkRr38aaNJbwKxURwH3N/ir0TqLJUWcDxfXfvyPD CoNgSG9bYbFfa/Qr9fZHLxGbutTQz+tcTXB7wN4Q+eWDdIaWdOHM7ApTv4q/kKSm6Hlz PEkZKHfizet7XA4Nwh0hwtiHDVa07CVa/Cf03Qsk5kx7HWrdy5Av0m3QG5GQw28ySX6E V5Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BhlxYa2K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si15510332jap.71.2021.05.10.04.20.25; Mon, 10 May 2021 04:20:37 -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=@linuxfoundation.org header.s=korg header.b=BhlxYa2K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237436AbhEJLPE (ORCPT + 99 others); Mon, 10 May 2021 07:15:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:41710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233721AbhEJKuc (ORCPT ); Mon, 10 May 2021 06:50:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1F21061A3E; Mon, 10 May 2021 10:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643212; bh=lnU9WlUijGhjw3cdCIlNG3OKsXm7PyqbstikCcPPNwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BhlxYa2Kv3Ydiu8E2OQ35ZHdvgyhBNhfGeBBJ4etWsexGk8V5hu1UDFgmRLy0L4Io MxWafDi70THhJ592UlN8PDrzMmHFCdK4uXaFhhnpLvJIH3fARlXblnJjTFv4+egESb 6nFNiTcdLMwurwqYpzU4T58DPvlbbCaBpz0jk0Ng= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Masahiro Yamada Subject: [PATCH 5.10 223/299] Makefile: Move -Wno-unused-but-set-variable out of GCC only block Date: Mon, 10 May 2021 12:20:20 +0200 Message-Id: <20210510102012.306764360@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit 885480b084696331bea61a4f7eba10652999a9c1 upstream. Currently, -Wunused-but-set-variable is only supported by GCC so it is disabled unconditionally in a GCC only block (it is enabled with W=1). clang currently has its implementation for this warning in review so preemptively move this statement out of the GCC only block and wrap it with cc-disable-warning so that both compilers function the same. Cc: stable@vger.kernel.org Link: https://reviews.llvm.org/D100581 Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Tested-by: Nick Desaulniers Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/Makefile +++ b/Makefile @@ -775,16 +775,16 @@ KBUILD_CFLAGS += -Wno-gnu KBUILD_CFLAGS += -mno-global-merge else -# These warnings generated too much noise in a regular build. -# Use make W=1 to enable them (see scripts/Makefile.extrawarn) -KBUILD_CFLAGS += -Wno-unused-but-set-variable - # Warn about unmarked fall-throughs in switch statement. # Disabled for clang while comment to attribute conversion happens and # https://github.com/ClangBuiltLinux/linux/issues/636 is discussed. KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough,) endif +# These warnings generated too much noise in a regular build. +# Use make W=1 to enable them (see scripts/Makefile.extrawarn) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) + KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls