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

From: Sam Ravnborg
Date: Tue Nov 30 2004 - 00:34:24 EST


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
-
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/