On Fri, Apr 20, 2018 at 02:33:20PM -0700, Jason Gerecke wrote:
> The config.h header that is generated after running the configure
> script should be included by all the kernels to ensure that we are
> able to access compiler defines only discovered at config time.
> 
> Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
> ---
>  2.6.32/wacom.h | 1 +
>  2.6.38/wacom.h | 1 +
>  4.5/wacom.h    | 1 +
>  3 files changed, 3 insertions(+)
> 
> diff --git a/2.6.32/wacom.h b/2.6.32/wacom.h
> index b023fdb..2d87346 100755
> --- a/2.6.32/wacom.h
> +++ b/2.6.32/wacom.h
> @@ -82,6 +82,7 @@
>   */
>  #ifndef WACOM_H
>  #define WACOM_H
> +#include "../config.h"

if you have ../ to include config.h, you're missing a -I path. config.h
shouldn't be relative, iirc.

Also, would this work with srcdir != builddir?

Cheers,
   Peter

>  #include <linux/kernel.h>
>  #include <linux/slab.h>
>  #include <linux/module.h>
> diff --git a/2.6.38/wacom.h b/2.6.38/wacom.h
> index 357f5e8..1e5d848 100644
> --- a/2.6.38/wacom.h
> +++ b/2.6.38/wacom.h
> @@ -82,6 +82,7 @@
>   */
>  #ifndef WACOM_H
>  #define WACOM_H
> +#include "../config.h"
>  #include <linux/kernel.h>
>  #include <linux/slab.h>
>  #include <linux/module.h>
> diff --git a/4.5/wacom.h b/4.5/wacom.h
> index 6bef5a5..2a29d4b 100644
> --- a/4.5/wacom.h
> +++ b/4.5/wacom.h
> @@ -85,6 +85,7 @@
>   */
>  #ifndef WACOM_H
>  #define WACOM_H
> +#include "../config.h"
>  #include <linux/kernel.h>
>  #include <linux/slab.h>
>  #include <linux/module.h>
> -- 
> 2.17.0
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Linuxwacom-devel mailing list
> Linuxwacom-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to