From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4067C4332F for ; Wed, 4 Jan 2023 19:57:39 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4NnL42300Rz3c8G for ; Thu, 5 Jan 2023 06:57:38 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=mkASiltE; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=nathan@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=mkASiltE; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4NnL121f0Rz2yfg for ; Thu, 5 Jan 2023 06:55:02 +1100 (AEDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5ECB76181A; Wed, 4 Jan 2023 19:55:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84A7FC433A0; Wed, 4 Jan 2023 19:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672862100; bh=v6Pz2Y597IXrTiPrySIepPbVwiJR5GwFlJrsRuCIfjA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mkASiltETfh4En70AMu63xlODVbvUZ3CGiAg43pvev1i8Iwh06O1t8hl0yJwZ91Hh PjN5gImQ3ULDaZZBPEJ5nR5dJSzIDF+ys0DU2O6vCIZaVEvUY+mzlgqJJWwi4oSTHI pO/Y3qIi51iv7+1BLOWfJDnBD+nwbPGaEjjI8r8xDnYQ2+0Ss/gv+6wd4eBUpU/BiO kzr/vQZeDDV0IPpLbyl7fnJRMM868O6aL2dnFg85f4ZvveKBBaGfmhEMJ4axoEyNZp azM6gIQIwiBFZ68dyBiod7wdvIH+uIh8c1WGRIRXLFJRtG/362bwJVrbisYaVdNaIA g+5jeRz2FSRzA== From: Nathan Chancellor Date: Wed, 04 Jan 2023 12:54:25 -0700 Subject: [PATCH 08/14] powerpc/vdso: Remove an unsupported flag from vgettimeofday-32.o with clang MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20221228-drop-qunused-arguments-v1-8-658cbc8fc592@kernel.org> References: <20221228-drop-qunused-arguments-v1-0-658cbc8fc592@kernel.org> In-Reply-To: <20221228-drop-qunused-arguments-v1-0-658cbc8fc592@kernel.org> To: masahiroy@kernel.org, ndesaulniers@google.com X-Mailer: b4 0.11.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1615; i=nathan@kernel.org; h=from:subject:message-id; bh=v6Pz2Y597IXrTiPrySIepPbVwiJR5GwFlJrsRuCIfjA=; b=owGbwMvMwCEmm602sfCA1DTG02pJDMlbb3Z7Oq3kieNiveZyJXDJXasQq54txYoNPclTjr3u7Xo4 ZeLpjlIWBjEOBlkxRZbqx6rHDQ3nnGW8cWoSzBxWJpAhDFycAjARsRiG/4kaRepfr4TF+i5fe2SxxC QL5QfqtVtfZX7951uV4MLPUcvI8NJTeEWyUZXhPo85ojZH1SS93f4Fbf/7uijotRdHqtgPDgA= X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel test robot , linux-kbuild@vger.kernel.org, trix@redhat.com, llvm@lists.linux.dev, npiggin@gmail.com, Nathan Chancellor , linuxppc-dev@lists.ozlabs.org, nicolas@fjasle.eu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it warns: clang-16: error: argument unused during compilation: '-fno-stack-clash-protection' [-Werror,-Wunused-command-line-argument] This flag is supported for 64-bit powerpc but not 32-bit, hence the warning. Just remove the flag from vgettimeofday-32.o's CFLAGS when using clang, as has been done for other flags previously. Signed-off-by: Nathan Chancellor --- Cc: mpe@ellerman.id.au Cc: npiggin@gmail.com Cc: christophe.leroy@csgroup.eu Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/vdso/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/kernel/vdso/Makefile b/arch/powerpc/kernel/vdso/Makefile index 769b62832b38..4ee7d36ce752 100644 --- a/arch/powerpc/kernel/vdso/Makefile +++ b/arch/powerpc/kernel/vdso/Makefile @@ -16,6 +16,11 @@ ifneq ($(c-gettimeofday-y),) CFLAGS_vgettimeofday-32.o += -ffreestanding -fasynchronous-unwind-tables CFLAGS_REMOVE_vgettimeofday-32.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_vgettimeofday-32.o += -mcmodel=medium -mabi=elfv1 -mabi=elfv2 -mcall-aixdesc + # This flag is supported by clang for 64-bit but not 32-bit so it will cause + # an unused command line flag warning for this file. + ifdef CONFIG_CC_IS_CLANG + CFLAGS_REMOVE_vgettimeofday-32.o += -fno-stack-clash-protection + endif CFLAGS_vgettimeofday-64.o += -include $(c-gettimeofday-y) CFLAGS_vgettimeofday-64.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_vgettimeofday-64.o += $(call cc-option, -fno-stack-protector) -- 2.39.0