From nobody Thu Sep 18 02:57:52 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B966C4167B for ; Tue, 13 Dec 2022 00:17:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234157AbiLMARk (ORCPT ); Mon, 12 Dec 2022 19:17:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234043AbiLMARN (ORCPT ); Mon, 12 Dec 2022 19:17:13 -0500 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04EF21CB0E for ; Mon, 12 Dec 2022 16:17:11 -0800 (PST) Received: by mail-pf1-x44a.google.com with SMTP id 67-20020a621946000000b00575f8210320so911253pfz.10 for ; Mon, 12 Dec 2022 16:17:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=BpGd55nvKBNj0D/PIzME9gJqn/VBcBhffWATlQcE3Ss=; b=MGEbvBziCbhDXrzsRWJnhVDajcYBqH32IEoBgzIYBxRLKK4UKIXh6EcKFK5drrmpEA 8MEpB2G2jJTC+KB8i8pUeFzabhMjuQrp51rHwAi9WxEkwVgMHq+hx6z1qCeb15tkk+/A xfO5l3wFXdCOVXkW9mIm6QIGoiMAxwFy5PqTjEG0lrociwfpJRcZuZCVQ4i6Dbk8e5Nz RN09Y8fL8D8Z9FfEVzlTciMOkDUqLCiIJjIPFMWWORLTDCS/wKvw2Usdvvi8wmeo9k3u WO7xbVQMKylVOulYnz+qg960NwHouXr7kHgcgEzUSk6QbZe3TdXOp/0yG8ARDmW0T2N0 gIRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BpGd55nvKBNj0D/PIzME9gJqn/VBcBhffWATlQcE3Ss=; b=aKiWHuRN4NTk3JJGi3C+zBBbgXUq9aBwiEdU9cmi5sVTXf3EesnmAyyo+rmUzHRnyP f6Kz4KsjJVmo7uKt8QyR8sQuAPSD09dXOu6YB5UWjIIdIoibAWrLKfuZf74oPtu/zwka 0hkuRherBSxMvip+cXijRICJUVivhr2Cb1FbPzNvwWi48pwGbxBy7J8krgmtYPFGAt5V bEyWBf932WOBnx/Ti2AlTc5dLonHub+7Pu4rHxKrWTGLbryw7abHdiuVp73pk39BDLqN JDdAfZTNGr8jxPINzQ3OxIphFYsmHIdH/uJVAlpIDnCLrTYYcVsiFyBDCS7MCG5bY3CV wghQ== X-Gm-Message-State: ANoB5pmcG2Ee6IMbrjwa/9KjEhxkklWXvXnBtaMptjFwoFDWkKXwkNl3 Th2y4ysUfb3UQPHNh9cUbn9q37aya6A= X-Google-Smtp-Source: AA0mqf7+dfd4rJNWoSbVdf58/T9pAFs7MpojsQi0gxbLVrmPbLQZm00Z8l7OQhKT1zAZsx9O/p+kfPEMGQc= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90b:1010:b0:219:1d0a:34a6 with SMTP id gm16-20020a17090b101000b002191d0a34a6mr4054pjb.1.1670890630136; Mon, 12 Dec 2022 16:17:10 -0800 (PST) Reply-To: Sean Christopherson Date: Tue, 13 Dec 2022 00:16:47 +0000 In-Reply-To: <20221213001653.3852042-1-seanjc@google.com> Mime-Version: 1.0 References: <20221213001653.3852042-1-seanjc@google.com> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog Message-ID: <20221213001653.3852042-9-seanjc@google.com> Subject: [PATCH 08/14] KVM: selftests: Probe -no-pie with actual CFLAGS used to compile From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nathan Chancellor , Nick Desaulniers Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Tom Rix , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-riscv@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Koller , Sean Christopherson , Aaron Lewis , Raghavendra Rao Ananta Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Probe -no-pie with the actual set of CFLAGS used to compile the tests, clang whines about -no-pie being unused if the tests are compiled with -static. clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument] Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests= /kvm/Makefile index c22c3002492d..a6050dcc381a 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -197,7 +197,7 @@ CFLAGS +=3D -Wall -Wstrict-prototypes -Wuninitialized -= O2 -g -std=3Dgnu99 \ $(KHDR_INCLUDES) =20 no-pie-option :=3D $(call try-run, echo 'int main(void) { return 0; }' | \ - $(CC) -Werror -no-pie -x c - -o "$$TMP", -no-pie) + $(CC) -Werror $(CFLAGS) -no-pie -x c - -o "$$TMP", -no-pie) =20 # On s390, build the testcases KVM-enabled pgste-option =3D $(call try-run, echo 'int main(void) { return 0; }' | \ --=20 2.39.0.rc1.256.g54fd8350bd-goog