From patchwork Sun Sep 25 07:59:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76962 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp631705qgf; Sun, 25 Sep 2016 00:59:39 -0700 (PDT) X-Received: by 10.67.11.107 with SMTP id eh11mr28006307pad.89.1474790379337; Sun, 25 Sep 2016 00:59:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qj2si18220964pac.7.2016.09.25.00.59.39; Sun, 25 Sep 2016 00:59:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940971AbcIYH7g (ORCPT + 27 others); Sun, 25 Sep 2016 03:59:36 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34646 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935087AbcIYH7e (ORCPT ); Sun, 25 Sep 2016 03:59:34 -0400 Received: by mail-pf0-f179.google.com with SMTP id l25so7154900pfb.1 for ; Sun, 25 Sep 2016 00:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vmPfY81JbzwyCmqPooUrxZiYcylhVqTFHmFDvARKK5Q=; b=Fob9oZWn1huRPIEDwa0Kze1o3Z7BsWK3E5rdM5e/Ux95bdhBJnQdN/GTWPMhkkIj4b GVyujxqCtC29+yrb3Sdxk2U0EdKsJbgnRyHcJFs5zgwAI+lGgamvKjmGlEbSYQEaYtuL fe6yqej9l/KddWyAxcHGO2V8LvbyfxoTlgv40= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vmPfY81JbzwyCmqPooUrxZiYcylhVqTFHmFDvARKK5Q=; b=VM5UCuGpzy6A+oEogMgmZm7vKmmCB5o8MEfYznP2NfF4m68vfoMJnXXDC3dW+zxnk7 F4ZKmfzTG0qDq1bCORBl/jhZfLt3wcRgHivdL2ILc4vcf0gqceJGdW8nxRlBeQip4G19 QHwzt9AcgG2coyKxYxKY1cAixp+FZ8OIrZrZRQYB8enxtrmOQopX4iySE8fFOWeyhNzw cFkyPDpERnVXY7oxWnkdSrmoOHcmPfQU1fPlFU0Wz5lla13BVrZhQRRZTKdQ711z2uzF e+D28QVRCROH0Ut5L23DkJvtixnawe0ldDc5zCnNHa0njTp5YmWuWYIk0vN9cZLELX7U pWag== X-Gm-Message-State: AE9vXwNDLb/yhMmuy1+LtZgSECUgfm6jKuetEJV8Iwt7oBmrsMCs3UQxZSCoyvaN8gmsR3WF X-Received: by 10.98.149.82 with SMTP id p79mr27674725pfd.150.1474790373226; Sun, 25 Sep 2016 00:59:33 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id m11sm10024290pfi.30.2016.09.25.00.59.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:59:32 -0700 (PDT) From: Baoyou Xie To: rmk+kernel@armlinux.org.uk, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.comm.cn, tang.qiang007@zte.com.cn Subject: [PATCH] drm/i2c: mark tda998x_audio_digital_mute() static Date: Sun, 25 Sep 2016 15:59:19 +0800 Message-Id: <1474790359-17416-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/gpu/drm/i2c/tda998x_drv.c:1292:5: warning: no previous prototype for 'tda998x_audio_digital_mute' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 9798d40..8bf6611 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -1289,7 +1289,7 @@ static void tda998x_audio_shutdown(struct device *dev, void *data) mutex_unlock(&priv->audio_mutex); } -int tda998x_audio_digital_mute(struct device *dev, void *data, bool enable) +static int tda998x_audio_digital_mute(struct device *dev, void *data, bool enable) { struct tda998x_priv *priv = dev_get_drvdata(dev);