Skip to contentSkip to conversation

2.6.7 warnings

DISCUSSION Benoît Dejean 2 participants 2 messages Jun 16, 2004 Sound

lore
Share & tools
lore
#0 lore raw

drivers/video/fbmem.c: In function `fb_cursor':
drivers/video/fbmem.c:933: warning: passing arg 1 of `copy_from_user' discards qualifiers from pointer target type

sound/pci/via82xx.c: In function `snd_via82xx_probe':
sound/pci/via82xx.c:2252: warning: statement with no effect (cpp shows that this statement is reduced to -22;)

Signature · 4 lines
Benoît Dejean
JID: [email protected]
http://gdesklets.gnomedesktop.org
http://www.paulla.asso.fr
#1 lore raw

At Wed, 16 Jun 2004 14:55:17 +0200,

Quoted 4 lines · Benoît Dejean

sound/pci/via82xx.c: In function `snd_via82xx_probe':
sound/pci/via82xx.c:2252: warning: statement with no effect (cpp shows that this statement is reduced to -22;)

The patch below should fix this.

Takashi

include/sound/core.h renamed from include/sound/core.h-dist +3 -3
@@ -223,9 +223,9 @@ int snd_card_pci_resume(struct pci_dev *
 static inline int snd_power_wait(snd_card_t *card, unsigned int state, struct file *file) { return 0; }
 #define snd_power_get_state(card)	SNDRV_CTL_POWER_D0
 #define snd_power_change_state(card, state)	do { (void)(card); } while (0)
-#define snd_card_set_pm_callback(card,suspend,resume,data) -EINVAL
-#define snd_card_set_dev_pm_callback(card,suspend,resume,data) -EINVAL
-#define snd_card_set_isa_pm_callback(card,suspend,resume,data) -EINVAL
+#define snd_card_set_pm_callback(card,suspend,resume,data)
+#define snd_card_set_dev_pm_callback(card,suspend,resume,data)
+#define snd_card_set_isa_pm_callback(card,suspend,resume,data)
 #define SND_PCI_PM_CALLBACKS
 #endif