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 5BAB7C433FE for ; Wed, 22 Dec 2021 03:28:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242130AbhLVD2t (ORCPT ); Tue, 21 Dec 2021 22:28:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242101AbhLVD2q (ORCPT ); Tue, 21 Dec 2021 22:28:46 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAE45C06173F for ; Tue, 21 Dec 2021 19:28:45 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id t18so1886908wrg.11 for ; Tue, 21 Dec 2021 19:28:45 -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=GwGmaz0czI4/jq/c3gNLjgrvk2T0ZPOGYi2vGZRAgJ8=; b=Jt4H1fUdCEMOLQHX3j8EBBqo9BuEi+lYppPytwWRaVi0mDh8ODMpWedLRWd3H7rBfJ AQ5fHBfcUpWYc5BinZTMZtuYyjBr4pkV/mECZlvDJKg0fbo9/CqScbYQrjzunNsD10ws R4GC78RSk9bHWAowN0oXp4B+4QcZm1bP1oWOhyPirxW+IdhskSQteDzfNLrSW1UQATzC mL5RHZSW7E3tEYfaWw1uFkp/B9IaBmJS4cHPJkxrdDesqtq3ZHdbYUAm1D60lrU4wM7M 0N/jdAsLtiQ+OARU0DHfXhoDcm6KRc9DVTm2PcVKTwiueoZYle3k8QGZxCEcvc5uziZL GXTg== 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=GwGmaz0czI4/jq/c3gNLjgrvk2T0ZPOGYi2vGZRAgJ8=; b=6NGAynv2Evqvo5ShxHCX+ukSJNPJFEu3uILd4d4n3965obED83B5g9feJPCx8LNGag DfcgnkkI3P63JDzot7fNGhjRgbMESS0xwUN9XzT7gUjsFak6r7psRThdZWZeZvBoojxD uiYg4GgExxHRy8LWWLHCC3NStGu+jfGVkzBZUn0b6VYVJxkDQquR9+UNFzKh6GLi0rt/ X57/udbmddQfrgp/lnQWmoFlmbSlAq2U5NSB5VfDs5XA+Hfk3aSvtCRhNJNNPT2RTzBu 6qi9/NhM41xxOrsJQps4pZlvGMLk6lF4dNgm5TLWFrcpdvxXS4uz8W9CiEFQQ2hQOt3X 8Anw== X-Gm-Message-State: AOAM532X/yRJAYu9bSjmS+DQGq6uoCgvmvZWo1SJr/zBat9lB1PRpdRw uES5jo5aejqNa2gaZ51aewsPTdYc/HAxOyQaBSEiqw== X-Google-Smtp-Source: ABdhPJyUK9DbRMSBUpws7YF1ETrsADtGZwEQdEB0A/0NZqBFbMnOmeP9lttyWY0swzgjdJ4wCDf6AlQTOuCU5OY1CEk= X-Received: by 2002:a5d:56c2:: with SMTP id m2mr655955wrw.313.1640143724222; Tue, 21 Dec 2021 19:28:44 -0800 (PST) MIME-Version: 1.0 References: <20211221125617.932371-1-anup.patel@wdc.com> <3e3b5295-f6fb-1ff9-acfe-1a4c47c6ba20@linuxfoundation.org> <4d739c28-e07d-f921-8a8d-a5343139e234@redhat.com> In-Reply-To: <4d739c28-e07d-f921-8a8d-a5343139e234@redhat.com> From: Anup Patel Date: Wed, 22 Dec 2021 08:58:30 +0530 Message-ID: Subject: Re: [PATCH] KVM: selftests: Fix compile error for non-x86 vm_compute_max_gfn() To: Paolo Bonzini Cc: Shuah Khan , Anup Patel , Shuah Khan , Atish Patra , Sean Christopherson , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 21, 2021 at 10:53 PM Paolo Bonzini wrote: > > On 12/21/21 18:22, Shuah Khan wrote: > > On 12/21/21 5:56 AM, Anup Patel wrote: > >> The inline version of vm_compute_max_gfn() in kvm_util.h directly > >> access members of "struct kvm_vm" which causes compile errors for > >> non-x86 architectures because lib/elf.c includes "kvm_util.h" before > >> "kvm_util_internal.h". > >> > >> This patch fixes above described compile error by converting inline > >> version of vm_compute_max_gfn() into a macro. > > > > Thank you for the patch. Please include the actual compile error in the > > change log and send v2, > > Hi, a similar patch is already queued and should get to Linus today or > tomorrow. Thanks Paolo, I missed Andrew's fix for this. Regards, Anup > > Paolo >