Skip to contentSkip to conversation

aoa: fix a sparse warning

PATCH In review Johannes Berg 2 participants 2 messages Feb 26, 2007 – Mar 8, 2007

Subsystems (2)
lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 aoa: fix a sparse warning

This fixes a warning sparse gives.

---
There are more sparse warnings but they're about signedness where I explicitly need to get signed values from the hw but the functions are declared unsigned because I also need unsigned values sometimes...

 sound/aoa/soundbus/core.c     |    2 --
 sound/aoa/soundbus/soundbus.h |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
sound/aoa/soundbus/core.c +0 -2
@@ -179,8 +179,6 @@ static int soundbus_device_resume(struct
 
 #endif /* CONFIG_PM */
 
-extern struct device_attribute soundbus_dev_attrs[];
-
 static struct bus_type soundbus_bus_type = {
 	.name		= "aoa-soundbus",
 	.probe		= soundbus_probe,
sound/aoa/soundbus/soundbus.h +2 -0
@@ -199,4 +199,6 @@ struct soundbus_driver {
 extern int soundbus_register_driver(struct soundbus_driver *drv);
 extern void soundbus_unregister_driver(struct soundbus_driver *drv);
 
+extern struct device_attribute soundbus_dev_attrs[];
+
 #endif /* __SOUNDBUS_H */

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#1 lore raw

At Tue, 27 Feb 2007 00:23:59 +0100,

Quoted 4 lines · Johannes Berg

This fixes a warning sparse gives.

Applied on ALSA HG tree now. Thanks.

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV