* [PATCH] drivers/usb/host/u132-hcd.c - Fix a warning when CONFIG_PM=n
@ 2007-07-30 10:57 Gabriel C
2007-08-03 1:51 ` patch usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch added to gregkh-2.6 tree gregkh
0 siblings, 1 reply; 2+ messages in thread
From: Gabriel C @ 2007-07-30 10:57 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: tony.olech, gregkh
Hi,
I noticed this warning with CONFING_PM=n
...
drivers/usb/host/u132-hcd.c:1525: warning: 'port_power' defined but not used
...
Signed-off-by: Gabriel Craciunescu <nix.or.die@googlemail.com>
---
drivers/usb/host/u132-hcd.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index 7f765ec..b88eb3c 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -1520,12 +1520,15 @@ static void u132_hcd_endp_work_scheduler(struct work_struct *work)
}
}
}
+#ifdef CONFIG_PM
static void port_power(struct u132 *u132, int pn, int is_on)
{
u132->port[pn].power = is_on;
}
+#endif
+
static void u132_power(struct u132 *u132, int is_on)
{
struct usb_hcd *hcd = u132_to_hcd(u132)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* patch usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch added to gregkh-2.6 tree
2007-07-30 10:57 [PATCH] drivers/usb/host/u132-hcd.c - Fix a warning when CONFIG_PM=n Gabriel C
@ 2007-08-03 1:51 ` gregkh
0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2007-08-03 1:51 UTC (permalink / raw)
To: nix.or.die, gregkh, linux-kernel
This is a note to let you know that I've just added the patch titled
Subject: USB: u132-hcd.c - Fix a warning when CONFIG_PM=n
to my gregkh-2.6 tree. Its filename is
usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From nix.or.die@googlemail.com Thu Aug 2 18:39:02 2007
From: Gabriel C <nix.or.die@googlemail.com>
Date: Mon, 30 Jul 2007 12:57:03 +0200
Subject: USB: u132-hcd.c - Fix a warning when CONFIG_PM=n
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: tony.olech@elandigitalsystems.com, gregkh@suse.de
Message-ID: <46ADC3FF.8040506@googlemail.com>
I noticed this warning with CONFING_PM=n
...
drivers/usb/host/u132-hcd.c:1525: warning: 'port_power' defined but not used
...
Signed-off-by: Gabriel Craciunescu <nix.or.die@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/usb/host/u132-hcd.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -1519,12 +1519,15 @@ static void u132_hcd_endp_work_scheduler
}
}
}
+#ifdef CONFIG_PM
static void port_power(struct u132 *u132, int pn, int is_on)
{
u132->port[pn].power = is_on;
}
+#endif
+
static void u132_power(struct u132 *u132, int is_on)
{
struct usb_hcd *hcd = u132_to_hcd(u132)
Patches currently in gregkh-2.6 which might be from nix.or.die@googlemail.com are
usb/usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-03 1:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 10:57 [PATCH] drivers/usb/host/u132-hcd.c - Fix a warning when CONFIG_PM=n Gabriel C
2007-08-03 1:51 ` patch usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch added to gregkh-2.6 tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox