WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [TOME] Re: [Xen-devel] Re: [PATCH] Modpost section mismatch fix (for

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [TOME] Re: [Xen-devel] Re: [PATCH] Modpost section mismatch fix (for platform-pci-unplug.c)
From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>
Date: Sat, 9 Jul 2011 21:59:07 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, jeremy.fitzhardinge@xxxxxxxxxx, Ian Campbell <ijc@xxxxxxxxxxxxxx>
Delivery-date: Sat, 09 Jul 2011 09:29:56 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=wnohang.net; s=mail; t=1310228952; bh=RsaKGJCHOjqwxi3EjKCMv707gdB5YF38u9u09x/bZJY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=Ta8WwQxVLWEQvXHIUtrDZ7CGrcOmv0ulDFYAlfnGZG7I8GQT7N2MRWr7fNCdmiuDZ xYvdm1ZZ4Ym9unB43G47nbQWWWAbhDS7gA5sxlVviYt2dyo7IDeYqEzUg9zi+pGVyS KT9sa9WBVXSxoGXoiT0qMy9tJCLTCYTdRRkHsdQ8=
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=wnohang.net; s=mail; t=1310228951; bh=RsaKGJCHOjqwxi3EjKCMv707gdB5YF38u9u09x/bZJY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=dfjpf+asBYsQ2d/krMM55qDp+naoPIf1I3fc0Vdpd+rOQJOjo5rY8/ROT2+rRtfPt zamhDJxCw7SAYGsvL2CA9NEkxt+eisDXyXKGzSp02e0+BrA3CrPke1kI2N6F/awMRO CQdwDagPd7ZQj+CBYtOgfsgiSZJAhDAJve5R1D3U=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110708202628.GA25998@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20110705141323.GG2972@xxxxxxxxxxxx> <20110705142731.GA4463@Xye> <20110705144846.GA13548@xxxxxxxxxxxx> <20110705213243.GA3647@xxxxxxxxxxxx> <20110707154648.GA4394@Xye> <20110707162454.GA8164@xxxxxxxxxxxx> <20110707194851.GB4394@Xye> <20110707200949.GA25216@xxxxxxxxxxxx> <20110707210429.GD4394@Xye> <20110708202628.GA25998@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-12-30)
* On Fri, Jul 08, 2011 at 04:26:28PM -0400, Konrad Rzeszutek Wilk 
<konrad.wilk@xxxxxxxxxx> wrote:
>>Also,
>>I had sent another change (oneline) for the file
>>arch/x86/xen/platform-pci-unplug.c for check_platform_magic, looks like that 
has not gone into
>>the pull request for Linus.

>Oh, I didn't see it. Did you CC me on it? Can you bounce it to me please?

=========================
 diff --git a/arch/x86/xen/platform-pci-unplug.c 
b/arch/x86/xen/platform-pci-unplug.c
 index 25c52f9..ffcf261 100644
 --- a/arch/x86/xen/platform-pci-unplug.c
 +++ b/arch/x86/xen/platform-pci-unplug.c
 @@ -35,7 +35,7 @@ EXPORT_SYMBOL_GPL(xen_platform_pci_unplug);
  #ifdef CONFIG_XEN_PVHVM
  static int xen_emul_unplug;

 -static int __init check_platform_magic(void)
 +static int check_platform_magic(void)
  {
         short magic;
         char protocol;
 --


Yeah, that would cause an issue during suspend/resume by PVonHVM. How
we didn't trip over this I've no idea..

Anyhow, can you provide me with your Signed-off-by please and I will queue
it right up.
Sorry for missing the Signed-off thing (was there in original one I had sent).
===========================================================

  Removing __init from check_platform_magic since it is called by
xen_unplug_emulated_devices in non-init contexts (It probably gets inlined
because of -finline-functions-called-once, removing __init is more to avoid
mismatch being reported).

 Signed-off-by: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>
 ---
  arch/x86/xen/platform-pci-unplug.c |    2 +-

 diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
 index fe00830..fb5eeb0 100644
 --- a/arch/x86/pci/xen.c
 +++ b/arch/x86/pci/xen.c
 @@ -327,7 +327,7 @@ int __init pci_xen_hvm_init(void)
  }

  #ifdef CONFIG_XEN_DOM0
 -static int xen_register_pirq(u32 gsi, int triggering)
 +static  __refdata  int xen_register_pirq(u32 gsi, int triggering)
  {
         int rc, pirq, irq = -1;
         struct physdev_map_pirq map_irq;
 diff --git a/arch/x86/xen/platform-pci-unplug.c 
b/arch/x86/xen/platform-pci-unplug.c
 index 25c52f9..ffcf261 100644
 --- a/arch/x86/xen/platform-pci-unplug.c
 +++ b/arch/x86/xen/platform-pci-unplug.c
 @@ -35,7 +35,7 @@ EXPORT_SYMBOL_GPL(xen_platform_pci_unplug);
  #ifdef CONFIG_XEN_PVHVM
  static int xen_emul_unplug;

 -static int __init check_platform_magic(void)
 +static int check_platform_magic(void)
  {
         short magic;
         char protocol;
 --


Stefano, you OK with this patch?

--------------------------
Raghavendra Prabhu
GPG Id : 0xD72BE977
Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977
www: wnohang.net

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel