Skip to contentSkip to conversation

drivers/usb/host/u132-hcd.c - Fix a warning when CONFIG_PM=n

PATCH Applied Gabriel C 2 participants 2 messages Jul 30, 2007 – Aug 3, 2007 USB

lore
Share & tools
lore

Gabriel C

author
#0 lore raw

PATCH 1/1 drivers/usb/host/u132-hcd.c - Fix a warning when CONFIG_PM=n

Hi,

I noticed this warning with CONFING_PM=n

...

drivers/usb/host/u132-hcd.c:1525: warning: 'port_power' defined but not used

...

---

 drivers/usb/host/u132-hcd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/usb/host/u132-hcd.c +3 -0
index 7f765ec..b88eb3c 100644
@@ -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)
#1 lore raw

patch usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch added to gregkh-2.6 tree

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/

Quoted 1 line

From [email protected] Thu Aug 2 18:39:02 2007

From: Gabriel C <[email protected]>
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 <[email protected]>
Cc: [email protected], [email protected]
Message-ID: <[email protected]>

I noticed this warning with CONFING_PM=n

...

drivers/usb/host/u132-hcd.c:1525: warning: 'port_power' defined but not used

...

---
 drivers/usb/host/u132-hcd.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/usb/host/u132-hcd.c +3 -0
@@ -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 [email protected] are

usb/usb-u132-hcd.c-fix-a-warning-when-config_pm-n.patch