On Thu, Dec 05, 2013 at 05:25:52PM +0100, Borislav Petkov wrote:
> From: Borislav Petkov <b...@suse.de>
> 
> Move to generic library and kill magic.h as it is needed only in fs.h.
> 
> Signed-off-by: Borislav Petkov <b...@suse.de>
> ---
>  tools/lib/api/Makefile                                     |  2 ++
>  tools/{perf/util => lib/api/fs}/fs.c                       | 11 ++++++++---
>  tools/{perf/util/include/linux/magic.h => lib/api/fs/fs.h} | 12 +++++-------
>  tools/perf/Makefile.perf                                   |  3 ---
>  tools/perf/tests/parse-events.c                            |  2 +-
>  tools/perf/util/cpumap.c                                   |  2 +-
>  tools/perf/util/fs.h                                       |  7 -------
>  tools/perf/util/pmu.c                                      |  2 +-
>  tools/perf/util/python-ext-sources                         |  2 +-
>  tools/perf/util/record.c                                   |  2 +-
>  10 files changed, 20 insertions(+), 25 deletions(-)
>  rename tools/{perf/util => lib/api/fs}/fs.c (91%)
>  rename tools/{perf/util/include/linux/magic.h => lib/api/fs/fs.h} (50%)
>  delete mode 100644 tools/perf/util/fs.h
> 
> diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
> index d749cdc8e1d4..2a354292d781 100644
> --- a/tools/lib/api/Makefile
> +++ b/tools/lib/api/Makefile
> @@ -8,8 +8,10 @@ LIB_H=
>  LIB_OBJS=
>  
>  LIB_H += fs/debugfs.h
> +LIB_H += fs/fs.h
>  
>  LIB_OBJS += $(OUTPUT)fs/debugfs.o
> +LIB_OBJS += $(OUTPUT)fs/fs.o
>  
>  LIBFILE = libapikfs.a
>  
> diff --git a/tools/perf/util/fs.c b/tools/lib/api/fs/fs.c
> similarity index 91%
> rename from tools/perf/util/fs.c
> rename to tools/lib/api/fs/fs.c
> index f5be1f26e724..ff8907275cfb 100644
> --- a/tools/perf/util/fs.c
> +++ b/tools/lib/api/fs/fs.c
> @@ -1,8 +1,13 @@
> +/* TODO merge/factor into debugfs.c */

I guess now above one should be:

 TODO merge/factor debugfs object in here

;-)

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to