lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CB8B365.9050805@oracle.com>
Date:	Fri, 15 Oct 2010 13:02:45 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Sarah Sharp <sarah.a.sharp@...ux.intel.com>
CC:	Greg KH <gregkh@...e.de>, Stephen Rothwell <sfr@...b.auug.org.au>,
	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
	lud <linux-usb@...r.kernel.org>, Andiry Xu <andiry.xu@....com>,
	Dong Nguyen <dong.nguyen@....com>,
	Libin Yang <libin.yang@....com>
Subject: Re: [PATCH] xhci: Fix compile error when CONFIG_PM=n

On 10/15/10 11:24, Sarah Sharp wrote:
> Fix this error when CONFIG_PM is not enabled:
> 
> drivers/usb/host/xhci.c:675: error: implicit declaration of function 'usb_root_hub_lost_power'
> 
> Wrap xhci_suspend() and xhci_resume() into an ifdef CONFIG_PM, along with
> the functions that only they call -- xhci_save_registers() and
> xhci_restore_registers().
> 
> Reported-by: Randy Dunlap <randy.dunlap@...cle.com>
> Signed-off-by: Sarah Sharp <sarah.a.sharp@...ux.intel.com>

Now I'm getting these errors:

ERROR: "xhci_bus_resume" [drivers/usb/host/xhci-hcd.ko] undefined!
ERROR: "xhci_bus_suspend" [drivers/usb/host/xhci-hcd.ko] undefined!

My config file is attached.

> ---
>  drivers/usb/host/xhci.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
> index 33d0034..9dc5be5 100644
> --- a/drivers/usb/host/xhci.c
> +++ b/drivers/usb/host/xhci.c
> @@ -551,6 +551,7 @@ void xhci_shutdown(struct usb_hcd *hcd)
>  		    xhci_readl(xhci, &xhci->op_regs->status));
>  }
>  
> +#ifdef CONFIG_PM
>  static void xhci_save_registers(struct xhci_hcd *xhci)
>  {
>  	xhci->s3.command = xhci_readl(xhci, &xhci->op_regs->command);
> @@ -761,6 +762,13 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
>  	return 0;
>  }
>  
> +#else
> +
> +#define	xhci_suspend	NULL
> +#define	xhci_resume	NULL
> +
> +#endif	/* CONFIG_PM */
> +
>  /*-------------------------------------------------------------------------*/
>  
>  /**


-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

View attachment "config-xhci" of type "text/plain" (39887 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ