Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8404503ybn; Tue, 1 Oct 2019 07:40:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO8JjymPBRvgW9EIxQWH2Vm5vqaH1lxwb3lHobV75NnJDw5CEQsHx+VLzXFHuhi13/nH5z X-Received: by 2002:a17:906:4554:: with SMTP id s20mr1527338ejq.257.1569940838937; Tue, 01 Oct 2019 07:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569940838; cv=none; d=google.com; s=arc-20160816; b=dRm1XFfen4TC+INk4/aBr0IpgZwMm72ie8hwdYBevjIzEGkmkBbuYCruRfPCehlDBY p0VXWWX6SwaXsKnaaaBGZ19dKIPGhluwl/FO7FiqeqjeHArxbRgezb5wp8nDR3aSCVq8 yZ3LRGh5aqotVrGS94l1ZmKCRyqKMdKtcZQw6/OzTq7A4sguF1E8KZ3cU0Lz+Fx4gzxh 0fCmHwtfIN9sC7HnzDTXAczZh58IfU4zAGDLjCTi8/fy82nlH23SQMeQ/jaM2UlhfY2u R50daPgIaBrN39cGsAYIe1dPmo9uR+HA8RC13mmm7V7lnoB7OBvn5cIR4vGCA9QG20FX IH2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=kwYvL8TFOKRIgAa9S5ymQ17IWfU2GeVGXtqN4iV4ETc=; b=qlX6wkQJvnMT9He5NMAU545TdQCbIcCIHGprTy7y834TgtFjWNd56svAOdLpCCZCZ7 eCsOUHVwyP9EDerEXIcAFoukoEK12bi5v+pFjIOIR+pm67udE71tgYQOuaDsdNojbVs4 kYzaTXsbHdcL7+uz6YjDk/vZNH0OAUlE0t5R2gUZlsSp5ASLm/pzQtDJMQk/BrlCGQUw WEAsmSKdAyv6b0nP0peiR+1yIIVq/e2MKYBxM0C3wHZRpX+I+sb2YjyAyq9buJj7cVio eP+oLEJSWQgiuqMVzyoj5wWCDZSDD6QtQAMlCwgaK1yK0wy923TDZE1X3sjA5FbO3zBH bTOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28si9342827eda.322.2019.10.01.07.40.14; Tue, 01 Oct 2019 07:40:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389171AbfJAOjp (ORCPT + 99 others); Tue, 1 Oct 2019 10:39:45 -0400 Received: from foss.arm.com ([217.140.110.172]:51234 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388932AbfJAOjo (ORCPT ); Tue, 1 Oct 2019 10:39:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 65EB01570; Tue, 1 Oct 2019 07:39:44 -0700 (PDT) Received: from [10.1.196.50] (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EA9323F71A; Tue, 1 Oct 2019 07:39:42 -0700 (PDT) Subject: Re: [Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function To: Mark Rutland Cc: Stefano Stabellini , Arnd Bergmann , Andrew Cooper , Emil Velikov , Russell King , Denis Efremov , "linux-kernel@vger.kernel.org" , Masahiro Yamada , xen-devel , Will Deacon , Linux ARM References: <20190906153948.2160342-1-arnd@arndb.de> <7abad95e-ea47-c068-d91c-ba503f2530b9@citrix.com> <95dbd972-fe78-d0ca-f7b4-1a6bdd418eab@arm.com> <20191001143334.GA46651@lakrids.cambridge.arm.com> From: Julien Grall Message-ID: <9e04485f-2d4a-81a2-c7e1-e50dd888930f@arm.com> Date: Tue, 1 Oct 2019 15:39:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191001143334.GA46651@lakrids.cambridge.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/10/2019 15:33, Mark Rutland wrote: > Hi Julien, Hi Mark, > > On Sat, Sep 07, 2019 at 11:05:45AM +0100, Julien Grall wrote: >> On 9/6/19 6:20 PM, Andrew Cooper wrote: >>> On 06/09/2019 17:00, Arnd Bergmann wrote: >>>> On Fri, Sep 6, 2019 at 5:55 PM Andrew Cooper wrote: >>>>> On 06/09/2019 16:39, Arnd Bergmann wrote: >>>>>> HYPERVISOR_platform_op() is an inline function and should not >>>>>> be exported. Since commit 15bfc2348d54 ("modpost: check for >>>>>> static EXPORT_SYMBOL* functions"), this causes a warning: >>>>>> >>>>>> WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static EXPORT_SYMBOL_GPL >>>>>> >>>>>> Remove the extraneous export. >>>>>> >>>>>> Fixes: 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions") >>>>>> Signed-off-by: Arnd Bergmann >>>>> Something is wonky. That symbol is (/ really ought to be) in the >>>>> hypercall page and most definitely not inline. >>>>> >>>>> Which tree is that changeset from? I can't find the SHA. >>>> This is from linux-next, I think from the kbuild tree. >>> >>> Thanks. >>> >>> Julien/Stefano: Why are any of these hypercalls out-of-line?  ARM >>> doesn't use the hypercall page, and there is no argument translation >>> (not even in arm32 as there are no 5-argument hypercalls declared). >> >> I am not sure how the hypercall page makes things different. You still have >> to store the arguments in the correct register so... >> >>> >>> They'd surely be easier to implement with a few static inlines and some >>> common code, than to try and replicate the x86 side hypercall_page >>> interface ? >> >> ... I don't think they will be easier to implement with a few static >> inlines. The implementation will likely end up to be similar to >> arch/x86/asm/xen/hypercall.h. >> >> Furthermore, one of the downside of per-arch static inline is it is more >> difficult to ensure the prototype match for all the architectures. Although, >> it might be possible to make them common by only requesting per-arch to >> implement HYPERCALL_N(...). >> >> So I think the code is better as it is. >> >> While looking at the code, I also realized that the implementation of >> HYPERCALL_dm_op might be incorrect for Arm32. Similarly do privcmd call, I >> think dm_op call should enable user access as they will be used by >> userspace. >> >> We don't use dm_op on Arm so far, hence why I think this was unnoticed. I >> will see if I can reproduce it and send a patch. > > I'm seeing this when building arm64 defconfig v5.4-rc1: > > | [mark@lakrids:~/src/linux]% usekorg 8.1.0 make ARCH=arm64 CROSS_COMPILE=aarch64-linux- -j56 -s > | arch/arm64/Makefile:62: CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will not be built > | WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static EXPORT_SYMBOL_GPL > | WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static EXPORT_SYMBOL_GPL > > I couldn't see a follow-up; do you have a patch for this? The first e-mail of the thread should contain a patch to address the warning (see [1]). But it is still waiting on an Ack from Stefano so it can get merged. Cheers, [1] https://patchwork.kernel.org/patch/11135601/ -- Julien Grall