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
History
File Mode Size
platform-iss
variant-fsf
Kbuild -rw-r--r-- 39 bytes
a.out.h -rw-r--r-- 625 bytes
asmmacro.h -rw-r--r-- 2.7 KB
atomic.h -rw-r--r-- 7.2 KB
auxvec.h -rw-r--r-- 60 bytes
bitops.h -rw-r--r-- 2.8 KB
bootparam.h -rw-r--r-- 1.5 KB
bug.h -rw-r--r-- 400 bytes
bugs.h -rw-r--r-- 451 bytes
byteorder.h -rw-r--r-- 2.4 KB
cache.h -rw-r--r-- 932 bytes
cacheasm.h -rw-r--r-- 3.2 KB
cacheflush.h -rw-r--r-- 4.6 KB
checksum.h -rw-r--r-- 6.0 KB
coprocessor.h -rw-r--r-- 5.1 KB
cpumask.h -rw-r--r-- 381 bytes
cputime.h -rw-r--r-- 118 bytes
current.h -rw-r--r-- 677 bytes
delay.h -rw-r--r-- 1.1 KB
device.h -rw-r--r-- 129 bytes
div64.h -rw-r--r-- 371 bytes
dma-mapping.h -rw-r--r-- 4.2 KB
dma.h -rw-r--r-- 1.8 KB
elf.h -rw-r--r-- 5.7 KB
emergency-restart.h -rw-r--r-- 149 bytes
errno.h -rw-r--r-- 371 bytes
fb.h -rw-r--r-- 205 bytes
fcntl.h -rw-r--r-- 31 bytes
futex.h -rw-r--r-- 31 bytes
hardirq.h -rw-r--r-- 815 bytes
highmem.h -rw-r--r-- 362 bytes
hw_irq.h -rw-r--r-- 320 bytes
ide.h -rw-r--r-- 674 bytes
io.h -rw-r--r-- 5.6 KB
ioctl.h -rw-r--r-- 31 bytes
ioctls.h -rw-r--r-- 4.0 KB
ipcbuf.h -rw-r--r-- 842 bytes
irq.h -rw-r--r-- 641 bytes
irq_regs.h -rw-r--r-- 34 bytes
kdebug.h -rw-r--r-- 32 bytes
kmap_types.h -rw-r--r-- 588 bytes
kvm.h -rw-r--r-- 101 bytes
linkage.h -rw-r--r-- 377 bytes
local.h -rw-r--r-- 371 bytes
mman.h -rw-r--r-- 3.0 KB
mmu.h -rw-r--r-- 406 bytes
mmu_context.h -rw-r--r-- 2.9 KB
module.h -rw-r--r-- 639 bytes
msgbuf.h -rw-r--r-- 1.5 KB
mutex.h -rw-r--r-- 308 bytes
namei.h -rw-r--r-- 589 bytes
page.h -rw-r--r-- 5.0 KB
param.h -rw-r--r-- 748 bytes
pci-bridge.h -rw-r--r-- 2.2 KB
pci.h -rw-r--r-- 2.2 KB
percpu.h -rw-r--r-- 382 bytes
pgalloc.h -rw-r--r-- 1.8 KB
pgtable.h -rw-r--r-- 13.3 KB
platform.h -rw-r--r-- 2.0 KB
poll.h -rw-r--r-- 446 bytes
posix_types.h -rw-r--r-- 3.2 KB
processor.h -rw-r--r-- 5.7 KB
ptrace.h -rw-r--r-- 3.9 KB
regs.h -rw-r--r-- 4.2 KB
resource.h -rw-r--r-- 379 bytes
rmap.h -rw-r--r-- 345 bytes
rwsem.h -rw-r--r-- 3.6 KB
scatterlist.h -rw-r--r-- 984 bytes
sections.h -rw-r--r-- 386 bytes
segment.h -rw-r--r-- 374 bytes
semaphore.h -rw-r--r-- 29 bytes
sembuf.h -rw-r--r-- 1.2 KB
serial.h -rw-r--r-- 447 bytes
setup.h -rw-r--r-- 348 bytes
shmbuf.h -rw-r--r-- 2.1 KB
shmparam.h -rw-r--r-- 561 bytes
sigcontext.h -rw-r--r-- 618 bytes
siginfo.h -rw-r--r-- 381 bytes
signal.h -rw-r--r-- 3.9 KB
smp.h -rw-r--r-- 601 bytes
socket.h -rw-r--r-- 1.5 KB
sockios.h -rw-r--r-- 800 bytes
spinlock.h -rw-r--r-- 380 bytes
stat.h -rw-r--r-- 1.7 KB
statfs.h -rw-r--r-- 370 bytes
string.h -rw-r--r-- 2.7 KB
syscall.h -rw-r--r-- 1.6 KB
system.h -rw-r--r-- 5.6 KB
termbits.h -rw-r--r-- 4.8 KB
termios.h -rw-r--r-- 2.9 KB
thread_info.h -rw-r--r-- 4.5 KB
timex.h -rw-r--r-- 2.4 KB
tlb.h -rw-r--r-- 1.1 KB
tlbflush.h -rw-r--r-- 4.9 KB
topology.h -rw-r--r-- 386 bytes
types.h -rw-r--r-- 827 bytes
uaccess.h -rw-r--r-- 14.0 KB
ucontext.h -rw-r--r-- 540 bytes
unaligned.h -rw-r--r-- 905 bytes
unistd.h -rw-r--r-- 21.0 KB
user.h -rw-r--r-- 507 bytes
vga.h -rw-r--r-- 434 bytes
xor.h -rw-r--r-- 341 bytes

back to top