[RFC PATCH] allegro: allegro_alloc_buffer() can be static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes: ccd8b4b2b72d ("allegro: add Allegro DVT video IP core driver")
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---
 allegro-core.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c b/drivers/media/platform/allegro-dvt/allegro-core.c
index 5ed8553..f4313cc 100644
--- a/drivers/media/platform/allegro-dvt/allegro-core.c
+++ b/drivers/media/platform/allegro-dvt/allegro-core.c
@@ -732,8 +732,8 @@ allegro_get_firmware_info(struct allegro_dev *dev,
  * Buffers that are used internally by the MCU.
  */
 
-int allegro_alloc_buffer(struct allegro_dev *dev,
-			 struct allegro_buffer *buffer, size_t size)
+static int allegro_alloc_buffer(struct allegro_dev *dev,
+				struct allegro_buffer *buffer, size_t size)
 {
 	buffer->vaddr = dma_alloc_coherent(&dev->plat_dev->dev, size,
 					   &buffer->paddr, GFP_KERNEL);
@@ -744,7 +744,7 @@ int allegro_alloc_buffer(struct allegro_dev *dev,
 	return 0;
 }
 
-void allegro_free_buffer(struct allegro_dev *dev, struct allegro_buffer *buffer)
+static void allegro_free_buffer(struct allegro_dev *dev, struct allegro_buffer *buffer)
 {
 	if (buffer->vaddr) {
 		dma_free_coherent(&dev->plat_dev->dev, buffer->size,
@@ -1604,7 +1604,7 @@ static int allegro_receive_message(struct allegro_dev *dev)
 	return err;
 }
 
-irqreturn_t allegro_hardirq(int irq, void *data)
+static irqreturn_t allegro_hardirq(int irq, void *data)
 {
 	struct allegro_dev *dev = data;
 	unsigned int status;
@@ -1618,7 +1618,7 @@ irqreturn_t allegro_hardirq(int irq, void *data)
 	return IRQ_WAKE_THREAD;
 }
 
-irqreturn_t allegro_irq_thread(int irq, void *data)
+static irqreturn_t allegro_irq_thread(int irq, void *data)
 {
 	struct allegro_dev *dev = data;
 



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux