lkml.org 
[lkml]   [2016]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] Add EXPORT_MACRO_SYMBOL() for asm
On Sat, 22 Oct 2016 10:44:41 +1100
Nicholas Piggin <npiggin@gmail.com> wrote:

> > #ifdef CONFIG_FUNCTION_GRAPH_TRACER
> > diff --git a/include/asm-generic/export.h b/include/asm-generic/export.h
> > index 43199a049da5..cb86e746865e 100644
> > --- a/include/asm-generic/export.h
> > +++ b/include/asm-generic/export.h
> > @@ -90,5 +90,10 @@
> > __EXPORT_SYMBOL(name, KSYM(name),)
> > #define EXPORT_DATA_SYMBOL_GPL(name) \
> > __EXPORT_SYMBOL(name, KSYM(name),_gpl)
> > +/*
> > + * If "name" is a macro of a function and not a function itself,
> > + * it needs a second pass.
> > + */
> > +#define EXPORT_MACRO_SYMBOL(x) EXPORT_SYMBOL(x)
>
> Seems okay, but what about just calling it EXPORT_SYMBOL?


Actually, this doesn't work. There's some magic going on it
Makefile.build in the scripts directory that causes this to fail.

I have another patch I'll be sending on Monday that fixes this.

-- Steve

\
 
 \ /
  Last update: 2016-10-22 21:09    [W:0.060 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site