Revision 05946bce839b4fed5442dbfab77060fb75e051f3 authored by Anton Vorontsov on 04 July 2008, 16:59:38 UTC, committed by Linus Torvalds on 04 July 2008, 17:40:06 UTC
This patch fixes following build error when CONFIG_PM is set. CC drivers/video/fsl-diu-fb.o drivers/video/fsl-diu-fb.c: In function 'fsl_diu_suspend': drivers/video/fsl-diu-fb.c:1327: error: 'ofdev' undeclared (first use in this function) drivers/video/fsl-diu-fb.c:1327: error: (Each undeclared identifier is reported only once drivers/video/fsl-diu-fb.c:1327: error: for each function it appears in.) drivers/video/fsl-diu-fb.c: In function 'fsl_diu_resume': drivers/video/fsl-diu-fb.c:1337: error: 'ofdev' undeclared (first use in this function) While I'm at it, also fix this warning: drivers/video/fsl-diu-fb.c: In function 'fsl_diu_alloc': drivers/video/fsl-diu-fb.c:314: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'phys_addr_t' And these section mismatches: ..from the function fsl_diu_remove() to the function .exit.text:uninstall_fb() ..from the function fsl_diu_remove() to the function .exit.text:uninstall_fb() ..from the function install_fb() to the variable .devinit.data:fsl_diu_mode_db ..from the function install_fb() to the variable .devinit.data:fsl_diu_mode_db ..from the function fsl_diu_probe() to the function .exit.text:uninstall_fb() ..from the function fsl_diu_probe() to the function .exit.text:uninstall_fb() Also, some sparse fixes: make two functions static, and use NULL where appropriate. There are still a lot of sparse warnings, mainly wrt absence of __iomem annotations, but some will require ugly __force stuff. I'll leave them for now, since proper fix would be not that trivial as few one-liners below. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Cc: Timur Tabi <timur@freescale.com> Cc: Antonino Daplas <adaplas@gmail.com> Cc: York Sun <yorksun@freescale.com> Cc: Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7059d4b
File | Mode | Size |
---|---|---|
bitops | ||
4level-fixup.h | -rw-r--r-- | 1.0 KB |
Kbuild | -rw-r--r-- | 260 bytes |
Kbuild.asm | -rw-r--r-- | 733 bytes |
atomic.h | -rw-r--r-- | 5.1 KB |
audit_change_attr.h | -rw-r--r-- | 320 bytes |
audit_dir_write.h | -rw-r--r-- | 238 bytes |
audit_read.h | -rw-r--r-- | 127 bytes |
audit_signal.h | -rw-r--r-- | 36 bytes |
audit_write.h | -rw-r--r-- | 229 bytes |
bitops.h | -rw-r--r-- | 1011 bytes |
bug.h | -rw-r--r-- | 1.7 KB |
cmpxchg-local.h | -rw-r--r-- | 1.3 KB |
cmpxchg.h | -rw-r--r-- | 537 bytes |
cputime.h | -rw-r--r-- | 1.9 KB |
device.h | -rw-r--r-- | 218 bytes |
div64.h | -rw-r--r-- | 1.3 KB |
dma-mapping-broken.h | -rw-r--r-- | 2.4 KB |
dma-mapping.h | -rw-r--r-- | 7.1 KB |
emergency-restart.h | -rw-r--r-- | 209 bytes |
errno-base.h | -rw-r--r-- | 1.5 KB |
errno.h | -rw-r--r-- | 5.0 KB |
fcntl.h | -rw-r--r-- | 3.3 KB |
futex.h | -rw-r--r-- | 1.2 KB |
gpio.h | -rw-r--r-- | 4.3 KB |
ide_iops.h | -rw-r--r-- | 752 bytes |
int-l64.h | -rw-r--r-- | 1.3 KB |
int-ll64.h | -rw-r--r-- | 1.5 KB |
ioctl.h | -rw-r--r-- | 3.3 KB |
iomap.h | -rw-r--r-- | 2.7 KB |
irq_regs.h | -rw-r--r-- | 980 bytes |
kdebug.h | -rw-r--r-- | 128 bytes |
libata-portmap.h | -rw-r--r-- | 153 bytes |
local.h | -rw-r--r-- | 3.1 KB |
memory_model.h | -rw-r--r-- | 2.2 KB |
mm_hooks.h | -rw-r--r-- | 425 bytes |
mman.h | -rw-r--r-- | 1.6 KB |
mutex-dec.h | -rw-r--r-- | 3.4 KB |
mutex-null.h | -rw-r--r-- | 666 bytes |
mutex-xchg.h | -rw-r--r-- | 3.7 KB |
page.h | -rw-r--r-- | 410 bytes |
pci-dma-compat.h | -rw-r--r-- | 3.3 KB |
pci.h | -rw-r--r-- | 1.2 KB |
percpu.h | -rw-r--r-- | 2.2 KB |
pgtable-nopmd.h | -rw-r--r-- | 1.8 KB |
pgtable-nopud.h | -rw-r--r-- | 1.8 KB |
pgtable.h | -rw-r--r-- | 6.9 KB |
poll.h | -rw-r--r-- | 708 bytes |
resource.h | -rw-r--r-- | 2.8 KB |
rtc.h | -rw-r--r-- | 5.2 KB |
sections.h | -rw-r--r-- | 573 bytes |
siginfo.h | -rw-r--r-- | 8.2 KB |
signal.h | -rw-r--r-- | 787 bytes |
statfs.h | -rw-r--r-- | 803 bytes |
termios.h | -rw-r--r-- | 2.1 KB |
tlb.h | -rw-r--r-- | 3.8 KB |
topology.h | -rw-r--r-- | 2.0 KB |
uaccess.h | -rw-r--r-- | 702 bytes |
vmlinux.lds.h | -rw-r--r-- | 11.0 KB |
xor.h | -rw-r--r-- | 13.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...