Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3597462pxv; Mon, 28 Jun 2021 08:14:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa+it359qkJ+/TuVrUGPcrL/dyV3SVJpcxcGSduKR+12YPhBfsPafrjHqwz4jSJlFxUEr8 X-Received: by 2002:a50:b2c5:: with SMTP id p63mr33153830edd.5.1624893284765; Mon, 28 Jun 2021 08:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624893284; cv=none; d=google.com; s=arc-20160816; b=vllzpl4olj3/RbPLk96AA4R92ape+KCx3c1TGie/eEQ+K0qCYA6mjdzSUG4ZmT8F11 B3A81AaWvYu0gk6Vni/eYSq6yUsgMexxquYWbdHXrL8mCrdO1JJasvEi1p/ZF6FDdipS f6Q6nvhMg22qCmiCMRH1CsEZ3br7IcJQ3IbP7AHdZ7pdwwwGNaQRc+ng1ZCM7Nn1OVmU 0eEe6dMk0vfsP/MAU2BWKM5iAl/qTwiENhaMa9ZTnym3160RQt2/p31TQfE3dLzphS2g t5MOOYWFZSJYTc2fv9tRh6EO7yFa6CdMQc1yi+kQbPHd3/wR++U5h7oU3DYH7hP5fdht MXeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3E7XGGINHQvnFzen9meHWXXK4z2N6No0kTuDLSSPqac=; b=ASmaggsyyfuxlOrr7/xoFQ3QFIAssOB4d/9avV993JDMkko4Cz97vEpqDQh9pfIIeG ODNwONooFPSBSp/a1JLhu48YdPLZ1loDFHsD1tdFcOabCotX9J4mA9d0VfcqonCEzICn +BPPkC1QPkYgDQ7vXe8gEwLRqsv2hpg3yRRc9gw6B5DxQMAcTkUNf9yh4Xb0UrtQcjMA t1vkvNb8u8UnlAlkT7mCiwxa/54B148Se2jKej7ED1kRYgcPM9Ve8dkHWWTTxlYS+XpR 2XzTP+AVRqXUeakG95BkwGKXqJlJVnGEj8pAioFoKvXOeDSA8kA9BA/bVG/tJC6kFQPq fMAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZC+A7e4u; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si14896810eda.200.2021.06.28.08.14.15; Mon, 28 Jun 2021 08:14:44 -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=@kernel.org header.s=k20201202 header.b=ZC+A7e4u; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237870AbhF1POr (ORCPT + 99 others); Mon, 28 Jun 2021 11:14:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:57924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235071AbhF1OxT (ORCPT ); Mon, 28 Jun 2021 10:53:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C7A361D43; Mon, 28 Jun 2021 14:37:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891049; bh=GZR7LTOUScB2ZqvCDfM57F91uXP9lk4sueO4zBXmCKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZC+A7e4uLwoTgNnM02ZEmp+DKQnSLksekfJOGULYLTIFqivgz2c74yQGRSHK+5sqC 3gmls6VI0ly8zVk7nYMgK1oE9D28gu7j4+UcVc/lOtSIzOxa/+EFrXblZleZY8xDbW o0ZbRVQugFt0xQfKRjBHUv7qD3WD3r7TePtpL7NW0UL4TVrLnEpeZjyNl9TM7hus67 bavOilJGzoqMB1M7ZJwrffR1o6s4ErMJJMWwZiqUuqthD6I6ZMBbBWneRYBqqAgPLz ghEnTlSmxJokO/6tR/uvH/EearKskndJy/V9+dJUm5c9W1McphQN67+psUAFIBRWqD Ih6Ed4IgEkHmQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Nick Desaulniers , Masahiro Yamada , Greg Kroah-Hartman Subject: [PATCH 4.14 68/88] Makefile: Move -Wno-unused-but-set-variable out of GCC only block Date: Mon, 28 Jun 2021 10:36:08 -0400 Message-Id: <20210628143628.33342-69-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143628.33342-1-sashal@kernel.org> References: <20210628143628.33342-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.238-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.238-rc1 X-KernelTest-Deadline: 2021-06-30T14:36+00:00 X-stable: review X-Patchwork-Hint: Ignore 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 [nc: Backport, workaround lack of e2079e93f562 in older branches] Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bc9833fdca1a..e2977b8f8e6a 100644 --- a/Makefile +++ b/Makefile @@ -716,12 +716,11 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # See modpost pattern 2 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) -else +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) -endif KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) ifdef CONFIG_FRAME_POINTER -- 2.30.2