From patchwork Sat Jan 26 11:12:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10782415 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 191EC6C2 for ; Sat, 26 Jan 2019 11:12:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFE0D2E5D7 for ; Sat, 26 Jan 2019 11:12:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D287B2E5F1; Sat, 26 Jan 2019 11:12:48 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham 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 5EBC62E5D7 for ; Sat, 26 Jan 2019 11:12:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726234AbfAZLMq (ORCPT ); Sat, 26 Jan 2019 06:12:46 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:52134 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfAZLMq (ORCPT ); Sat, 26 Jan 2019 06:12:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: 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=FJKum3GJtQIvHBxioIJqV6AyPnxFB83YWnRJG5/xPnw=; b=KogQy9A10FlLXi0k2fLCIJht+ 4LZdBc8ferZn1Jr0w5UP8FRr0XtyVglVtRa2xlD/MsU/6x9DocJhz9VOz9xtwFSmmo+PbuIcBcKnG bbn0zsGKNg8+pr+Kvgp6dDeqNuA/g44zvSYgvSoqF0MxoodaEnOD1qPR3K+45IPS9sMfWTiu5/eT1 78GZXccDOY4CnzIF3pNV+FqBbtz5rt5OfuvFW6chf+dEvr4ZTedJOQHltfCg8VCnU/KGMP7lOmcls yvKK9XTRUtA6t43zlT+FoZycCVeJl+z8PDRm9t9QTnmj5icWHxuaKH5RkyyBlSr0IOvb3ocjsoDIh p8S+wTsTw==; Received: from 177.157.109.120.dynamic.adsl.gvt.net.br ([177.157.109.120] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gnLtF-0005KX-Gz; Sat, 26 Jan 2019 11:12:45 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.91) (envelope-from ) id 1gnLtC-0005tJ-6d; Sat, 26 Jan 2019 09:12:42 -0200 From: Mauro Carvalho Chehab To: Linux Media Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , Linux Doc Mailing List , Hans Verkuil Subject: [PATCH] media: vicodec>: get_next_header is static Date: Sat, 26 Jan 2019 09:12:41 -0200 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 drivers/media/platform/vicodec/vicodec-core.c:drivers/media/platform/vicodec/vicodec-core.c:210:23: warning: symbol 'get_next_header' was not declared. Should it be static? drivers/media/platform/vicodec/vicodec-core.c:210:23: warning: no previous prototype for 'get_next_header' [-Wmissing-prototypes] enum vb2_buffer_state get_next_header(struct vicodec_ctx *ctx, u8 **pp, u32 sz) ^~~~~~~~~~~~~~~ Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/vicodec/vicodec-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index 28c3a3d57783..3703b587e25e 100644 --- a/drivers/media/platform/vicodec/vicodec-core.c +++ b/drivers/media/platform/vicodec/vicodec-core.c @@ -207,7 +207,8 @@ static int device_process(struct vicodec_ctx *ctx, /* * mem2mem callbacks */ -enum vb2_buffer_state get_next_header(struct vicodec_ctx *ctx, u8 **pp, u32 sz) +static enum vb2_buffer_state get_next_header(struct vicodec_ctx *ctx, + u8 **pp, u32 sz) { static const u8 magic[] = { 0x4f, 0x4f, 0x4f, 0x4f, 0xff, 0xff, 0xff, 0xff