lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 28 Nov 2006 22:06:33 -0800
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	lkml <linux-kernel@...r.kernel.org>
Cc:	akpm <akpm@...l.org>, perex@...e.cz
Subject: [PATCH -mm] ALSA: add struct forward declaration

From: Randy Dunlap <randy.dunlap@...cle.com>

I see about 10 sets of these in a random config.

  CC      drivers/media/video/saa7134/saa7134-cards.o
In file included from drivers/media/video/saa7134/saa7134.h:43,
                 from drivers/media/video/saa7134/saa7134-cards.c:27:
include/sound/pcm.h:59: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:59: warning: its scope is only this definition or declaration, which is probably not what you want
include/sound/pcm.h:60: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:62: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:64: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:65: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:66: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:67: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:68: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:71: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:73: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:75: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:76: warning: 'struct snd_pcm_substream' declared inside parameter list
include/sound/pcm.h:77: warning: 'struct snd_pcm_substream' declared inside parameter list

Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
 include/sound/pcm.h |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.19-rc6-mm2.orig/include/sound/pcm.h
+++ linux-2.6.19-rc6-mm2/include/sound/pcm.h
@@ -55,6 +55,8 @@ struct snd_pcm_hardware {
 	size_t fifo_size;		/* fifo size in bytes */
 };
 
+struct snd_pcm_substream;
+
 struct snd_pcm_ops {
 	int (*open)(struct snd_pcm_substream *substream);
 	int (*close)(struct snd_pcm_substream *substream);


---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ