Messages in this thread | | | From | Andy Shevchenko <> | Subject | [PATCHv2 0/6] lib/string: introduce kbasename helper | Date | Wed, 3 Oct 2012 11:42:57 +0300 |
| |
There are several places in kernel that duplicate code to get last part of the pathname. This patchset introduces a helper.
Since v1: - fix changelog of the patch 1 - we are doing basname(3) alike helper - usb related patch temporary excluded from series (under discussion with Greg)
Andy Shevchenko (6): string: introduce helper to get base file name from given path lib: dynamic_debug: reuse kbasename() staging: rts_pstor: reuse kbasename() mm: reuse kbasename() functionality procfs: reuse kbasename() functionality trace: reuse kbasename() functionality
drivers/staging/rts_pstor/trace.h | 16 +++------------- fs/proc/proc_devtree.c | 7 ++----- include/linux/string.h | 11 +++++++++++ kernel/trace/trace_uprobe.c | 6 +++--- lib/dynamic_debug.c | 9 +-------- mm/memory.c | 8 +++----- 6 files changed, 23 insertions(+), 34 deletions(-)
-- 1.7.10.4
| |