Re: [PATCH 2/5] audit: export symbol for use with xt_AUDIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mardi 18 janvier 2011 Ã 16:16 +0100, Jan Engelhardt a Ãcrit :
> When xt_AUDIT is built as a module, modpost reports a problem.
> 
> 	MODPOST 322 modules
> 	ERROR: "audit_enabled" [net/netfilter/x_tables.ko] undefined!
> 	WARNING: modpost: Found 1 section mismatch(es).
> 
> Cc: Thomas Graf <tgraf@xxxxxxxxxx>
> Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
> ---
>  kernel/audit.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/kernel/audit.c b/kernel/audit.c
> index 77770a0..5842f65 100644
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -74,6 +74,8 @@ static int	audit_initialized;
>  int		audit_enabled;
>  int		audit_ever_enabled;
>  
> +EXPORT_SYMBOL_GPL(audit_enabled);
> +
>  /* Default state when kernel boots without any parameters. */
>  static int	audit_default;
>  

minor nit : EXPORT_SYMBOL_GPL() should immediately follow the symbol

int		audit_enabled;
EXPORT_SYMBOL_GPL(audit_enabled);



--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux