Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8620115ybn; Tue, 1 Oct 2019 10:40:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2Gz+azjeQQvNGsANdVL4+4+br5zM3+a4kaF1MrzcgmH/+U9a1QHqUR4tTunTv2ZUrHbcH X-Received: by 2002:aa7:d7d3:: with SMTP id e19mr27164765eds.80.1569951637639; Tue, 01 Oct 2019 10:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569951637; cv=none; d=google.com; s=arc-20160816; b=ET+p+3E0zn0fJgRxf8V65YgjwSHatzAjCjcoJ1CH5M1+nBjLZSiAxhGNOuLubDkRyn cBBiUGw5WfcxCHRFwpbYYyT+dcoLNiNLR8fqJBRBy6KztrSfxvTc1jyuCuY88XkhgY+H KHOpcWtowEZxrYTyweYrsYHZaXwgLp24JY/H1fUc55XZporqueoS/KBOy2apH7Z6C5na WNzkXEuBHNfgEHXUdRHx2Ghp0H+hLPpGZ1DkSEgNUSN1N/nri0CveLFehvuHikiEFe+r k7Iwiolxu7wuqI/sv+IrrYEOhOaZyP9vRre+K2jPdVQEy1fWDlbHbBxUcEwUddA4pKxj q3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Kh/W4MYHb0W88nKM89YninKDiSUJuAjC7Mg9NXxGxz0=; b=OcSE5t/ddvFcO48E6If2y1lF0awqC+Rndqzf6e+UbQEcjmVTnXmSyS2Kir6RzH4IUa DRhAwgzIZ5QCdymi16cIsBzmybcQEb5ajNa65Wqwp36lE+x+PSqRyHmud4O2sMnc8Rv7 FO56RMnoiRA4m72MlC/8ayHVfPICx4/OBtgsI/O0tZZSEY/udpxNIr2Wh1SY7/+4e+Uj 5+sgszo7QXlV0BcO8xbpft1za8KlkC/XoDJYGJRzSpqmqLBleRgGr9ot18rouhEL6oA7 0Hf80gDyq3XQXQO5ijG/OrZAVDA9/MA/YFa1h/5AWo5g2EX1yg3JZAeX9+JUPyAJTYCA v69g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PGyzGHOi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rh23si8907687ejb.75.2019.10.01.10.40.13; Tue, 01 Oct 2019 10:40:37 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PGyzGHOi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731366AbfJARiL (ORCPT + 99 others); Tue, 1 Oct 2019 13:38:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:38854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730447AbfJARiL (ORCPT ); Tue, 1 Oct 2019 13:38:11 -0400 Received: from localhost (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B7CEE2053B; Tue, 1 Oct 2019 17:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569951490; bh=MMmGvGL9mMISD7665FS8n/2elHIASz6KuyJpSch+Vzc=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=PGyzGHOi8DLY9Ntkwu1xLIIjou96erVvR41GoRYE63/OEUdplRKDX/U+LkKD1XiPD 4RC1VBOtqVJPdE3vzE0V0JTmVjnNOFDFOOfnH/zLIYFmxWmDIhAvlM0PHZnLoSvOgQ 7wnlKe7hxq0JZ33qeMO21zV/luBcFtqS9qbtj/18= Date: Tue, 1 Oct 2019 10:38:03 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Arnd Bergmann cc: Stefano Stabellini , Emil Velikov , Denis Efremov , Masahiro Yamada , Russell King , xen-devel@lists.xenproject.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com Subject: Re: [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function In-Reply-To: <20190906153948.2160342-1-arnd@arndb.de> Message-ID: References: <20190906153948.2160342-1-arnd@arndb.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Sep 2019, 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 > --- > arch/arm/xen/enlighten.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c > index 1e57692552d9..845c528acf24 100644 > --- a/arch/arm/xen/enlighten.c > +++ b/arch/arm/xen/enlighten.c > @@ -437,7 +437,6 @@ EXPORT_SYMBOL_GPL(HYPERVISOR_memory_op); > EXPORT_SYMBOL_GPL(HYPERVISOR_physdev_op); > EXPORT_SYMBOL_GPL(HYPERVISOR_vcpu_op); > EXPORT_SYMBOL_GPL(HYPERVISOR_tmem_op); > -EXPORT_SYMBOL_GPL(HYPERVISOR_platform_op); > EXPORT_SYMBOL_GPL(HYPERVISOR_multicall); > EXPORT_SYMBOL_GPL(HYPERVISOR_vm_assist); > EXPORT_SYMBOL_GPL(HYPERVISOR_dm_op); Hi Arnd, Thank you for the patch. HYPERVISOR_platform_op() is an inline function, the underlying function that should be exported is HYPERVISOR_platform_op_raw. So, instead of removing HYPERVISOR_platform_op, we should change it to HYPERVISOR_platform_op_raw. For convenience, and for testing I cooked up a patch. Arnd, if you are happy with it (in the sense that it solves your problem) we'll check it in the xentip tree, unless you would like to get it in your tree? Cheers, Stefano --- From: Stefano Stabellini 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 Instead, export the underlying function called by the static inline: HYPERVISOR_platform_op_raw. Fixes: 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions") Signed-off-by: Arnd Bergmann Signed-off-by: Stefano Stabellini diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 1e57692552d9..522c97d43ef8 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen/enlighten.c @@ -437,7 +437,7 @@ EXPORT_SYMBOL_GPL(HYPERVISOR_memory_op); EXPORT_SYMBOL_GPL(HYPERVISOR_physdev_op); EXPORT_SYMBOL_GPL(HYPERVISOR_vcpu_op); EXPORT_SYMBOL_GPL(HYPERVISOR_tmem_op); -EXPORT_SYMBOL_GPL(HYPERVISOR_platform_op); +EXPORT_SYMBOL_GPL(HYPERVISOR_platform_op_raw); EXPORT_SYMBOL_GPL(HYPERVISOR_multicall); EXPORT_SYMBOL_GPL(HYPERVISOR_vm_assist); EXPORT_SYMBOL_GPL(HYPERVISOR_dm_op);