From: Jiri Kosina on
On Thu, 1 Apr 2010, Stephen Rothwell wrote:

> After merging the final tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
>
> drivers/hid/hid-picolcd.c: In function 'picolcd_debug_reset_write':
> drivers/hid/hid-picolcd.c:1343: error: implicit declaration of function 'copy_from_user'
> drivers/hid/hid-picolcd.c: In function 'picolcd_debug_eeprom_read':
> drivers/hid/hid-picolcd.c:1407: error: implicit declaration of function 'copy_to_user'
>
> Caused by commit 9bbf2b98ba11d00bd73e3254e15cfe17ccaff6ba ("HID: add
> experimental access to PicoLCD device's EEPROM and FLASH"). Using copy_
> {to,from}_user requires the include of linux/uaccess.h.
>
> I have reverted that commit for today.

Hmm, on which arch did this bomb out? I wonder why it is building fine for
me.

Anyway, I have added the include, as it is obviously correct(tm), thanks
for reporting it.

--
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Stephen Rothwell on
Hi Jiri,

On Thu, 1 Apr 2010 08:18:43 +0200 (CEST) Jiri Kosina <jkosina(a)suse.cz> wrote:
>
> On Thu, 1 Apr 2010, Stephen Rothwell wrote:
>
> > After merging the final tree, today's linux-next build (powerpc
> > allyesconfig) failed like this:
> >
> > drivers/hid/hid-picolcd.c: In function 'picolcd_debug_reset_write':
> > drivers/hid/hid-picolcd.c:1343: error: implicit declaration of function 'copy_from_user'
> > drivers/hid/hid-picolcd.c: In function 'picolcd_debug_eeprom_read':
> > drivers/hid/hid-picolcd.c:1407: error: implicit declaration of function 'copy_to_user'
> >
> > Caused by commit 9bbf2b98ba11d00bd73e3254e15cfe17ccaff6ba ("HID: add
> > experimental access to PicoLCD device's EEPROM and FLASH"). Using copy_
> > {to,from}_user requires the include of linux/uaccess.h.
> >
> > I have reverted that commit for today.
>
> Hmm, on which arch did this bomb out? I wonder why it is building fine for
> me.

PowerPC (see above). It could also be some interaction with another tree
in linux-next.

> Anyway, I have added the include, as it is obviously correct(tm), thanks
> for reporting it.

Thanks.

--
Cheers,
Stephen Rothwell sfr(a)canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
From: Bruno Prémont on
Hi Jiri, Stephen,

Wondering why x86 (32bit and 64bit) does not need to include the
header but other arches (at least powerpc) need it.

Any idea via which header linux/uaccess.h gets included on x86?
If nobody has checked by the time I get home I will determine that.

Thanks,
Bruno


On Thu, 1 Apr 2010 18:35:30 Stephen Rothwell wrote:
> Hi Jiri,
>
> On Thu, 1 Apr 2010 08:18:43 +0200 (CEST) Jiri Kosina
> <jkosina(a)suse.cz> wrote:
> >
> > On Thu, 1 Apr 2010, Stephen Rothwell wrote:
> >
> > > After merging the final tree, today's linux-next build (powerpc
> > > allyesconfig) failed like this:
> > >
> > > drivers/hid/hid-picolcd.c: In function
> > > 'picolcd_debug_reset_write': drivers/hid/hid-picolcd.c:1343:
> > > error: implicit declaration of function 'copy_from_user'
> > > drivers/hid/hid-picolcd.c: In function
> > > 'picolcd_debug_eeprom_read': drivers/hid/hid-picolcd.c:1407:
> > > error: implicit declaration of function 'copy_to_user'
> > >
> > > Caused by commit 9bbf2b98ba11d00bd73e3254e15cfe17ccaff6ba ("HID:
> > > add experimental access to PicoLCD device's EEPROM and FLASH").
> > > Using copy_ {to,from}_user requires the include of
> > > linux/uaccess.h.
> > >
> > > I have reverted that commit for today.
> >
> > Hmm, on which arch did this bomb out? I wonder why it is building
> > fine for me.
>
> PowerPC (see above). It could also be some interaction with another
> tree in linux-next.
>
> > Anyway, I have added the include, as it is obviously correct(tm),
> > thanks for reporting it.
>
> Thanks.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Bruno Prémont on
On Thu, 01 April 2010 Bruno Prémont <bonbons(a)linux-vserver.org> wrote:
> Hi Jiri, Stephen,
>
> Wondering why x86 (32bit and 64bit) does not need to include the
> header but other arches (at least powerpc) need it.
>
> Any idea via which header linux/uaccess.h gets included on x86?
> If nobody has checked by the time I get home I will determine that.

Here is the include path for x86:
included arch/x86/include/asm/uaccess.h
from arch/x86/include/asm/sections.h:5,
from arch/x86/include/asm/hw_irq.h:26,
from include/linux/irq.h:233,
from arch/x86/include/asm/hardirq.h:5,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:12,
from include/linux/usb.h:15,
from drivers/hid/hid-picolcd.c:26:

Wondering why there is such a difference for powerpc!

Thanks,
Bruno


> On Thu, 1 Apr 2010 18:35:30 Stephen Rothwell wrote:
> > Hi Jiri,
> >
> > On Thu, 1 Apr 2010 08:18:43 +0200 (CEST) Jiri Kosina
> > <jkosina(a)suse.cz> wrote:
> > >
> > > On Thu, 1 Apr 2010, Stephen Rothwell wrote:
> > >
> > > > After merging the final tree, today's linux-next build (powerpc
> > > > allyesconfig) failed like this:
> > > >
> > > > drivers/hid/hid-picolcd.c: In function
> > > > 'picolcd_debug_reset_write': drivers/hid/hid-picolcd.c:1343:
> > > > error: implicit declaration of function 'copy_from_user'
> > > > drivers/hid/hid-picolcd.c: In function
> > > > 'picolcd_debug_eeprom_read': drivers/hid/hid-picolcd.c:1407:
> > > > error: implicit declaration of function 'copy_to_user'
> > > >
> > > > Caused by commit 9bbf2b98ba11d00bd73e3254e15cfe17ccaff6ba ("HID:
> > > > add experimental access to PicoLCD device's EEPROM and FLASH").
> > > > Using copy_ {to,from}_user requires the include of
> > > > linux/uaccess.h.
> > > >
> > > > I have reverted that commit for today.
> > >
> > > Hmm, on which arch did this bomb out? I wonder why it is building
> > > fine for me.
> >
> > PowerPC (see above). It could also be some interaction with another
> > tree in linux-next.
> >
> > > Anyway, I have added the include, as it is obviously correct(tm),
> > > thanks for reporting it.
> >
> > Thanks.
> >
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/