Re: Fw: [PATCH] use "#ifdef __KERNEL" to avoid compile error in input.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/7/06, Andrew Morton <[email protected]> wrote:
> Hi all,
>
>     In linux/input.h, struct input_device_id uses type kernel_ulong_t,
> which is defined in linux/mod_devicetable.h,  but which is only
> included when __KERNEL__ is defined. So struct input_device_id should
> also be exported only in kernel mode.
>
> Signed-off-by: Luke Yang <[email protected]>
>
> diff --git a/include/linux/input.h b/include/linux/input.h
> index b0e612d..0319b65 100644
> --- a/include/linux/input.h
> +++ b/include/linux/input.h
> @@ -805,6 +805,7 @@ #define FF_AUTOCENTER       0x61
>
>  #define FF_MAX         0x7f
>
> +#ifdef __KERNEL__
>  struct input_device_id {
>
>         kernel_ulong_t flags;
> @@ -823,6 +824,7 @@ struct input_device_id {
>
>         kernel_ulong_t driver_info;
>  };
> +#endif
>
>  /*
>   * Structure for hotplug & device<->driver matching.
>
  Ooops, there is problem with the patch. The script/mod/file2alias.c
need the struct input_device_id, and it defines the "kernel_ulong_t"
by itself... Dmitry, any thought on how to solve the problem?



--
Best regards,
Luke Yang
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux