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
8253pit.h -rw-r--r-- 129 bytes
Kbuild -rw-r--r-- 209 bytes
a.out.h -rw-r--r-- 2.5 KB
agp.h -rw-r--r-- 575 bytes
agp_backend.h -rw-r--r-- 909 bytes
atomic.h -rw-r--r-- 6.4 KB
auxvec.h -rw-r--r-- 651 bytes
barrier.h -rw-r--r-- 693 bytes
bitops.h -rw-r--r-- 8.0 KB
bug.h -rw-r--r-- 439 bytes
bugs.h -rw-r--r-- 294 bytes
byteorder.h -rw-r--r-- 1.3 KB
cache.h -rw-r--r-- 542 bytes
cacheflush.h -rw-r--r-- 2.6 KB
checksum.h -rw-r--r-- 2.0 KB
compiler.h -rw-r--r-- 4.4 KB
console.h -rw-r--r-- 2.0 KB
core_apecs.h -rw-r--r-- 16.9 KB
core_cia.h -rw-r--r-- 15.4 KB
core_irongate.h -rw-r--r-- 6.6 KB
core_lca.h -rw-r--r-- 11.3 KB
core_marvel.h -rw-r--r-- 9.1 KB
core_mcpcia.h -rw-r--r-- 11.4 KB
core_polaris.h -rw-r--r-- 2.9 KB
core_t2.h -rw-r--r-- 19.9 KB
core_titan.h -rw-r--r-- 11.2 KB
core_tsunami.h -rw-r--r-- 8.3 KB
core_wildfire.h -rw-r--r-- 8.4 KB
cputime.h -rw-r--r-- 118 bytes
current.h -rw-r--r-- 201 bytes
delay.h -rw-r--r-- 225 bytes
device.h -rw-r--r-- 129 bytes
div64.h -rw-r--r-- 31 bytes
dma-mapping.h -rw-r--r-- 2.7 KB
dma.h -rw-r--r-- 12.3 KB
elf.h -rw-r--r-- 5.7 KB
emergency-restart.h -rw-r--r-- 149 bytes
err_common.h -rw-r--r-- 3.2 KB
err_ev6.h -rw-r--r-- 116 bytes
err_ev7.h -rw-r--r-- 4.3 KB
errno.h -rw-r--r-- 5.1 KB
fcntl.h -rw-r--r-- 1.1 KB
floppy.h -rw-r--r-- 3.2 KB
fpu.h -rw-r--r-- 6.1 KB
futex.h -rw-r--r-- 82 bytes
gct.h -rw-r--r-- 1003 bytes
gentrap.h -rw-r--r-- 1.4 KB
hardirq.h -rw-r--r-- 828 bytes
hw_irq.h -rw-r--r-- 216 bytes
hwrpb.h -rw-r--r-- 6.9 KB
ide.h -rw-r--r-- 1002 bytes
io.h -rw-r--r-- 14.1 KB
io_trivial.h -rw-r--r-- 2.9 KB
ioctl.h -rw-r--r-- 2.2 KB
ioctls.h -rw-r--r-- 3.6 KB
ipcbuf.h -rw-r--r-- 575 bytes
irq.h -rw-r--r-- 2.4 KB
irq_regs.h -rw-r--r-- 34 bytes
jensen.h -rw-r--r-- 8.3 KB
kdebug.h -rw-r--r-- 32 bytes
kmap_types.h -rw-r--r-- 477 bytes
linkage.h -rw-r--r-- 86 bytes
local.h -rw-r--r-- 3.3 KB
machvec.h -rw-r--r-- 3.4 KB
mc146818rtc.h -rw-r--r-- 641 bytes
md.h -rw-r--r-- 251 bytes
mman.h -rw-r--r-- 2.3 KB
mmu.h -rw-r--r-- 164 bytes
mmu_context.h -rw-r--r-- 7.0 KB
mmzone.h -rw-r--r-- 3.1 KB
module.h -rw-r--r-- 448 bytes
msgbuf.h -rw-r--r-- 859 bytes
mutex.h -rw-r--r-- 308 bytes
namei.h -rw-r--r-- 376 bytes
page.h -rw-r--r-- 2.5 KB
pal.h -rw-r--r-- 935 bytes
param.h -rw-r--r-- 646 bytes
parport.h -rw-r--r-- 517 bytes
pci.h -rw-r--r-- 9.1 KB
percpu.h -rw-r--r-- 114 bytes
pgalloc.h -rw-r--r-- 1.5 KB
pgtable.h -rw-r--r-- 13.3 KB
poll.h -rw-r--r-- 30 bytes
posix_types.h -rw-r--r-- 3.2 KB
processor.h -rw-r--r-- 2.1 KB
ptrace.h -rw-r--r-- 2.0 KB
reg.h -rw-r--r-- 942 bytes
regdef.h -rw-r--r-- 1004 bytes
resource.h -rw-r--r-- 698 bytes
rtc.h -rw-r--r-- 142 bytes
rwsem.h -rw-r--r-- 5.6 KB
scatterlist.h -rw-r--r-- 404 bytes
sections.h -rw-r--r-- 128 bytes
segment.h -rw-r--r-- 132 bytes
semaphore.h -rw-r--r-- 3.1 KB
sembuf.h -rw-r--r-- 607 bytes
serial.h -rw-r--r-- 1006 bytes
setup.h -rw-r--r-- 87 bytes
sfp-machine.h -rw-r--r-- 2.9 KB
shmbuf.h -rw-r--r-- 1.0 KB
shmparam.h -rw-r--r-- 152 bytes
sigcontext.h -rw-r--r-- 828 bytes
siginfo.h -rw-r--r-- 169 bytes
signal.h -rw-r--r-- 3.8 KB
smp.h -rw-r--r-- 1.4 KB
socket.h -rw-r--r-- 1.6 KB
sockios.h -rw-r--r-- 434 bytes
spinlock.h -rw-r--r-- 3.1 KB
spinlock_types.h -rw-r--r-- 370 bytes
stat.h -rw-r--r-- 1012 bytes
statfs.h -rw-r--r-- 89 bytes
string.h -rw-r--r-- 2.0 KB
suspend.h -rw-r--r-- 107 bytes
sysinfo.h -rw-r--r-- 857 bytes
system.h -rw-r--r-- 21.5 KB
termbits.h -rw-r--r-- 4.6 KB
termios.h -rw-r--r-- 4.1 KB
thread_info.h -rw-r--r-- 3.8 KB
timex.h -rw-r--r-- 758 bytes
tlb.h -rw-r--r-- 394 bytes
tlbflush.h -rw-r--r-- 3.6 KB
topology.h -rw-r--r-- 835 bytes
types.h -rw-r--r-- 1.3 KB
uaccess.h -rw-r--r-- 14.3 KB
ucontext.h -rw-r--r-- 309 bytes
unaligned.h -rw-r--r-- 100 bytes
unistd.h -rw-r--r-- 14.5 KB
user.h -rw-r--r-- 2.1 KB
vga.h -rw-r--r-- 2.0 KB
xor.h -rw-r--r-- 21.7 KB

back to top