Skip to content

Commit bd60aaf

Browse files
Chen Lifuarndb
authored andcommitted
ARM: mmp: Make some symbols static
These symbols pxa168_usb_phy_resources, pxa168_u2o_resources, pxa168_u2oehci_resources and pxa168_u2ootg_resources are not used outside of arch/arm/mach-mmp/devices.c, so mark them static. Fixes the following sparse warning: arch/arm/mach-mmp/devices.c:241:17: warning: symbol 'pxa168_usb_phy_resources' was not declared. Should it be static? arch/arm/mach-mmp/devices.c:262:17: warning: symbol 'pxa168_u2o_resources' was not declared. Should it be static? arch/arm/mach-mmp/devices.c:297:17: warning: symbol 'pxa168_u2oehci_resources' was not declared. Should it be static? arch/arm/mach-mmp/devices.c:324:17: warning: symbol 'pxa168_u2ootg_resources' was not declared. Should it be static? Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Chen Lifu <chenlifu@huawei.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 390ca5b commit bd60aaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm/mach-mmp/devices.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void pxa_usb_phy_deinit(void __iomem *phy_reg)
238238
static u64 __maybe_unused usb_dma_mask = ~(u32)0;
239239

240240
#if IS_ENABLED(CONFIG_PHY_PXA_USB)
241-
struct resource pxa168_usb_phy_resources[] = {
241+
static struct resource pxa168_usb_phy_resources[] = {
242242
[0] = {
243243
.start = PXA168_U2O_PHYBASE,
244244
.end = PXA168_U2O_PHYBASE + USB_PHY_RANGE,
@@ -259,7 +259,7 @@ struct platform_device pxa168_device_usb_phy = {
259259
#endif /* CONFIG_PHY_PXA_USB */
260260

261261
#if IS_ENABLED(CONFIG_USB_MV_UDC)
262-
struct resource pxa168_u2o_resources[] = {
262+
static struct resource pxa168_u2o_resources[] = {
263263
/* regbase */
264264
[0] = {
265265
.start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,
@@ -294,7 +294,7 @@ struct platform_device pxa168_device_u2o = {
294294
#endif /* CONFIG_USB_MV_UDC */
295295

296296
#if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O)
297-
struct resource pxa168_u2oehci_resources[] = {
297+
static struct resource pxa168_u2oehci_resources[] = {
298298
[0] = {
299299
.start = PXA168_U2O_REGBASE,
300300
.end = PXA168_U2O_REGBASE + USB_REG_RANGE,
@@ -321,7 +321,7 @@ struct platform_device pxa168_device_u2oehci = {
321321
#endif
322322

323323
#if IS_ENABLED(CONFIG_USB_MV_OTG)
324-
struct resource pxa168_u2ootg_resources[] = {
324+
static struct resource pxa168_u2ootg_resources[] = {
325325
/* regbase */
326326
[0] = {
327327
.start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,

0 commit comments

Comments
 (0)