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 B1E62C433FE for ; Tue, 28 Dec 2021 06:21:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235090AbhL1GVS (ORCPT ); Tue, 28 Dec 2021 01:21:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235073AbhL1GVR (ORCPT ); Tue, 28 Dec 2021 01:21:17 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2B2FC06173F for ; Mon, 27 Dec 2021 22:21:16 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id e5so10550618wmq.1 for ; Mon, 27 Dec 2021 22:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fz/c6/4SGSYodrgD5AdFvdel0zxLs/yQs8FyjZNs4tQ=; b=g8BS2gkO3Z2Uowvmo4A8Ijgd4KkngqwKudZDouJ64O4ICZF4AftTAzILir3ldPIGRP 2HtEyL5f891oVMB3m6gVXI8/xD1r9NhLBSZsFfQuUVHpX/86kWDNC++lz59nfmN9z/W0 cMKGrJdmbUvqHhvU1uxqsv7X0U86JVXp0NZhYr17K0KjlFtwAJ0woa3kCEAcWHHRNp4Q 35crBEvFtatsX2esBh7evM8EU1IF6zgU2G4YA4Bk2lfvnaVhgRO9jMGtIs/OuczxQIK4 +HRFBI8MPTcGcGjwSaIrpk2xLO2TLW5r2PgSRa5rGLTK4duDOuLK22GrkaX9kuABwEbP H+tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fz/c6/4SGSYodrgD5AdFvdel0zxLs/yQs8FyjZNs4tQ=; b=R7fW25p1st8LP9iwR3eoyuLZvAE2VrKHewop61y3tqafeCIBFZ+vnKCoep8AelB3Dy 6FitUwHYeBMVLyL1PsSWPRJSalDmE5PTi50OEge8nrjzikB21qfu/msxs8fQ5I9Uuwce 0VaHMqu2EbI3FFRjzgI0X4MqaStcpkjjZKTXTqhOeP4n0SXMpOGefp7PfT1YrWX3TJeq IojyGr0vob3xz4RGFQoGZonmFJQ39YH4XgJsspWXQNGIMe4PAAtgPm7vBLsf49NJIPNi 3B+JCZ5RcCFanNLcf0P0wvkU8jhPy5sGzUg/HBYnesTMXXrDHzt5Rh1W6USFRR4vxyDN FIxQ== X-Gm-Message-State: AOAM53047xpFWc74vd/SFLbXV1Xn9q6P3C83nDJICU+sFiTvccLuA7m2 HYlqox0V+MMybrt1vtkmA+pY9Z+o73gY+SbEolSmbQ== X-Google-Smtp-Source: ABdhPJzwphhcZ5/970ADxXH2bibdTOzzfkGmRBRlIOXuEZmGT+1EFTP2zwlDZkGJmzwPLY/AU7Qe3W3uiVvJgPUspkQ= X-Received: by 2002:a05:600c:4f08:: with SMTP id l8mr16128758wmq.59.1640672475272; Mon, 27 Dec 2021 22:21:15 -0800 (PST) MIME-Version: 1.0 References: <20211224073604.1085464-1-anup.patel@wdc.com> <20211224073604.1085464-4-anup.patel@wdc.com> In-Reply-To: <20211224073604.1085464-4-anup.patel@wdc.com> From: Anup Patel Date: Tue, 28 Dec 2021 11:51:03 +0530 Message-ID: Subject: Re: [PATCH v4 3/4] KVM: selftests: Add EXTRA_CFLAGS in top-level Makefile To: Anup Patel Cc: Paolo Bonzini , Shuah Khan , Atish Patra , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alistair Francis , KVM General , kvm-riscv@lists.infradead.org, linux-riscv , "linux-kernel@vger.kernel.org List" , linux-kselftest@vger.kernel.org, Atish Patra , Sean Christopherson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 24, 2021 at 1:06 PM Anup Patel wrote: > > We add EXTRA_CFLAGS to the common CFLAGS of top-level Makefile which will > allow users to pass additional compile-time flags such as "-static". > > Signed-off-by: Anup Patel > Reviewed-and-tested-by: Atish Patra > Reviewed-and-tested-by: Sean Christopherson Queued this patch for 5.17 Thanks, Anup > --- > 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 f307c9f61981..3c839c01d4fd 100644 > --- a/tools/testing/selftests/kvm/Makefile > +++ b/tools/testing/selftests/kvm/Makefile > @@ -132,7 +132,7 @@ endif > CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 \ > -fno-stack-protector -fno-PIE -I$(LINUX_TOOL_INCLUDE) \ > -I$(LINUX_TOOL_ARCH_INCLUDE) -I$(LINUX_HDR_PATH) -Iinclude \ > - -I$( + -I$( > no-pie-option := $(call try-run, echo 'int main() { return 0; }' | \ > $(CC) -Werror -no-pie -x c - -o "$$TMP", -no-pie) > -- > 2.25.1 >