“9eb9b220fc7deec9022d2340346f12554a3c7f1c”上不存在“drivers/gpu/drm/tegra/drm.c”
提交 12431064 编写于 作者: K Krzysztof Wilczyński 提交者: Lorenzo Pieralisi

PCI: microchip: Make the struct event_descs static

The struct event_descs does not have any users outside the
pcie-microchip-host.c file, and has no previous declaration,
thus it can be made static.

This resolves the following sparse warning:

  drivers/pci/controller/pcie-microchip-host.c:352:3: warning: symbol 'event_descs' was not declared. Should it be static?

Link: https://lore.kernel.org/r/20210509041932.560340-1-kw@linux.comSigned-off-by: NKrzysztof Wilczyński <kw@linux.com>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
上级 6efb943b
...@@ -341,7 +341,7 @@ static struct event_map local_status_to_event[] = { ...@@ -341,7 +341,7 @@ static struct event_map local_status_to_event[] = {
LOCAL_STATUS_TO_EVENT_MAP(PM_MSI_INT_SYS_ERR), LOCAL_STATUS_TO_EVENT_MAP(PM_MSI_INT_SYS_ERR),
}; };
struct { static struct {
u32 base; u32 base;
u32 offset; u32 offset;
u32 mask; u32 mask;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册