From patchwork Sat Sep 10 12:32:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9325025 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 3FB6F6077F for ; Sat, 10 Sep 2016 16:11:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31B22297E9 for ; Sat, 10 Sep 2016 16:11:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 261A3297ED; Sat, 10 Sep 2016 16:11:24 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B9580297E9 for ; Sat, 10 Sep 2016 16:11:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E9DB6E1E5; Sat, 10 Sep 2016 16:11:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x244.google.com (mail-pa0-x244.google.com [IPv6:2607:f8b0:400e:c03::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 67DB26E168 for ; Sat, 10 Sep 2016 12:33:08 +0000 (UTC) Received: by mail-pa0-x244.google.com with SMTP id h5so5194729pao.0 for ; Sat, 10 Sep 2016 05:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7bSdgrGiBCZFcAUzdVPSaI0RffhaFIVqK2YfAofb5RA=; b=mFMtIetEYABpDhrzgBLCghOTNQ46V+y/pS5lWJCFd0TdmqwLzfO5JQdWBQGaRrmyPO WEq3XvMmsTOJ6Wx2kWQXVLi4mdGjfSijYE2iVLsnGoBeXCy7FY8p/B/qAC/UU7ZqxVrf /OY//IbGf6It9jBtqwwDxV1zOn7I7+bg9zlmVVNbe/mJkob68sUXmjKwRNns6gQMNRq/ 62e863ypdmwsgbG1GIj+N2+rSDvGZSK2bFGUxl85p1eM4TIQggW8CS05BWJCBztO8cWO s8+3hkXNGNA9ok2nD1dY2RaGxiipyaXOW/TkaFjeMcEPAZ89bf4sHgoqkIEUTWMq7Nl8 FFSg== 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:mime-version :content-transfer-encoding; bh=7bSdgrGiBCZFcAUzdVPSaI0RffhaFIVqK2YfAofb5RA=; b=VlfgNGm+J+izZJGWFDHs/DVTagWKt9zsQlKjNCs77SwIOft51h758lBnY9FybbvsEO 1RGjhEoK2bx5fQXqGEHQ493OtW35rMiNNYyL/3pL13GPds0IJcQsjGPPitCpMML59zHz 9df10kjAms9eAd1niEf8bCxeFqUZ6s2JcQ+O53tthqtcSmHLiI3G54Xzm4R0DJ5w7bES Nt1vYgFQBCg14h0FccvcE9yt+XqLilDK0klpTcSJ+CSgXsotaqESjdgxtuG2oGo7NEHT fBbWQ25111cQkl94CnNxtqAXSQ83f8hywsW400xabppQUr4kIpwKiUlpqu1RlBbyjx34 dxyg== X-Gm-Message-State: AE9vXwPe+OcspZSNwq8FMcB1P9OhcEp4Afm9MO73f1gdrV1guF1MYkZTI9tAXZrs8xrFcg== X-Received: by 10.66.0.226 with SMTP id 2mr15502563pah.35.1473510788076; Sat, 10 Sep 2016 05:33:08 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id 3sm12104042pai.48.2016.09.10.05.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2016 05:33:07 -0700 (PDT) From: Wei Yongjun To: Jyri Sarha , Tomi Valkeinen , David Airlie Subject: [PATCH -next] drm/tilcdc: Fix non static symbol warning Date: Sat, 10 Sep 2016 12:32:57 +0000 Message-Id: <1473510777-25444-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 10 Sep 2016 16:11:14 +0000 Cc: Wei Yongjun , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/gpu/drm/tilcdc/tilcdc_drv.c:64:5: warning: symbol 'tilcdc_atomic_check' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 4405e4b..dc58770 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -61,8 +61,8 @@ static void tilcdc_fb_output_poll_changed(struct drm_device *dev) drm_fbdev_cma_hotplug_event(priv->fbdev); } -int tilcdc_atomic_check(struct drm_device *dev, - struct drm_atomic_state *state) +static int tilcdc_atomic_check(struct drm_device *dev, + struct drm_atomic_state *state) { int ret;