[BUG] arch/arm/mach-s3c2442/mach-gta02.c:706: error: 'gta02_pmu_force_shutdown' undeclared here (not in a function)
Lars-Peter Clausen
lars at metafoo.de
Sun Jul 26 20:51:48 CEST 2009
Luca Capello wrote:
> Hi there!
> One of the kernel builds for Debian (on a QNAP TS-409U) failed with an
> error with the attached config and the following compilation commands:
>
> $ yes "" | $(MAKE) ARCH=arm oldconfig
> $ $(MAKE) ARCH=arm EXTRAVERSION=-SOMEDEBIANVERSION
>
> =====
> CC arch/arm/mach-s3c2440/dma.o
> arch/arm/mach-s3c2410/include/mach/dma.h:201: warning: 's3c_dma_has_circular' defined but not used
> CC arch/arm/mach-s3c2440/mach-smdk2440.o
> LD arch/arm/mach-s3c2440/built-in.o
> CC arch/arm/mach-s3c2442/s3c2442.o
> CC arch/arm/mach-s3c2442/clock.o
> CC arch/arm/mach-s3c2442/mach-gta02.o
> arch/arm/mach-s3c2442/mach-gta02.c:706: error: 'gta02_pmu_force_shutdown' undeclared here (not in a function)
> make[2]: *** [arch/arm/mach-s3c2442/mach-gta02.o] Error 1
> make[1]: *** [arch/arm/mach-s3c2442] Error 2
> make[1]: Leaving directory `/tmp/buildd/linux-2.6-openmoko-20090702.gitd1c828aa'
> make: *** [build-stamp] Error 2
> =====
>
> Is this a real (and known) issue or am I fault somewhere?
>
> Thx, bye,
> Gismo / Luca
Hi
gta02_pmu_force_shutdown is only defined when CONFIG_CHARGER_PCF50633 is
set, but it's used unconditionall. I attached a simple patch, which
fixes the build issue.
But I guess you want to define CHARGER_PCF50633 anyway.
- Lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gta02-missing-gta02_pmu_force_shutdown.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20090726/18b9194d/attachment.bin
More information about the openmoko-kernel
mailing list