mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Fw: [PATCH] use "#ifdef __KERNEL" to avoid compile error in input.h
       [not found] <20060406230822.2f3e45df.akpm@osdl.org>
@ 2006-04-07  7:28 ` Luke Yang
  0 siblings, 0 replies; only message in thread
From: Luke Yang @ 2006-04-07  7:28 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dmitry Torokhov, linux-kernel

On 4/7/06, Andrew Morton <akpm@osdl.org> 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 <luke.adi@gmail.com>
>
> 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
luke.adi@gmail.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-07  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20060406230822.2f3e45df.akpm@osdl.org>
2006-04-07  7:28 ` Fw: [PATCH] use "#ifdef __KERNEL" to avoid compile error in input.h Luke Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®