Revision 0da2f0f164f098bb4447c714b552ac1681b2d6e8 authored by Yoann Padioleau on 06 July 2007, 09:39:56 UTC, committed by Linus Torvalds on 06 July 2007, 17:23:43 UTC
In 7d12e780e003f93433d49ce78cfedf4b4c52adc5 David Howells performed
this evolution:
 "IRQ: Maintain regs pointer globally rather than passing to IRQ handlers"

He correctly updated many of the function definitions that were using this
extra regs pointer parameter but forgot to update some caller sites of
those functions.  The reason the modifications was not properly done on all
drivers is that some drivers were rarely compiled because they are for
AMIGA, or that some code sites were inside #ifdefs where the option is not
set or inside #if 0.

Here is the semantic patch that found the occurences
and fixed the problem.

@ rule1 @
identifier fn;
identifier irq, dev_id;
typedef irqreturn_t;
@@

static irqreturn_t fn(int irq, void *dev_id)
{
   ...
}

@@
identifier rule1.fn;
expression E1, E2, E3;
@@

 fn(E1, E2
-   ,E3
   )

Signed-off-by: Yoann Padioleau <padator@wanadoo.fr>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 071922c
History
File Mode Size
m32104ut
m32700ut
mappi2
mappi3
opsput
Kbuild -rw-r--r-- 39 bytes
a.out.h -rw-r--r-- 768 bytes
addrspace.h -rw-r--r-- 1.7 KB
assembler.h -rw-r--r-- 4.0 KB
atomic.h -rw-r--r-- 7.4 KB
auxvec.h -rw-r--r-- 91 bytes
bitops.h -rw-r--r-- 6.1 KB
bug.h -rw-r--r-- 76 bytes
bugs.h -rw-r--r-- 371 bytes
byteorder.h -rw-r--r-- 375 bytes
cache.h -rw-r--r-- 183 bytes
cachectl.h -rw-r--r-- 700 bytes
cacheflush.h -rw-r--r-- 3.0 KB
checksum.h -rw-r--r-- 4.9 KB
cputime.h -rw-r--r-- 115 bytes
current.h -rw-r--r-- 274 bytes
delay.h -rw-r--r-- 693 bytes
device.h -rw-r--r-- 129 bytes
div64.h -rw-r--r-- 31 bytes
dma-mapping.h -rw-r--r-- 147 bytes
dma.h -rw-r--r-- 242 bytes
elf.h -rw-r--r-- 3.7 KB
emergency-restart.h -rw-r--r-- 149 bytes
errno.h -rw-r--r-- 116 bytes
fcntl.h -rw-r--r-- 31 bytes
flat.h -rw-r--r-- 4.3 KB
futex.h -rw-r--r-- 82 bytes
hardirq.h -rw-r--r-- 752 bytes
hw_irq.h -rw-r--r-- 87 bytes
ide.h -rw-r--r-- 1.5 KB
io.h -rw-r--r-- 5.4 KB
ioctl.h -rw-r--r-- 31 bytes
ioctls.h -rw-r--r-- 2.6 KB
ipc.h -rw-r--r-- 29 bytes
ipcbuf.h -rw-r--r-- 631 bytes
irq.h -rw-r--r-- 2.9 KB
irq_regs.h -rw-r--r-- 34 bytes
kdebug.h -rw-r--r-- 32 bytes
kmap_types.h -rw-r--r-- 462 bytes
linkage.h -rw-r--r-- 138 bytes
local.h -rw-r--r-- 107 bytes
m32102.h -rw-r--r-- 14.7 KB
m32r.h -rw-r--r-- 4.7 KB
m32r_mp_fpga.h -rw-r--r-- 14.8 KB
mc146818rtc.h -rw-r--r-- 632 bytes
mman.h -rw-r--r-- 616 bytes
mmu.h -rw-r--r-- 396 bytes
mmu_context.h -rw-r--r-- 4.2 KB
mmzone.h -rw-r--r-- 1.5 KB
module.h -rw-r--r-- 202 bytes
msgbuf.h -rw-r--r-- 986 bytes
mutex.h -rw-r--r-- 308 bytes
namei.h -rw-r--r-- 333 bytes
page.h -rw-r--r-- 2.6 KB
param.h -rw-r--r-- 451 bytes
pci.h -rw-r--r-- 141 bytes
percpu.h -rw-r--r-- 126 bytes
pgalloc.h -rw-r--r-- 1.6 KB
pgtable-2level.h -rw-r--r-- 2.4 KB
pgtable.h -rw-r--r-- 10.7 KB
poll.h -rw-r--r-- 30 bytes
posix_types.h -rw-r--r-- 3.1 KB
processor.h -rw-r--r-- 3.5 KB
ptrace.h -rw-r--r-- 3.5 KB
resource.h -rw-r--r-- 129 bytes
rtc.h -rw-r--r-- 2.0 KB
s1d13806.h -rw-r--r-- 9.8 KB
scatterlist.h -rw-r--r-- 482 bytes
sections.h -rw-r--r-- 149 bytes
segment.h -rw-r--r-- 189 bytes
semaphore.h -rw-r--r-- 3.5 KB
sembuf.h -rw-r--r-- 708 bytes
serial.h -rw-r--r-- 148 bytes
setup.h -rw-r--r-- 1.1 KB
shmbuf.h -rw-r--r-- 1.1 KB
shmparam.h -rw-r--r-- 158 bytes
sigcontext.h -rw-r--r-- 1.0 KB
siginfo.h -rw-r--r-- 112 bytes
signal.h -rw-r--r-- 3.5 KB
smp.h -rw-r--r-- 3.5 KB
socket.h -rw-r--r-- 1.2 KB
sockios.h -rw-r--r-- 366 bytes
spinlock.h -rw-r--r-- 7.6 KB
spinlock_types.h -rw-r--r-- 477 bytes
stat.h -rw-r--r-- 1.9 KB
statfs.h -rw-r--r-- 121 bytes
string.h -rw-r--r-- 339 bytes
syscall.h -rw-r--r-- 213 bytes
system.h -rw-r--r-- 9.6 KB
termbits.h -rw-r--r-- 4.2 KB
termios.h -rw-r--r-- 2.5 KB
thread_info.h -rw-r--r-- 4.9 KB
timex.h -rw-r--r-- 542 bytes
tlb.h -rw-r--r-- 444 bytes
tlbflush.h -rw-r--r-- 3.0 KB
topology.h -rw-r--r-- 128 bytes
types.h -rw-r--r-- 1.1 KB
uaccess.h -rw-r--r-- 20.6 KB
ucontext.h -rw-r--r-- 282 bytes
unaligned.h -rw-r--r-- 509 bytes
unistd.h -rw-r--r-- 8.4 KB
user.h -rw-r--r-- 2.1 KB
vga.h -rw-r--r-- 397 bytes
xor.h -rw-r--r-- 109 bytes

back to top