Re: EXPORTS_SYMBOLs that are in assembly?

From: Andy Whitcroft
Date: Mon Jan 14 2008 - 14:24:28 EST


On Sun, Jan 13, 2008 at 08:41:20PM -0500, Steven Rostedt wrote:
>
> Hi guys,
>
> Just wondering what the proper way to export a symbol that is defined in
> assembly? Or is there some kind of annotation I can add in comment form
> that will let checkpatch know the variable is not in C?
>
> Here's what I'm getting:
>
> ./scripts/checkpatch.pl patches/`quilt top`
> WARNING: EXPORT_SYMBOL(foo); should immediately follow its
> function/variable
> #197: FILE: lib/tracing/mcount.c:42:
> +EXPORT_SYMBOL_GPL(mcount);
>
> total: 0 errors, 1 warnings, 316 lines checked

Could you send me a fuller example fragment defining 'foo' as an
example? It is entirly possible you are doing it right and this is an
'ignore checkpatch' situation.

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