Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2554400pxj; Mon, 10 May 2021 05:49:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS+FuTwKCDHwkm/up5zWEDQYj6kccoR5h1jVSPXaoOsJyfYkxG0Xy2lQMs+kIdg1vssOHJ X-Received: by 2002:a05:6402:164e:: with SMTP id s14mr26209759edx.232.1620650972784; Mon, 10 May 2021 05:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620650972; cv=none; d=google.com; s=arc-20160816; b=upPxPFqxMLiRGgUqXs8T2NmXKNMSU7TZfKKVwD8e1AVBrkjSKaKSH97Tm5LqBN79/l /to/iMQ4YmouFdCoFu1KeLflyeOgpg5FPW/rFPQ1VnijOHYWjrPnl2PIvk5GrOfukPjj 25mkyjgGVPZbd8YQ/mlIrJfGG83B4NUZO8HqgQeJrk2chDTJLHgBMsTdHmWMKUIm/Glk 26qWlLLQVyS2Mvbf4MV4ZSPJ3XDWUHnenZ3Yr5jt2aj2tBJEymno9WOVtbdE70Eb7WJ+ +JRrz/X2KgslVY9Uases5GnxubQroBpmt0jXtrBbvTr5xBMwkP9EsJy+vc0Fqz137H/w nqoA== 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=uOWTf2MF46+W7uW8N/b3vEYPMy2JW5KRHsjjefYydPXDYILNmjVa1+5uQnZAGCx7n6 6ObVrq3F242yx6/bjiqGz1ignPe8gZGXfZz07Cmr434791GR5qDFpAyOIrJXpwtBYfqh xHViYkoX2tTWp7JCAW8YKXYDNdY9pEy5J2uuNb1mgsCsBfb1VCq8vQm2c/xU6FIPLnZD uhWGxYIF/XfS3fMRAudTK+dSLNuIMp2Alfb6rxS7NaFEd44RgjNZCc+SbRSa+kk81wD0 Fo3tbspjQSLknDcoqtgl+sBiBHpikfYRiGOlCQsd9rbwedxH+5RPA550ifJUH4Pn0R03 skdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sPW3gM77; 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 hq40si14020665ejc.161.2021.05.10.05.49.02; Mon, 10 May 2021 05:49:32 -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=sPW3gM77; 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 S1346816AbhEJMcp (ORCPT + 99 others); Mon, 10 May 2021 08:32:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:49920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237311AbhEJLLt (ORCPT ); Mon, 10 May 2021 07:11:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A636061075; Mon, 10 May 2021 11:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620644942; bh=lnU9WlUijGhjw3cdCIlNG3OKsXm7PyqbstikCcPPNwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sPW3gM77Q7nz1a0v8l6DB7BO7RcBnVx6I85l7k5Uv4HHkHK6urKSeGh0ieXtgjZF3 J8lTZaUmjHWQ/EDknp83hbZ5WKLIVy5Q41M+hFm3TcZZD6kq39NPk/AJtL9SctK9BR dR/SiAHfQq+zhT2NWyy9WAcRM7ifY2Un/11LejM8= 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.12 286/384] Makefile: Move -Wno-unused-but-set-variable out of GCC only block Date: Mon, 10 May 2021 12:21:15 +0200 Message-Id: <20210510102024.244262023@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102014.849075526@linuxfoundation.org> References: <20210510102014.849075526@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