Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8415178ybn; Tue, 1 Oct 2019 07:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuJcDofuzaKNSXZNbY897Bhw0IxFQbFwtOEtkNBpP6uxe0hVPG1ljtf2MzHSBz5L9rsQQK X-Received: by 2002:a17:906:74d4:: with SMTP id z20mr24414109ejl.191.1569941368714; Tue, 01 Oct 2019 07:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569941368; cv=none; d=google.com; s=arc-20160816; b=Qad6CK+TOgxt80BtI4wnV41pimTBr2dVp0tpEKEh1TEbNZO8X69Jju2/iC/i+1FbHs 8a0bpKkfWA7w/U64Out1mKvjoR5Tm5HV0yLwyCHTpqamTxV2+vNsi6uUQrtV46011nTn mjYl1Yx5v+BZA5piIz5xa39GBjdZm6a4GDkkuv5oxOASZok3pv1CX2PpXPMNULhOd7W3 /m5TssquCWlInZxsUkmgRU9mHDuCdW9/Wvy64KnIW2lBw0B+61nAXbYrrHNTzUfTtcSJ hilRyWRHmvX3TP98/Ig01Tvu9exf9vmUwb2LR3Gy5vDybiglmnaTe/BSkBWbA5972s9J VCYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XTRTE+TlP7Vbv4ZbyU91u88Egjf9rfF+5PBHACB8FTQ=; b=Aj4qixgJY9PMWZ1+oyfJiGJcPdpJFtJ2KfMZxD5oo1LBrhdY0X6WzLVWOWx5ooxRbv h8rxlEiBMg6jETEdAB8+JbX5xh1zPHT4f4/J8ct6VhoDm5JCLH0JkRlRoQoi1SqlEqzo iWPxxJrDYHSnjGUt8w1yivPn2CQwNGliqFYTiurZaaPIVGaSTiS4f20AlWfoA1/iVgs2 1+GlMkybpVIIxdW56M7vmPXpJQibPpEIIxQ7EBBxC+x9tcg3upr4jQOufJdJEET8VR6e STuw4lcy9Kxk/QqTRGyHxMjX+Bpv5ibRdY2Pla8YSsm7PAmE6i6jQhB60bOlR8l3ZYaS DODA== 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 c9si8717052eds.211.2019.10.01.07.49.03; Tue, 01 Oct 2019 07:49:28 -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 S2389267AbfJAOrA (ORCPT + 99 others); Tue, 1 Oct 2019 10:47:00 -0400 Received: from foss.arm.com ([217.140.110.172]:51536 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389029AbfJAOrA (ORCPT ); Tue, 1 Oct 2019 10:47:00 -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 9C4491000; Tue, 1 Oct 2019 07:46:59 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1298E3F71A; Tue, 1 Oct 2019 07:46:57 -0700 (PDT) Date: Tue, 1 Oct 2019 15:46:50 +0100 From: Mark Rutland To: Julien Grall , Stefano Stabellini Cc: Arnd Bergmann , Andrew Cooper , Emil Velikov , Russell King , Denis Efremov , "linux-kernel@vger.kernel.org" , Masahiro Yamada , xen-devel , Will Deacon , Linux ARM Subject: Re: [Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function Message-ID: <20191001144650.GA22655@lakrids.cambridge.arm.com> 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> <9e04485f-2d4a-81a2-c7e1-e50dd888930f@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9e04485f-2d4a-81a2-c7e1-e50dd888930f@arm.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 01, 2019 at 03:39:41PM +0100, Julien Grall wrote: > On 01/10/2019 15:33, Mark Rutland wrote: > > 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 [...] > > > 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. Ah, sorry. I misunderstood what you were planning to send a patch for, and assumed you were going to propose an alternative to Arnd's patch. Stefano, do you see any problem with Arnd's patch? If not, it would be good to get this merged soon. Thanks, Mark. > > Cheers, > > [1] https://patchwork.kernel.org/patch/11135601/ > > -- > Julien Grall