From patchwork Mon Nov 6 18:21:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10044097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 24D3660247 for ; Mon, 6 Nov 2017 18:22:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C4E929D89 for ; Mon, 6 Nov 2017 18:22:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F5BE29EBF; Mon, 6 Nov 2017 18:22:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95CFE29D89 for ; Mon, 6 Nov 2017 18:22:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754703AbdKFSVS (ORCPT ); Mon, 6 Nov 2017 13:21:18 -0500 Received: from merlin.infradead.org ([205.233.59.134]:47082 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754700AbdKFSVO (ORCPT ); Mon, 6 Nov 2017 13:21:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HcEJyy8ckS6g25DnJceI5gVbYe2mfKr3qOeGW2HmVG0=; b=hkeLDcQ/q3oqWKusBcVjFhYMb5 HOffS2Dcz0EpW7MfuPqoNJIC/RrSljYJd2mCfay58htRPqpokK4D9APrsVuU6cY1VtMVWBYz80VF/ CD7puAEKZlETUkBZSjHSsuZEoBbz8x9wssgGxQy/2tE/3+kBLnEc2gXaX3s7GFCuXOrY8Edz8gukV xJat258k+QCLExarNcLFgQLaI2Ga1q9PqhFUoTvJVweclt9Mi9T29Y0G9W3jtFAu1jVKPFbSWHql+ E905Dvv0BVV87yJeeq64OdhBUOOVRZQhF0D1FaB5uNUYw7MygOkBUE+gCH78gtqgIW2W/RIIFqdRE 3yTztXWw==; Received: from static-50-53-32-32.bvtn.or.frontiernet.net ([50.53.32.32] helo=midway.dunlap) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1eBm1D-0002Xy-Ru; Mon, 06 Nov 2017 18:21:08 +0000 To: linux-media , LKML , Daniel Scheller , Mauro Carvalho Chehab , Mauro Carvalho Chehab Cc: Geert Uytterhoeven From: Randy Dunlap Subject: [PATCH] media: ddbridge: fix build warnings Message-ID: <6e0fb4da-131f-893e-2e54-7936a265da7c@infradead.org> Date: Mon, 6 Nov 2017 10:21:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap 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 Cc: Daniel Scheller Cc: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab Reported-by: Geert Uytterhoeven --- 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)