summaryrefslogtreecommitdiffstats
path: root/kernel/rcutorture.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2008-11-19 15:36:36 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-19 18:49:58 -0800
commit966c8c12dc9e77f931e2281ba25d2f0244b06949 (patch)
tree8914c842252f6872cca006b482d32ee7a12da808 /kernel/rcutorture.c
parent3fa59dfbc3b223f02c26593be69ce6fc9a940405 (diff)
downloadop-kernel-dev-966c8c12dc9e77f931e2281ba25d2f0244b06949.zip
op-kernel-dev-966c8c12dc9e77f931e2281ba25d2f0244b06949.tar.gz
sprint_symbol(): use less stack
sprint_symbol(), itself used when dumping stacks, has been wasting 128 bytes of stack: lookup the symbol directly into the buffer supplied by the caller, instead of using a locally declared namebuf. I believe the name != buffer strcpy() is obsolete: the design here dates from when module symbol lookup pointed into a supposedly const but sadly volatile table; nowadays it copies, but an uncalled strcpy() looks better here than the risk of a recursive BUG_ON(). Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/rcutorture.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud