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
cpu-sh2
cpu-sh2a
cpu-sh3
cpu-sh4
cpu-sh5
dreamcast
hd64465
landisk
sh03
.gitignore -rw-r--r-- 21 bytes
Kbuild -rw-r--r-- 178 bytes
a.out.h -rw-r--r-- 709 bytes
adc.h -rw-r--r-- 218 bytes
addrspace.h -rw-r--r-- 1.6 KB
atomic-grb.h -rw-r--r-- 4.5 KB
atomic-irq.h -rw-r--r-- 1.3 KB
atomic-llsc.h -rw-r--r-- 2.1 KB
atomic.h -rw-r--r-- 2.0 KB
auxvec.h -rw-r--r-- 954 bytes
bitops-grb.h -rw-r--r-- 6.1 KB
bitops-irq.h -rw-r--r-- 1.7 KB
bitops.h -rw-r--r-- 2.3 KB
bug.h -rw-r--r-- 1.7 KB
bugs.h -rw-r--r-- 1.3 KB
byteorder.h -rw-r--r-- 1.3 KB
cache.h -rw-r--r-- 1.2 KB
cacheflush.h -rw-r--r-- 2.9 KB
checksum.h -rw-r--r-- 88 bytes
checksum_32.h -rw-r--r-- 5.3 KB
checksum_64.h -rw-r--r-- 2.1 KB
clock.h -rw-r--r-- 1.6 KB
cmpxchg-grb.h -rw-r--r-- 2.0 KB
cmpxchg-irq.h -rw-r--r-- 796 bytes
cpu-features.h -rw-r--r-- 962 bytes
cputime.h -rw-r--r-- 109 bytes
current.h -rw-r--r-- 316 bytes
delay.h -rw-r--r-- 689 bytes
device.h -rw-r--r-- 129 bytes
div64.h -rw-r--r-- 31 bytes
dma-mapping.h -rw-r--r-- 5.0 KB
dma.h -rw-r--r-- 4.3 KB
dmabrg.h -rw-r--r-- 497 bytes
edosk7705.h -rw-r--r-- 1.1 KB
elf.h -rw-r--r-- 6.2 KB
emergency-restart.h -rw-r--r-- 149 bytes
entry-macros.S -rw-r--r-- 465 bytes
errno.h -rw-r--r-- 113 bytes
fb.h -rw-r--r-- 375 bytes
fcntl.h -rw-r--r-- 31 bytes
fixmap.h -rw-r--r-- 3.4 KB
flat.h -rw-r--r-- 791 bytes
fpu.h -rw-r--r-- 1.1 KB
freq.h -rw-r--r-- 476 bytes
futex-irq.h -rw-r--r-- 1.8 KB
futex.h -rw-r--r-- 1.8 KB
gpio.h -rw-r--r-- 451 bytes
hardirq.h -rw-r--r-- 410 bytes
hd64461.h -rw-r--r-- 12.2 KB
heartbeat.h -rw-r--r-- 324 bytes
hp6xx.h -rw-r--r-- 1.3 KB
hugetlb.h -rw-r--r-- 1.9 KB
hw_irq.h -rw-r--r-- 2.9 KB
i2c-sh7760.h -rw-r--r-- 423 bytes
ide.h -rw-r--r-- 350 bytes
ilsel.h -rw-r--r-- 887 bytes
io.h -rw-r--r-- 10.8 KB
io_generic.h -rw-r--r-- 2.1 KB
io_trapped.h -rw-r--r-- 1.4 KB
ioctl.h -rw-r--r-- 31 bytes
ioctls.h -rw-r--r-- 4.2 KB
ipcbuf.h -rw-r--r-- 634 bytes
irq.h -rw-r--r-- 1.2 KB
irq_regs.h -rw-r--r-- 34 bytes
irqflags.h -rw-r--r-- 710 bytes
irqflags_32.h -rw-r--r-- 1.6 KB
irqflags_64.h -rw-r--r-- 1.8 KB
kdebug.h -rw-r--r-- 138 bytes
kexec.h -rw-r--r-- 2.4 KB
kgdb.h -rw-r--r-- 1.9 KB
kmap_types.h -rw-r--r-- 477 bytes
kvm.h -rw-r--r-- 89 bytes
lboxre2.h -rw-r--r-- 626 bytes
linkage.h -rw-r--r-- 115 bytes
local.h -rw-r--r-- 114 bytes
machvec.h -rw-r--r-- 1.9 KB
magicpanelr2.h -rw-r--r-- 1.9 KB
mc146818rtc.h -rw-r--r-- 151 bytes
microdev.h -rw-r--r-- 3.7 KB
migor.h -rw-r--r-- 1.3 KB
mman.h -rw-r--r-- 617 bytes
mmu.h -rw-r--r-- 1.6 KB
mmu_context.h -rw-r--r-- 4.4 KB
mmu_context_32.h -rw-r--r-- 1003 bytes
mmu_context_64.h -rw-r--r-- 2.0 KB
mmzone.h -rw-r--r-- 1.2 KB
module.h -rw-r--r-- 1.0 KB
msgbuf.h -rw-r--r-- 984 bytes
mutex.h -rw-r--r-- 308 bytes
namei.h -rw-r--r-- 380 bytes
page.h -rw-r--r-- 5.6 KB
param.h -rw-r--r-- 427 bytes
parport.h -rw-r--r-- 442 bytes
pci.h -rw-r--r-- 3.7 KB
percpu.h -rw-r--r-- 114 bytes
pgalloc.h -rw-r--r-- 2.2 KB
pgtable.h -rw-r--r-- 4.0 KB
pgtable_32.h -rw-r--r-- 16.5 KB
pgtable_64.h -rw-r--r-- 11.3 KB
pm.h -rw-r--r-- 365 bytes
poll.h -rw-r--r-- 30 bytes
posix_types.h -rw-r--r-- 238 bytes
posix_types_32.h -rw-r--r-- 3.1 KB
posix_types_64.h -rw-r--r-- 3.4 KB
processor.h -rw-r--r-- 1.4 KB
processor_32.h -rw-r--r-- 5.0 KB
processor_64.h -rw-r--r-- 6.5 KB
ptrace.h -rw-r--r-- 2.6 KB
push-switch.h -rw-r--r-- 716 bytes
r7780rp.h -rw-r--r-- 9.6 KB
resource.h -rw-r--r-- 125 bytes
rtc.h -rw-r--r-- 326 bytes
rts7751r2d.h -rw-r--r-- 2.7 KB
rwsem.h -rw-r--r-- 4.1 KB
scatterlist.h -rw-r--r-- 759 bytes
sdk7780.h -rw-r--r-- 3.0 KB
se.h -rw-r--r-- 2.4 KB
se7206.h -rw-r--r-- 254 bytes
se7343.h -rw-r--r-- 2.6 KB
se7721.h -rw-r--r-- 2.1 KB
se7722.h -rw-r--r-- 3.9 KB
se7751.h -rw-r--r-- 2.2 KB
se7780.h -rw-r--r-- 3.9 KB
sections.h -rw-r--r-- 238 bytes
segment.h -rw-r--r-- 159 bytes
semaphore.h -rw-r--r-- 29 bytes
sembuf.h -rw-r--r-- 706 bytes
serial.h -rw-r--r-- 849 bytes
setup.h -rw-r--r-- 705 bytes
sfp-machine.h -rw-r--r-- 3.3 KB
sh_bios.h -rw-r--r-- 536 bytes
sh_keysc.h -rw-r--r-- 297 bytes
shmbuf.h -rw-r--r-- 1.1 KB
shmin.h -rw-r--r-- 153 bytes
shmparam.h -rw-r--r-- 629 bytes
sigcontext.h -rw-r--r-- 906 bytes
siginfo.h -rw-r--r-- 121 bytes
signal.h -rw-r--r-- 3.4 KB
smc37c93x.h -rw-r--r-- 5.5 KB
smp.h -rw-r--r-- 1.4 KB
snapgear.h -rw-r--r-- 2.0 KB
socket.h -rw-r--r-- 1.2 KB
sockios.h -rw-r--r-- 473 bytes
sparsemem.h -rw-r--r-- 404 bytes
spi.h -rw-r--r-- 226 bytes
spinlock.h -rw-r--r-- 4.8 KB
spinlock_types.h -rw-r--r-- 420 bytes
stat.h -rw-r--r-- 3.0 KB
statfs.h -rw-r--r-- 117 bytes
string.h -rw-r--r-- 84 bytes
string_32.h -rw-r--r-- 2.7 KB
string_64.h -rw-r--r-- 447 bytes
system.h -rw-r--r-- 5.1 KB
system_32.h -rw-r--r-- 2.7 KB
system_64.h -rw-r--r-- 1.1 KB
systemh7751.h -rw-r--r-- 2.2 KB
termbits.h -rw-r--r-- 4.5 KB
termios.h -rw-r--r-- 2.6 KB
thread_info.h -rw-r--r-- 3.9 KB
timer.h -rw-r--r-- 923 bytes
timex.h -rw-r--r-- 334 bytes
titan.h -rw-r--r-- 398 bytes
tlb.h -rw-r--r-- 555 bytes
tlb_64.h -rw-r--r-- 2.1 KB
tlbflush.h -rw-r--r-- 1.7 KB
topology.h -rw-r--r-- 1.1 KB
types.h -rw-r--r-- 542 bytes
uaccess.h -rw-r--r-- 826 bytes
uaccess_32.h -rw-r--r-- 12.3 KB
uaccess_64.h -rw-r--r-- 7.9 KB
ubc.h -rw-r--r-- 1.5 KB
ucontext.h -rw-r--r-- 279 bytes
unaligned.h -rw-r--r-- 581 bytes
unistd.h -rw-r--r-- 84 bytes
unistd_32.h -rw-r--r-- 10.3 KB
unistd_64.h -rw-r--r-- 11.4 KB
user.h -rw-r--r-- 2.5 KB
vga.h -rw-r--r-- 98 bytes
watchdog.h -rw-r--r-- 2.7 KB
xor.h -rw-r--r-- 29 bytes

back to top