Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264170AbUFPQgM (ORCPT ); Wed, 16 Jun 2004 12:36:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264192AbUFPQgL (ORCPT ); Wed, 16 Jun 2004 12:36:11 -0400 Received: from cantor.suse.de ([195.135.220.2]:38889 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S264170AbUFPQgF (ORCPT ); Wed, 16 Jun 2004 12:36:05 -0400 Date: Wed, 16 Jun 2004 18:00:29 +0200 Message-ID: From: Takashi Iwai To: TazForEver@free.fr Cc: LKML Subject: Re: 2.6.7 warnings In-Reply-To: <1087390517.22712.6.camel@athlon> References: <1087390517.22712.6.camel@athlon> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 15) (Security Through Obscurity) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1407 Lines: 32 At Wed, 16 Jun 2004 14:55:17 +0200, Beno?t Dejean wrote: > > 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 --- linux-2.6.7/include/sound/core.h-dist 2004-06-16 17:57:34.288215560 +0200 +++ linux-2.6.7/include/sound/core.h 2004-06-16 17:58:19.638890254 +0200 @@ -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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/