Re: [2.6 patch] move OSS ac97_codec.h to sound/oss/

Sam Ravnborg
2004-11-30T05:32:35Z

On Tue, Nov 30, 2004 at 02:31:39AM +0100, Adrian Bunk wrote:
--- linux-2.6.10-rc2-mm3-full/sound/oss/emu10k1/hwaccess.h.old 2004-11-30 02:11:21.000000000 +0100
> +++ linux-2.6.10-rc2-mm3-full/sound/oss/emu10k1/hwaccess.h 2004-11-30 02:12:16.000000000 +0100
> @@ -35,7 +35,7 @@
> #include <linux/fs.h>
> #include <linux/sound.h>
> #include <linux/soundcard.h>
> -#include <linux/ac97_codec.h>
> +#include "../ac97_codec.h"

Such relative includes should be avoided. Set CFLAGS_xxx.o in Makefile instead.
And move include down under #include <asm/xxx>

Sam