[<prev] [next>] [day] [month] [year] [list]
Message-ID: <6e0fb4da-131f-893e-2e54-7936a265da7c@infradead.org>
Date: Mon, 6 Nov 2017 10:21:06 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-media <linux-media@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Daniel Scheller <d.scheller.oss@...il.com>,
Mauro Carvalho Chehab <mchehab@...pensource.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: [PATCH] media: ddbridge: fix build warnings
From: Randy Dunlap <rdunlap@...radead.org>
Fix 2 build warnings.
These functions are void, so drop the "return"s.
./drivers/media/pci/ddbridge/ddbridge-io.h: warning: 'return' with a value, in function returning void [enabled by default]: => 50:2, 55:2
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Daniel Scheller <d.scheller.oss@...il.com>
Cc: Mauro Carvalho Chehab <mchehab@...pensource.com>
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>
Reported-by: Geert Uytterhoeven <geert@...ux-m68k.org>
---
drivers/media/pci/ddbridge/ddbridge-io.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- lnx-414-rc8.orig/drivers/media/pci/ddbridge/ddbridge-io.h
+++ lnx-414-rc8/drivers/media/pci/ddbridge/ddbridge-io.h
@@ -47,12 +47,12 @@ static inline void ddbwritel(struct ddb
static inline void ddbcpyto(struct ddb *dev, u32 adr, void *src, long count)
{
- return memcpy_toio(dev->regs + adr, src, count);
+ memcpy_toio(dev->regs + adr, src, count);
}
static inline void ddbcpyfrom(struct ddb *dev, void *dst, u32 adr, long count)
{
- return memcpy_fromio(dst, dev->regs + adr, count);
+ memcpy_fromio(dst, dev->regs + adr, count);
}
static inline u32 safe_ddbreadl(struct ddb *dev, u32 adr)
Powered by blists - more mailing lists