include/sound/soc-dai.h: "codec" declared twice

From: Jeff Garzik
Date: Tue Apr 28 2009 - 15:33:43 EST


Compiling with LLVM's clang yielded this:

include/sound/soc-dai.h:224:25: error: member of anonymous union redeclares 'codec'
struct snd_soc_codec *codec;
^
include/sound/soc-dai.h:214:24: note: previous declaration is here
struct snd_soc_codec *codec;
^
2 diagnostics generated.

And indeed, we see

struct snd_soc_dai {
[...]
/* DAI runtime info */
struct snd_pcm_runtime *runtime;
struct snd_soc_codec *codec;

[...]
/* parent codec/platform */
union {
struct snd_soc_codec *codec;
struct snd_soc_platform *platform;
};

struct list_head list;
};

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