Re: [PATCH] rust: Fix EXPORT_SYMBOL_RUST_GPL macro to follow guidelines

From: Miguel Ojeda
Date: Wed Dec 11 2024 - 13:28:50 EST


On Wed, Dec 11, 2024 at 7:16 PM <eisantosh95@xxxxxxxxx> wrote:
>
> From: Santosh Mahto <eisantosh95@xxxxxxxxx>
>
> Warning found by checkpatch.pl script.

Thanks for the patch!

Which warning? I guess you mean:

WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

But this is not a normal use of `EXPORT_SYMBOL*()`, and anyway the
patch would break the build since the name is not declared otherwise.

Did you try to build the kernel after the patch with Rust enabled?

Cheers,
Miguel