[PATCH] powerpc: Export mmu_feature_keys[] as non-GPL

Michael Ellerman patch-notifications at ellerman.id.au
Tue May 24 21:08:35 AEST 2022


On Tue, 29 Mar 2022 16:57:09 +0800, Kevin Hao wrote:
> When the mmu_feature_keys[] was introduced in the commit c12e6f24d413
> ("powerpc: Add option to use jump label for mmu_has_feature()"),
> it is unlikely that it would be used either directly or indirectly in
> the out of tree modules. So we export it as GPL only. But with the
> evolution of the codes, especially the PPC_KUAP support, it may be
> indirectly referenced by some primitive macro or inline functions such
> as get_user() or __copy_from_user_inatomic(), this will make it
> impossible to build many non GPL modules (such as ZFS) on ppc
> architecture. Fix this by exposing the mmu_feature_keys[] to the
> non-GPL modules too.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: Export mmu_feature_keys[] as non-GPL
      https://git.kernel.org/powerpc/c/d9e5c3e9e75162f845880535957b7fd0b4637d23

cheers


More information about the Linuxppc-dev mailing list