diff options
| author | Wei Yongjun <[email protected]> | 2021-03-09 13:15:00 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2021-03-17 17:41:27 +0000 |
| commit | 41fff61d99c1b64136148336c6b46a04de692198 (patch) | |
| tree | c1400550609f9e0b6e416ceb74bb0ece0416fe31 /drivers/platform/surface/surface_aggregator_registry.c | |
| parent | docs: driver-api: Add Surface DTX driver documentation (diff) | |
| download | kernel-41fff61d99c1b64136148336c6b46a04de692198.tar.gz kernel-41fff61d99c1b64136148336c6b46a04de692198.zip | |
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 <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Reviewed-by: Maximilian Luz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_aggregator_registry.c')
| -rw-r--r-- | drivers/platform/surface/surface_aggregator_registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index cdb4a95af3e8..86cff5fce3cd 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -352,7 +352,7 @@ static struct attribute *ssam_base_hub_attrs[] = { NULL, }; -const struct attribute_group ssam_base_hub_group = { +static const struct attribute_group ssam_base_hub_group = { .attrs = ssam_base_hub_attrs, }; |
