[PATCH] drm/client: remove the exporting of drm_client_close

Emil Velikov emil.l.velikov at gmail.com
Thu Jul 4 14:07:22 UTC 2019


On Thu, 4 Jul 2019 at 08:27, Denis Efremov <efremov at linux.com> wrote:
>
> The function drm_client_close is declared as static and marked as
> EXPORT_SYMBOL. It's a bit confusing for an internal function to be
> exported. The area of visibility for such function is its .c file
> and all other modules. Other *.c files of the same module can't use it,
> despite all other modules can. Relying on the fact that this is the
> internal function and it's not a crucial part of the API, the patch
> removes the EXPORT_SYMBOL marking of drm_client_close.
>
> Signed-off-by: Denis Efremov <efremov at linux.com>

Nice one:
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

Out of curiosity: Did you use some tool to spot this?

-Emil


More information about the dri-devel mailing list