]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mt76: mt7615: Make mt7615_irq_handler static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 4 May 2019 10:22:47 +0000 (18:22 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 25 Jun 2019 10:55:25 +0000 (12:55 +0200)
Fix sparse warning:

drivers/net/wireless/mediatek/mt76/mt7615/pci.c:37:13:
 warning: symbol 'mt7615_irq_handler' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/pci.c

index 10a249e13a43c61ef23bc9f59fac3b7125ac4640..e731b2bfa0291a732543fd389c96f89924eeacac 100644 (file)
@@ -34,7 +34,7 @@ void mt7615_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q)
        mt7615_irq_enable(dev, MT_INT_RX_DONE(q));
 }
 
-irqreturn_t mt7615_irq_handler(int irq, void *dev_instance)
+static irqreturn_t mt7615_irq_handler(int irq, void *dev_instance)
 {
        struct mt7615_dev *dev = dev_instance;
        u32 intr;