soc: qcom: pdr: use static for servreg_* variables
authorTom Rix <trix@redhat.com>
Fri, 22 Apr 2022 17:38:06 +0000 (13:38 -0400)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 6 May 2022 03:08:15 +0000 (22:08 -0500)
commit28e3dc8f8cd37eedc14e97e80a7a2e33359491df
treed2ea5a84c29cd5f645c049e6d9d77382ca9fd5f1
parentec69dfbdc426f22a9557e5c5408d7902fe0e0144
soc: qcom: pdr: use static for servreg_* variables

Sparse reports this repesentative issue
pdr_internal.h:31:22: warning: symbol 'servreg_location_entry_ei' was not declared. Should it be static?
Similar for other servreg_*

Global variables should not be defined in header files.
This only works because pdr_internal.h is only included
by pdr_interface.c.  Single file use variables should be
static so add static to their storage-class specifiers.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220422173806.21982-1-trix@redhat.com
drivers/soc/qcom/pdr_internal.h