Re: [PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-04 Thread Andy Shevchenko
On Wed, 2012-10-03 at 14:39 -0400, Nick Bowler wrote: > On 2012-10-02 11:12 -0700, Greg KH wrote: > > On Tue, Oct 02, 2012 at 08:52:05PM +0300, Andy Shevchenko wrote: > > > On Tue, Oct 2, 2012 at 8:34 PM, Greg KH > > > wrote: [...] > > Well, if you want your kbasename() function to work like t

Re: [PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-03 Thread Nick Bowler
On 2012-10-02 11:12 -0700, Greg KH wrote: > On Tue, Oct 02, 2012 at 08:52:05PM +0300, Andy Shevchenko wrote: > > On Tue, Oct 2, 2012 at 8:34 PM, Greg KH wrote: > > > On Tue, Oct 02, 2012 at 06:00:54PM +0300, Andy Shevchenko wrote: [...] > > >> +/** > > >> + * kbasename - return the last part of a

Re: [PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-02 Thread Greg KH
On Tue, Oct 02, 2012 at 08:52:05PM +0300, Andy Shevchenko wrote: > On Tue, Oct 2, 2012 at 8:34 PM, Greg KH wrote: > > On Tue, Oct 02, 2012 at 06:00:54PM +0300, Andy Shevchenko wrote: > >> There are several places in kernel that use functionality like shell's > >> basename > >> function. Let's do

Re: [PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-02 Thread Andy Shevchenko
On Tue, Oct 2, 2012 at 8:34 PM, Greg KH wrote: > On Tue, Oct 02, 2012 at 06:00:54PM +0300, Andy Shevchenko wrote: >> There are several places in kernel that use functionality like shell's >> basename >> function. Let's do it common helper for them. >> >> Signed-off-by: Andy Shevchenko >> Cc: YAM

Re: [PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-02 Thread Greg KH
On Tue, Oct 02, 2012 at 06:00:54PM +0300, Andy Shevchenko wrote: > There are several places in kernel that use functionality like shell's > basename > function. Let's do it common helper for them. > > Signed-off-by: Andy Shevchenko > Cc: YAMANE Toshiaki > --- > include/linux/string.h | 11 ++

[PATCH 1/7] string: introduce helper to get base file name from given path

2012-10-02 Thread Andy Shevchenko
There are several places in kernel that use functionality like shell's basename function. Let's do it common helper for them. Signed-off-by: Andy Shevchenko Cc: YAMANE Toshiaki --- include/linux/string.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/string.h b