Skip to content

Commit 1ae27da

Browse files
Jiapeng Chongbjorn-helgaas
authored andcommitted
misc: pci_endpoint_test: Remove unused pci_endpoint_test_bar_{readl,writel} functions
These two functions are defined in the pci_endpoint_test.c file, but not called elsewhere, so delete these unused functions. This fixes the following warning: drivers/misc/pci_endpoint_test.c:144:19: warning: unused function 'pci_endpoint_test_bar_readl'. drivers/misc/pci_endpoint_test.c:150:20: warning: unused function 'pci_endpoint_test_bar_writel'. No functional changes intended. [kwilczynski: commit log] Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9064 Link: https://lore.kernel.org/linux-pci/[email protected] Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 7608496 commit 1ae27da

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/misc/pci_endpoint_test.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,6 @@ static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test,
144144
writel(value, test->base + offset);
145145
}
146146

147-
static inline u32 pci_endpoint_test_bar_readl(struct pci_endpoint_test *test,
148-
int bar, int offset)
149-
{
150-
return readl(test->bar[bar] + offset);
151-
}
152-
153-
static inline void pci_endpoint_test_bar_writel(struct pci_endpoint_test *test,
154-
int bar, u32 offset, u32 value)
155-
{
156-
writel(value, test->bar[bar] + offset);
157-
}
158-
159147
static irqreturn_t pci_endpoint_test_irqhandler(int irq, void *dev_id)
160148
{
161149
struct pci_endpoint_test *test = dev_id;

0 commit comments

Comments
 (0)