Thread (4 messages) flat view 4 messages, 2 authors, 2014-12-07

Re: [PATCH] arch: powerpc: kernel: signal_32.c: Remove unused function

From: Rickard Strandqvist <hidden>
Date: 2014-12-07 23:11:24
Also in: lkml

Hi

Ok, sorry :-(

But I really do not. I've hacked together a script that will scan all
the code for the function, and test builds with some different config
options turned on.


Kind regards
Rickard Strandqvist


2014-12-07 23:18 GMT+01:00 Richard Weinberger [off-list ref]:
Am 07.12.2014 um 23:07 schrieb Rickard Strandqvist:
quoted
Remove the function sys_debug_setcontext() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.
Please don't blindly trust code analysis tools.
The function you're removing *is* in use.

  LD      init/built-in.o
arch/powerpc/kernel/built-in.o: In function `sys_call_table':
(.rodata+0x744): undefined reference to `sys_debug_setcontext'
make: *** [vmlinux] Error 1

Thanks,
//richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help