From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x225KwmVXJZR9A8o2jZH0eaRt+XxKdNiH13GXaJcy0tesyzNbPyDLA1p2r9V/yq3pWG3m3oIj ARC-Seal: i=1; a=rsa-sha256; t=1517270238; cv=none; d=google.com; s=arc-20160816; b=qjqbjlDd2KrfaffzDHnI/Vpxyoky3S0hEwsiqZKm1RsADzsgyV2lDK/+aKg3rKdcDv iHwf++NQBlklgtfYig98X8iVtZU/qNhPjAlytl618H5tV3ew3QxcQY228oRpRtXmZtXM n/I58rgO+3Ibc8saNqPhg8MBvzkBjC57LjlStWdKA/0nsmkk6Iy8J3Eo/V54OylSbBBU lKcll9AhuaunYsJVzS6OzaUZd4JWk6ZHXhDDyrHY1qGqpE2MInFaBMjKV9frEEC8znHX VL0pfF2t6rjFEJNoBZFshvE1IUYzEa7vyNsy/VmIcuXvbdu6oVq+1dlTNRUV3RcwH6QY a4nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:arc-authentication-results; bh=OZg8SKAiopyHFU9YnSCYWRNVhmfrtT/YJfPr7E8UJLA=; b=L5FQ+19ADMcb3GHQumaMsNnxcu6Z0Tw6SQKxs440l0t4NAQrYJs7fsr38IYQEG9+4S bKdDSTj0V/36sYCF1q6AnsCrJcLOjASaxO3hvUPkY7ckbkFT1vhYURxm6up+D8+r8ihf txyMsIt/TZLSklJ/Czz3lMc9Iudk67DX1wXw/WxtF8cQ2YM/FrztAnyzJujKWTr1IeVg sRA6i4qnGVjogVbNPT/IMpT7sG0+49K3LF9AFex5VGZm5wJZzaUvyusmdw4/lIstgXuN BXEwyZLNoc7FofDsaYpHpxURYJ7GFtiXa4a8nB1n3ONKSm0uPhi0qCl+zMtKt+lHhi5C sE8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of segher@gate.crashing.org designates 63.228.1.57 as permitted sender) smtp.mailfrom=segher@gate.crashing.org Authentication-Results: mx.google.com; spf=pass (google.com: domain of segher@gate.crashing.org designates 63.228.1.57 as permitted sender) smtp.mailfrom=segher@gate.crashing.org Date: Mon, 29 Jan 2018 17:57:09 -0600 From: Segher Boessenkool To: Prasad Sodagudi Cc: gregkh@linuxfoundation.org, ghackmann@google.com, yamada.masahiro@socionext.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kbuild: clang: Disable -Wunused-const-variable warnings Message-ID: <20180129235708.GG21977@gate.crashing.org> References: <1517245680-3361-1-git-send-email-psodagud@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517245680-3361-1-git-send-email-psodagud@codeaurora.org> User-Agent: Mutt/1.4.2.3i X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590705328423377998?= X-GMAIL-MSGID: =?utf-8?q?1590973157478007408?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: Hi Prasad, On Mon, Jan 29, 2018 at 09:08:00AM -0800, Prasad Sodagudi wrote: > --- a/Makefile > +++ b/Makefile > @@ -698,7 +698,6 @@ KBUILD_CFLAGS += $(stackp-flag) > > ifeq ($(cc-name),clang) > KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) > -KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) > KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) > KBUILD_CFLAGS += $(call cc-disable-warning, gnu) > KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) > @@ -716,9 +715,9 @@ else > # 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) > endif > > +KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) > ifdef CONFIG_FRAME_POINTER > KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls > else Ah, much more obvious now, thanks :-) Segher