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 BE2E4C433F5 for ; Tue, 21 Dec 2021 17:23:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240359AbhLURXO (ORCPT ); Tue, 21 Dec 2021 12:23:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:38395 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232738AbhLURXN (ORCPT ); Tue, 21 Dec 2021 12:23:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640107393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cgNFiSHVPmozrMAwLoLE4jQsVCvOy69kXUCzJ2IDG40=; b=K4655Xo552IOFcyt4IgJbqlrQF7AP6WJ810YvgDO9AwO1pXVFZRqiNlGPfgNKnlLOFZsv0 lJd9uLuLJ7LMStYakhgg3ZV9Fmb1pZnTsU9bLuxxqI/FiyzfdbB9ymOJWbDBZG546pBZ2e VEcRVw96UpnlFltAikTYRCj9qOsU52s= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-81-JFqaKm8RNzin_pspVGPPeg-1; Tue, 21 Dec 2021 12:23:12 -0500 X-MC-Unique: JFqaKm8RNzin_pspVGPPeg-1 Received: by mail-wm1-f71.google.com with SMTP id g189-20020a1c20c6000000b00345bf554707so739788wmg.4 for ; Tue, 21 Dec 2021 09:23:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=cgNFiSHVPmozrMAwLoLE4jQsVCvOy69kXUCzJ2IDG40=; b=cxxGpguMw2Y9CMEWZ1SPN9DS9NMsCjAJcb0cX85cGgX8z394m0n5y40ccUu1yetVMD g8gDiv0Br9iPoCsBuRmkgwseY5zNcOxfBt4m0n6xlL99bnubrc4cRPdt5POXTMP/GLb3 BhWWnog+q30X55JW3/0Q75czDwAjf2vsPwcIvMTLoJWpZ01kAfcMksxpes9tf06nS259 myzNQSCjYRsDFgqdhd0nhRYEg46M0sr6xkBO9Z7Yl9nEWxUvFNxJokROWWSxGwyfdpXK 8h7VKfVUNOYEeWQ5IdmWS5CWToD2hj90Xp8CIIBRz1T9Wp/XVWll4tj0eX9mSD70L3WH nPpQ== X-Gm-Message-State: AOAM532lw5XoohXd6vStzupcwjUubY96WtpFBmwNgBSo7RCOts4OlawA 6cPeVJOmy22kCjutZV6B4XcJ2S9huqdaKAE4LeyzQ7kkbwIxOswiV+OpputkAzUG5na8x3NBSfX IZ0ps+HoTCyRy0SajUC4mEjpG X-Received: by 2002:a05:6000:18ae:: with SMTP id b14mr2939926wri.358.1640107389834; Tue, 21 Dec 2021 09:23:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI+sgOMHf0YSbgDUY4Hz0bbMnBZ39bzuZPfnty8IjP5PgtILbNjQUHQYlB5n/1B8EGxd5qNw== X-Received: by 2002:a05:6000:18ae:: with SMTP id b14mr2939904wri.358.1640107389571; Tue, 21 Dec 2021 09:23:09 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:63a7:c72e:ea0e:6045? ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.googlemail.com with ESMTPSA id c8sm10962302wrp.40.2021.12.21.09.23.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Dec 2021 09:23:09 -0800 (PST) Message-ID: <4d739c28-e07d-f921-8a8d-a5343139e234@redhat.com> Date: Tue, 21 Dec 2021 18:23:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] KVM: selftests: Fix compile error for non-x86 vm_compute_max_gfn() Content-Language: en-US To: Shuah Khan , Anup Patel , Shuah Khan , Atish Patra Cc: Sean Christopherson , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alistair Francis , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20211221125617.932371-1-anup.patel@wdc.com> <3e3b5295-f6fb-1ff9-acfe-1a4c47c6ba20@linuxfoundation.org> From: Paolo Bonzini In-Reply-To: <3e3b5295-f6fb-1ff9-acfe-1a4c47c6ba20@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Paolo