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 |
---|---|---|
arch-v10 | ||
arch-v32 | ||
Kbuild | -rw-r--r-- | 245 bytes |
a.out.h | -rw-r--r-- | 907 bytes |
atomic.h | -rw-r--r-- | 3.5 KB |
auxvec.h | -rw-r--r-- | 62 bytes |
axisflashmap.h | -rw-r--r-- | 1.9 KB |
bitops.h | -rw-r--r-- | 4.3 KB |
bug.h | -rw-r--r-- | 73 bytes |
bugs.h | -rw-r--r-- | 300 bytes |
byteorder.h | -rw-r--r-- | 553 bytes |
cache.h | -rw-r--r-- | 98 bytes |
cacheflush.h | -rw-r--r-- | 1.3 KB |
checksum.h | -rw-r--r-- | 2.0 KB |
cputime.h | -rw-r--r-- | 115 bytes |
current.h | -rw-r--r-- | 268 bytes |
delay.h | -rw-r--r-- | 502 bytes |
device.h | -rw-r--r-- | 129 bytes |
div64.h | -rw-r--r-- | 31 bytes |
dma-mapping.h | -rw-r--r-- | 3.7 KB |
dma.h | -rw-r--r-- | 423 bytes |
elf.h | -rw-r--r-- | 2.8 KB |
emergency-restart.h | -rw-r--r-- | 149 bytes |
errno.h | -rw-r--r-- | 84 bytes |
eshlibld.h | -rw-r--r-- | 3.5 KB |
ethernet.h | -rw-r--r-- | 860 bytes |
etraxgpio.h | -rw-r--r-- | 6.2 KB |
etraxi2c.h | -rw-r--r-- | 980 bytes |
fasttimer.h | -rw-r--r-- | 1.1 KB |
fb.h | -rw-r--r-- | 205 bytes |
fcntl.h | -rw-r--r-- | 31 bytes |
futex.h | -rw-r--r-- | 82 bytes |
hardirq.h | -rw-r--r-- | 599 bytes |
hw_irq.h | -rw-r--r-- | 53 bytes |
ide.h | -rw-r--r-- | 26 bytes |
io.h | -rw-r--r-- | 4.7 KB |
ioctl.h | -rw-r--r-- | 31 bytes |
ioctls.h | -rw-r--r-- | 2.8 KB |
ipcbuf.h | -rw-r--r-- | 631 bytes |
irq.h | -rw-r--r-- | 159 bytes |
irq_regs.h | -rw-r--r-- | 34 bytes |
kdebug.h | -rw-r--r-- | 32 bytes |
kmap_types.h | -rw-r--r-- | 364 bytes |
kvm.h | -rw-r--r-- | 95 bytes |
linkage.h | -rw-r--r-- | 86 bytes |
local.h | -rw-r--r-- | 31 bytes |
mman.h | -rw-r--r-- | 658 bytes |
mmu.h | -rw-r--r-- | 120 bytes |
mmu_context.h | -rw-r--r-- | 776 bytes |
module.h | -rw-r--r-- | 220 bytes |
msgbuf.h | -rw-r--r-- | 1016 bytes |
mutex.h | -rw-r--r-- | 308 bytes |
namei.h | -rw-r--r-- | 358 bytes |
page.h | -rw-r--r-- | 2.7 KB |
param.h | -rw-r--r-- | 485 bytes |
pci.h | -rw-r--r-- | 1.9 KB |
percpu.h | -rw-r--r-- | 108 bytes |
pgalloc.h | -rw-r--r-- | 1.3 KB |
pgtable.h | -rw-r--r-- | 9.7 KB |
poll.h | -rw-r--r-- | 30 bytes |
posix_types.h | -rw-r--r-- | 1.9 KB |
processor.h | -rw-r--r-- | 2.0 KB |
ptrace.h | -rw-r--r-- | 333 bytes |
resource.h | -rw-r--r-- | 93 bytes |
rs485.h | -rw-r--r-- | 454 bytes |
rtc.h | -rw-r--r-- | 3.3 KB |
scatterlist.h | -rw-r--r-- | 553 bytes |
sections.h | -rw-r--r-- | 126 bytes |
segment.h | -rw-r--r-- | 109 bytes |
semaphore.h | -rw-r--r-- | 29 bytes |
sembuf.h | -rw-r--r-- | 697 bytes |
setup.h | -rw-r--r-- | 83 bytes |
shmbuf.h | -rw-r--r-- | 1.2 KB |
shmparam.h | -rw-r--r-- | 193 bytes |
sigcontext.h | -rw-r--r-- | 690 bytes |
siginfo.h | -rw-r--r-- | 90 bytes |
signal.h | -rw-r--r-- | 3.5 KB |
smp.h | -rw-r--r-- | 212 bytes |
socket.h | -rw-r--r-- | 1.3 KB |
sockios.h | -rw-r--r-- | 343 bytes |
spinlock.h | -rw-r--r-- | 31 bytes |
stat.h | -rw-r--r-- | 1.8 KB |
statfs.h | -rw-r--r-- | 87 bytes |
string.h | -rw-r--r-- | 320 bytes |
sync_serial.h | -rw-r--r-- | 2.9 KB |
system.h | -rw-r--r-- | 2.4 KB |
termbits.h | -rw-r--r-- | 5.6 KB |
termios.h | -rw-r--r-- | 2.6 KB |
thread_info.h | -rw-r--r-- | 3.1 KB |
timex.h | -rw-r--r-- | 398 bytes |
tlb.h | -rw-r--r-- | 418 bytes |
tlbflush.h | -rw-r--r-- | 1.2 KB |
topology.h | -rw-r--r-- | 128 bytes |
types.h | -rw-r--r-- | 492 bytes |
uaccess.h | -rw-r--r-- | 11.3 KB |
ucontext.h | -rw-r--r-- | 283 bytes |
unaligned.h | -rw-r--r-- | 306 bytes |
unistd.h | -rw-r--r-- | 10.3 KB |
user.h | -rw-r--r-- | 2.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...