projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a306a5
)
PCI: shpchp: Remove unused shpc_writeb()
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Thu, 15 Apr 2021 08:30:22 +0000
(16:30 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 16 Apr 2021 16:22:24 +0000
(11:22 -0500)
Fix the following clang warning:
drivers/pci/hotplug/shpchp_hpc.c:177:20: warning: unused function 'shpc_writeb' [-Wunused-function].
Link:
https://lore.kernel.org/r/1618475422-96531-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyĆski <kw@linux.com>
drivers/pci/hotplug/shpchp_hpc.c
patch
|
blob
|
history
diff --git
a/drivers/pci/hotplug/shpchp_hpc.c
b/drivers/pci/hotplug/shpchp_hpc.c
index db047284c2917159f2a21a661b934087af104275..9e3b27744305c71c3df6d416fec27e959460bfc4 100644
(file)
--- a/
drivers/pci/hotplug/shpchp_hpc.c
+++ b/
drivers/pci/hotplug/shpchp_hpc.c
@@
-174,11
+174,6
@@
static inline u8 shpc_readb(struct controller *ctrl, int reg)
return readb(ctrl->creg + reg);
}
-static inline void shpc_writeb(struct controller *ctrl, int reg, u8 val)
-{
- writeb(val, ctrl->creg + reg);
-}
-
static inline u16 shpc_readw(struct controller *ctrl, int reg)
{
return readw(ctrl->creg + reg);