OSDN Git Service

platform/surface: aggregator_registry: Make symbol 'ssam_base_hub_group' static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 9 Mar 2021 13:15:00 +0000 (13:15 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 17 Mar 2021 17:41:27 +0000 (18:41 +0100)
commit41fff61d99c1b64136148336c6b46a04de692198
treec1400550609f9e0b6e416ceb74bb0ece0416fe31
parentf614a1e23a0f7250324c3161d60f0f21cae44dbd
platform/surface: aggregator_registry: Make symbol 'ssam_base_hub_group' static

The sparse tool complains as follows:

drivers/platform/surface/surface_aggregator_registry.c:355:30: warning:
 symbol 'ssam_base_hub_group' was not declared. Should it be static?

This symbol is not used outside of surface_aggregator_registry.c, so this
commit marks it static.

Fixes: 797e78564634 ("platform/surface: aggregator_registry: Add base device hub")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210309131500.1885772-1-weiyongjun1@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface_aggregator_registry.c