Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3912325pxv; Mon, 28 Jun 2021 16:27:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNyLJ2c1n/XKsGetrwgtrELL049SqouRW4joKiFv2Y5a75PS6DS9Lw4GYebDwWvXr8hYqF X-Received: by 2002:a05:6602:c1:: with SMTP id z1mr1473548ioe.93.1624922871002; Mon, 28 Jun 2021 16:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624922870; cv=none; d=google.com; s=arc-20160816; b=UhT7eTnOzL+HOJWzCaTeELckS0xTjGCeZQacvglLroNzjvICe6vbvzzSSgIFCGGM3q ml/XpB+7LAPqZ1ANrjMQFqis6N76kWEcpPk615kJkP26eHbe5BhGxJ2Dq7HiAh575Kbj MFWY3K79FXzDd2vl03bqkb60MFHRJx6Wh9YlTranTHgSC2gR0ifdjhIIhxTf707Qto9r 66NQmOf0zS/iEtlEJ0fAhQLS+spGwRk17/f72aX7+rloWyM5iyNwlWeJwaY5b6v45gvD VD/ZRsfazx+4sIbqc282sU0un1S4pRW3NLgyHOQOOYUsRq2ljz8Pm7018dayzzTK82Ja DNZQ== 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=3haCLy4gvl3wHWtYIma9dG4boq4skWbXhiPlYtD30xw=; b=ho/DhM1b7UcoKEqxVFqueRQJkCYHQmoUHJ/r71IDX5ZWhaznRi3p6aE3cwNtpjM67w l6rDbmWuiglD0mU3IyNuw0CLaxxiFgyZeVZbtQ/RQ2mah/RKjDYAYuiES5fnHjScj6QO B5BrvEjUGJtpL9+B+gCkiqQKAs6nhLnWt49Usbv0gKFGtpG3VRJUW79ik+phTWZ6DZ6Y B0mOkWfekub18ObNTPMyR3P5qePGeRbWVmY/Uca5yRkcH1QXvfyu1CihM1sU4GXKAHGt VhuhzdnjblW9uVHL4yuhRNGIfpmmFe2bF6i5DntlI6y15/QzIjJExPjSCD7ocRaF4B3d IG3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T16zYBit; 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 w5si18499875ilh.139.2021.06.28.16.27.36; Mon, 28 Jun 2021 16:27:50 -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=T16zYBit; 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 S238007AbhF1PdF (ORCPT + 99 others); Mon, 28 Jun 2021 11:33:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237301AbhF1PFi (ORCPT ); Mon, 28 Jun 2021 11:05:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 42BC161D7E; Mon, 28 Jun 2021 14:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891415; bh=QHhfXnjasotvtdSvitlpftD6Lesu/+3UHKj1GppfsDI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T16zYBitjmEZZhQnNw6W2gMg/JFiXsaRGIKoFQ4gticDPzGT4vaqd8OA6zFijXcFF OgnPbRTvjlqm+Hzb6RueGuyNxgI+1MgZTMW8a2lPkc1zkbUa4VjakJ/UQ2VPCKmxJu F4GuzRPqm9Av6ioinTArNRyB1mAdWvPQIwtKFVP3lsQP1DugugZ9XoY5QUx5iP4XBg FH7K5PnO8h9S7drWpcUEsGA9/LccRgOSKsJ2Lg3M7JWpvYXmCt5Hw/oxAFMivIybX3 8pxZv2OCwisbjYKMzu24fP4vaOj23fdXN6mJs3O9VU6pFqYyme6t3wCpSlvV0RA8vG wFWofPSmBrIFQ== 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.4 44/57] Makefile: Move -Wno-unused-but-set-variable out of GCC only block Date: Mon, 28 Jun 2021 10:42:43 -0400 Message-Id: <20210628144256.34524-45-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628144256.34524-1-sashal@kernel.org> References: <20210628144256.34524-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.4.274-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.4.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.4.274-rc1 X-KernelTest-Deadline: 2021-06-30T14:42+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 78a317e69e7f..691072b50fb5 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