From: Ian Abbott Date: Mon, 2 Apr 2012 16:13:35 +0000 (+0100) Subject: Replace with X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aaed3ca66f31e9c0f6b12ba9c2666dc2eeb62c04;p=comedi.git Replace with Added a compatibility header for which is being added in kernel version 3.4, along with the removal of . Changed C files that previously included to include instead. Signed-off-by: Ian Abbott --- diff --git a/comedi/drivers.c b/comedi/drivers.c index 4eed3671..27c34fe7 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -44,7 +44,7 @@ #include #include -#include +#include #include "comedi_fops.h" diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 3cb2e4b3..2cf2ac6f 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -85,7 +85,7 @@ TODO: #include #include -#include +#include #include "comedi_pci.h" #include "8253.h" diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 962b364a..d1772e72 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -55,7 +55,7 @@ #include "comedi_pci.h" #include -#include +#include #define PCI_MITE_SIZE 4096 #define PCI_DAQ_SIZE 4096 diff --git a/include/asm/barrier.h b/include/asm/barrier.h new file mode 100644 index 00000000..d91fd54b --- /dev/null +++ b/include/asm/barrier.h @@ -0,0 +1,16 @@ +/* + * asm/barrier.h compatibility header + */ + +#ifndef __COMPAT_ASM_BARRIER_H_ +#define __COMPAT_ASM_BARRIER_H_ + +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) +#include +#else +#include_next +#endif + +#endif /* __COMPAT_ASM_BARRIER_H_ */