From patchwork Sat Sep 17 01:09:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9336889 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 785F960839 for ; Sat, 17 Sep 2016 01:10:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 747D429DD4 for ; Sat, 17 Sep 2016 01:10:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6521229DFA; Sat, 17 Sep 2016 01:10:12 +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 EAFF129DD4 for ; Sat, 17 Sep 2016 01:10:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F43F6E312; Sat, 17 Sep 2016 01:10:03 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pa0-x242.google.com (mail-pa0-x242.google.com [IPv6:2607:f8b0:400e:c03::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id F20206E312; Sat, 17 Sep 2016 01:10:00 +0000 (UTC) Received: by mail-pa0-x242.google.com with SMTP id oz2so4046929pac.0; Fri, 16 Sep 2016 18:10:00 -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=IbRlArvb03BErtTdqPb1jjCf1JCDLW2FJSyjnT+AFHI=; b=RRSG2YX/si0IFm/bZJtxa1gEv5UoEN1oUnNw+qafQKk+umGfZlnkxCzRIFoYQN5fJj pUeakGkBHi74eJ3VrsFpSnY8WjWUikiURvqjRrX2NSgqSMBwXgSdDUryfS9OSjS2y1D2 GAUd+uB1Yu4VAL8fnvjoS5rhipgg7M2AZIMhaeSHcatvoG7BxZZ+eR7jvkCqeu8joJnm hHYVE0tgK+TF2mKR45FPKAq5CfxRUzyoSjc9i23J8EIPh+xCzdCedLUVZk0yBLxsh8UY rsuPmpeLJfoDvl7pwh12QwCgelobOm3foIHBuz8D144KjFrqLiTWZHQiE6eaGBZrjix9 kJrw== 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=IbRlArvb03BErtTdqPb1jjCf1JCDLW2FJSyjnT+AFHI=; b=Wo7ObYj4qEwDsRS3X4ggfM/ZyTyj87gucDxi6YAn8VVYoiV9YsmW3YSyzIiIYfVO4L lD5jTbSgyp7B9tM+z90Btf2+zN25TCeTZTrng5A8j1NffJQqnFuewrlwYtqOGyMdxcn7 rEacinLbL8uqEwftuc6Kmm9Gp4P5KWT5Y7rcLGkOs3MnN0WLzO85bLwNZ+WKWhi0tSkN VrQENrQ4JAqB3GQgKFt97xgIWGIC5DvY9Q+WjvOtQ/BqsziiCUVjD/sLMOdFPzPUf6W/ kd55mz6/SkoQR9v/diwgiZYsIl1HjKy5dLkeVxghlww3Kc1ixpP8TW/4iZXOpe0HL7Nb 8TMg== X-Gm-Message-State: AE9vXwNtPnxo5bxFpGa6pUjSEpET0F6479BpMSpESKbTTYm36WgUg1G09REE7K4yslAz9Q== X-Received: by 10.66.11.167 with SMTP id r7mr27351992pab.136.1474074599808; Fri, 16 Sep 2016 18:09:59 -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 w81sm54724516pfa.54.2016.09.16.18.09.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Sep 2016 18:09:58 -0700 (PDT) From: Wei Yongjun To: Daniel Vetter , Jani Nikula , David Airlie , Mika Kahola Date: Sat, 17 Sep 2016 01:09:51 +0000 Message-Id: <1474074591-16737-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Cc: intel-gfx@lists.freedesktop.org, Wei Yongjun , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH -next] drm/i915: Fix non static symbol warning X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/gpu/drm/i915/intel_dp.c:1527:5: warning: symbol 'intel_dp_compute_bpp' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/gpu/drm/i915/intel_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 69cee9b..acd0c51 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1524,8 +1524,8 @@ void intel_dp_compute_rate(struct intel_dp *intel_dp, int port_clock, } } -int intel_dp_compute_bpp(struct intel_dp *intel_dp, - struct intel_crtc_state *pipe_config) +static int intel_dp_compute_bpp(struct intel_dp *intel_dp, + struct intel_crtc_state *pipe_config) { int bpp, bpc;