treewide: Add and use vsprintf extension %pSR
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | vsprintf: Add extension %pSR - print_symbol replacementDocumentation/ lib/ | +15 | 0 replies | |
| 2/26 | alpha: Convert print_symbol to %pSRarch/ | +3 | 0 replies | |
| 3/26 | arm: Convert print_symbol to %pSRarch/ | +2 | 0 replies | |
| 4/26 | arm64: Convert print_symbol to %pSRarch/ | +2 | 1 reply | |
| 5/26 | avr32: Convert print_symbol to %pSRarch/ | +7 | 0 replies | |
| 6/26 | c6x: Convert print_symbol to %pSRarch/ | +1 | 0 replies | |
| 7/26 | ia64: Convert print_symbol to %pSRarch/ | +5 | 0 replies | |
| 8/26 | m32r: Convert print_symbol to %pSRarch/ | +2 | 4 replies | |
| 9/26 | mn10300: Convert print_symbol to %pSRarch/ | +4 | 0 replies | |
| 10/26 | openrisc: Convert print_symbol to %pSRarch/ | +2 | 0 replies | |
| 11/26 | powerpc: Convert print_symbol to %pSRarch/ | +5 | 3 replies | |
| 12/26 | s390: Convert print_symbol to %pSRarch/ | +16 | 1 reply | |
| 13/26 | sh: Convert print_symbol to %pSRarch/ | +2 | 0 replies | |
| 14/26 | um: Convert print_symbol to %pSRarch/ | +2 | 0 replies | |
| 15/26 | unicore32: Convert print_symbol to %pSRarch/ | +3 | 4 replies | |
| 16/26 | x86: Convert print_symbol to %pSRarch/ arch/ arch/ +2 more | +15 | 12 replies | |
| 17/26 | xtensa: Convert print_symbol to %pSRarch/ | +2 | 0 replies | |
| 18/26 | drivers: base: Convert print_symbol to %pSRdrivers/ | +2 | 0 replies | |
| 19/26 | gfs2: Convert print_symbol to %pSRfs/ fs/ | +4 | 2 replies | |
| 20/26 | sysfs: Convert print_symbol to %pSRfs/ | +2 | 0 replies | |
| 21/26 | irq: Convert print_symbol to %pSRkernel/ | +7 | 0 replies | |
| 22/26 | smp_processor_id: Convert print_symbol to %pSRlib/ | +1 | 0 replies | |
| 23/26 | mm: Convert print_symbol to %pSRmm/ mm/ | +7 | 2 replies | |
| 24/26 | xtensa: Convert print_symbol to %pSRDocumentation/ Documentation/ | +4 | 0 replies | |
| 25/26 | x86: head_64.S: Use vsprintf extension %pSR not print_symbolarch/ | +2 | 0 replies | |
| 26/26 | kallsyms: Remove print_symbolinclude/ kernel/ | +0 | 0 replies |
Reviews trailers per patch
7 of 26 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Christoph Lameter | Borislav Petkov | Hirokazu Takata | Guan Xuetao | Steven Whitehouse | Arnd Bergmann | Catalin Marinas | Tony Luck |
|---|---|---|---|---|---|---|---|---|
| Series | A-b | A-b | ||||||
| 1/26 | ||||||||
| 2/26 | ||||||||
| 3/26 | ||||||||
| 4/26 | A-b | |||||||
| 5/26 | ||||||||
| 6/26 | ||||||||
| 7/26 | ||||||||
| 8/26 | A-b | |||||||
| 9/26 | ||||||||
| 10/26 | ||||||||
| 11/26 | A-b | |||||||
| 12/26 | ||||||||
| 13/26 | ||||||||
| 14/26 | ||||||||
| 15/26 | A-b | |||||||
| 16/26 | A-b | |||||||
| 17/26 | ||||||||
| 18/26 | ||||||||
| 19/26 | A-b | |||||||
| 20/26 | ||||||||
| 21/26 | ||||||||
| 22/26 | ||||||||
| 23/26 | A-b | |||||||
| 24/26 | ||||||||
| 25/26 | ||||||||
| 26/26 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.
Cover letter [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR
Remove the somewhat awkward uses of print_symbol and convert all the existing uses to a new vsprintf pointer type of %pSR.
print_symbol can be interleaved when it is used in a sequence like:
printk("something: ...");
print_symbol("%s", addr);
printk("\n");Instead use:
printk("something: %pSR\n", (void *)addr);Add a new %p[SsFf]R vsprintf extension that can perform the same symbol function/address/offset formatting as print_symbol to reduce the number and styles of message logging functions.
print_symbol used __builtin_extract_return_addr for those architectures like S/390 and SPARC that have offset or masked addressing. %p[FfSs]R uses the same gcc __builtin
Joe Perches (26):
vsprintf: Add extension %pSR - print_symbol replacement
alpha: Convert print_symbol to %pSR
arm: Convert print_symbol to %pSR
arm64: Convert print_symbol to %pSR
avr32: Convert print_symbol to %pSR
c6x: Convert print_symbol to %pSR
ia64: Convert print_symbol to %pSR
m32r: Convert print_symbol to %pSR
mn10300: Convert print_symbol to %pSR
openrisc: Convert print_symbol to %pSR
powerpc: Convert print_symbol to %pSR
s390: Convert print_symbol to %pSR
sh: Convert print_symbol to %pSR
um: Convert print_symbol to %pSR
unicore32: Convert print_symbol to %pSR
x86: Convert print_symbol to %pSR
xtensa: Convert print_symbol to %pSR
drivers: base: Convert print_symbol to %pSR
gfs2: Convert print_symbol to %pSR
sysfs: Convert print_symbol to %pSR
irq: Convert print_symbol to %pSR
smp_processor_id: Convert print_symbol to %pSR
mm: Convert print_symbol to %pSR
xtensa: Convert print_symbol to %pSR
x86: head_64.S: Use vsprintf extension %pSR not print_symbol
kallsyms: Remove print_symbol
Documentation/filesystems/sysfs.txt | 4 +- Documentation/printk-formats.txt | 2 + Documentation/zh_CN/filesystems/sysfs.txt | 4 +- arch/alpha/kernel/traps.c | 8 ++---- arch/arm/kernel/process.c | 4 +- arch/arm64/kernel/process.c | 4 +- arch/avr32/kernel/process.c | 25 ++++++----------------- arch/c6x/kernel/traps.c | 3 +- arch/ia64/kernel/process.c | 13 ++++------- arch/m32r/kernel/traps.c | 6 +--- arch/mn10300/kernel/traps.c | 8 +++--- arch/openrisc/kernel/traps.c | 7 +---- arch/powerpc/platforms/cell/spu_callbacks.c | 12 ++++------ arch/s390/kernel/traps.c | 28 +++++++++++++++----------- arch/sh/kernel/process_32.c | 4 +- arch/um/kernel/sysrq.c | 6 +--- arch/unicore32/kernel/process.c | 5 ++- arch/x86/kernel/cpu/mcheck/mce.c | 13 ++++++----- arch/x86/kernel/dumpstack.c | 5 +-- arch/x86/kernel/head_64.S | 4 +- arch/x86/kernel/process_32.c | 2 +- arch/x86/mm/mmio-mod.c | 4 +- arch/x86/um/sysrq_32.c | 9 ++----- arch/xtensa/kernel/traps.c | 6 +--- drivers/base/core.c | 4 +- fs/gfs2/glock.c | 4 +- fs/gfs2/trans.c | 3 +- fs/sysfs/file.c | 4 +- include/linux/kallsyms.h | 18 ----------------- kernel/irq/debug.h | 15 ++++++------- kernel/kallsyms.c | 11 ---------- lib/smp_processor_id.c | 2 +- lib/vsprintf.c | 18 ++++++++++++---- mm/memory.c | 8 +++--- mm/slab.c | 8 ++---- 35 files changed, 117 insertions(+), 164 deletions(-)
Signature · 1 line
1.7.8.112.g3fd21