From patchwork Wed Jan 4 19:54:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 13088887 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 8EBE7C4332F for ; Wed, 4 Jan 2023 19:55:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FD8210E483; Wed, 4 Jan 2023 19:55:08 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2354810E483; Wed, 4 Jan 2023 19:55:05 +0000 (UTC) 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 791DE61805; Wed, 4 Jan 2023 19:55:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17389C433F0; Wed, 4 Jan 2023 19:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672862103; bh=3WzrVDuXq+USW1wkZml39mLL/ZYu3zbGbhzJyJTaIjI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZVc/xmAxP30rj7pQ8bnb8lKMBi5jVA1T6RkNRBFFwn+pZR7alSdElfuWXP345PJzF m/mqsSKcPcCV+c49p/aK6WTX9QLwhen8jAca1xfJ5/kVtSjMMrJjkThq7yMxlvyMpQ Spk2ZIlvC27RSybElCtvB57S3irGP7ERBPIEGOy3aBVwBI5R7ZAcb16S8zH5iUic4H oj9GyYCbQYVVsMT7UAP+Nla7yMjE4dbJqR4u3PDtBt7ELwdXhmCgCD4HN9crSKXdKr AoxoEH7YuUgw6qbx97LviiIFom0Hq8QqYgks7Eqs988RzmcCYRVMUfDsuagPOUog3L jUtI2hJ0hPJJg== From: Nathan Chancellor Date: Wed, 04 Jan 2023 12:54:29 -0700 Subject: [PATCH 12/14] drm/amd/display: Do not add '-mhard-float' to dml_ccflags for clang MIME-Version: 1.0 Message-Id: <20221228-drop-qunused-arguments-v1-12-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=1394; i=nathan@kernel.org; h=from:subject:message-id; bh=3WzrVDuXq+USW1wkZml39mLL/ZYu3zbGbhzJyJTaIjI=; b=owGbwMvMwCEmm602sfCA1DTG02pJDMlbb3Zvv93PW778jH5o/NacxuiklqMCEnESqzz3PZqZ0vYv s8C9o5SFQYyDQVZMkaX6sepxQ8M5ZxlvnJoEM4eVCWQIAxenAExEV43hnwnruScrv0hWTWhKTGK7vW LJ1/iiJ3N9P9gaON/9X35jrwQjw7SCGVpZT56UNmzWL7ll3WV0W+nLbTHGqzZMs9aEdonXMgMA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Xinhui.Pan@amd.com, kernel test robot , linux-kbuild@vger.kernel.org, sunpeng.li@amd.com, trix@redhat.com, llvm@lists.linux.dev, Rodrigo.Siqueira@amd.com, amd-gfx@lists.freedesktop.org, Nathan Chancellor , dri-devel@lists.freedesktop.org, alexander.deucher@amd.com, christian.koenig@amd.com, nicolas@fjasle.eu Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it warns: clang-16: error: argument unused during compilation: '-mhard-float' [-Werror,-Wunused-command-line-argument] Similar to commit 84edc2eff827 ("selftest/fpu: avoid clang warning"), just add this flag to GCC builds. Commit 0f0727d971f6 ("drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines") added '-msse2' to prevent clang from emitting software floating point routines. Signed-off-by: Nathan Chancellor Acked-by: Alex Deucher --- Cc: harry.wentland@amd.com Cc: sunpeng.li@amd.com Cc: Rodrigo.Siqueira@amd.com Cc: alexander.deucher@amd.com Cc: christian.koenig@amd.com Cc: Xinhui.Pan@amd.com Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/amd/display/dc/dml/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile index 0ecea87cf48f..9d0f79dff2e3 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -26,7 +26,8 @@ # subcomponents. ifdef CONFIG_X86 -dml_ccflags := -mhard-float -msse +dml_ccflags-$(CONFIG_CC_IS_GCC) := -mhard-float +dml_ccflags := $(dml_ccflags-y) -msse endif ifdef CONFIG_PPC64