From patchwork Thu May 10 06:32:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8508 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0549B23ED1 for ; Thu, 10 May 2012 06:41:56 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id C91A5A185E7 for ; Thu, 10 May 2012 06:41:55 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so1431089yhp.11 for ; Wed, 09 May 2012 23:41:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=hquiXxUiNYSX9soge1GK4mm1TrBaKcgZqjo4Sx2oACw=; b=HDrxT6IubKhCJligyKeqy4bSLHS0jwu4BE5IW6J36TTYXKeWcMDxZiI/atzNV2htkU aMe8ovcTgcMyHN1ELLsWNll2qq4IlbT3ud7DiW6dWu8FbVrTZEVmaSbGJWzzTFd37j7d eNu5eC+gC1KxfizVDyGYAT2FlV+toZLyVnIhxJNhZRbmRp3UNWp2EQ6TJNFSzSqdx0WV GfmQwClgBQilULj3dIwSEp7ccKUF2EG3n7ZvvOa85sjfR2GcRLsUO/S/S7lXn+aA88xT yNIQ0bJdVsp0g96LJKJDLSwQNJXb9PxHktzsitfeNR+QvNYzY8Yv5tkQQOQoWt2uQhQx W0Lw== Received: by 10.50.10.225 with SMTP id l1mr1686668igb.1.1336632115240; Wed, 09 May 2012 23:41:55 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.73.147 with SMTP id q19csp71379ibj; Wed, 9 May 2012 23:41:54 -0700 (PDT) Received: by 10.68.204.199 with SMTP id la7mr2226040pbc.121.1336632114132; Wed, 09 May 2012 23:41:54 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id p7si9233564pbk.194.2012.05.09.23.41.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 May 2012 23:41:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by danh15 with SMTP id h15so1626207dan.37 for ; Wed, 09 May 2012 23:41:53 -0700 (PDT) Received: by 10.68.219.71 with SMTP id pm7mr16619490pbc.77.1336632113817; Wed, 09 May 2012 23:41:53 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id vc4sm3015084pbc.8.2012.05.09.23.41.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 May 2012 23:41:53 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, k.debski@samsung.com, kyungmin.park@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/2] [media] s5p-mfc: Add missing static storage class to silence warnings Date: Thu, 10 May 2012 12:02:01 +0530 Message-Id: <1336631521-24820-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1336631521-24820-1-git-send-email-sachin.kamat@linaro.org> References: <1336631521-24820-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkJXl/kiNz89lXzsZ1DmWaI5DeWRrWuhOrOtQRynELX/h5vJJSLpEgCvBi0lgJlv+F/0Sxy Fixes the following sparse warnings: drivers/media/video/s5p-mfc/s5p_mfc.c:73:6 warning: symbol 's5p_mfc_watchdog' was not declared. Should it be static? drivers/media/video/s5p-mfc/s5p_mfc_opr.c:299:6: warning: symbol 's5p_mfc_set_shared_buffer' was not declared. Should it be static? Signed-off-by: Sachin Kamat Acked-by: Kamil Debski --- drivers/media/video/s5p-mfc/s5p_mfc.c | 2 +- drivers/media/video/s5p-mfc/s5p_mfc_opr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/s5p-mfc/s5p_mfc.c b/drivers/media/video/s5p-mfc/s5p_mfc.c index ac2dac9..2de6c72 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc.c @@ -70,7 +70,7 @@ static void wake_up_dev(struct s5p_mfc_dev *dev, unsigned int reason, wake_up(&dev->queue); } -void s5p_mfc_watchdog(unsigned long arg) +static void s5p_mfc_watchdog(unsigned long arg) { struct s5p_mfc_dev *dev = (struct s5p_mfc_dev *)arg; diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_opr.c b/drivers/media/video/s5p-mfc/s5p_mfc_opr.c index a802829..e6217cb 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_opr.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_opr.c @@ -296,7 +296,7 @@ void s5p_mfc_set_dec_desc_buffer(struct s5p_mfc_ctx *ctx) } /* Set registers for shared buffer */ -void s5p_mfc_set_shared_buffer(struct s5p_mfc_ctx *ctx) +static void s5p_mfc_set_shared_buffer(struct s5p_mfc_ctx *ctx) { struct s5p_mfc_dev *dev = ctx->dev; mfc_write(dev, ctx->shm_ofs, S5P_FIMV_SI_CH0_HOST_WR_ADR);