From patchwork Sun Aug 21 15:19:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9292211 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 68FB660574 for ; Sun, 21 Aug 2016 15:20:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57CA92890D for ; Sun, 21 Aug 2016 15:20:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48674289CB; Sun, 21 Aug 2016 15:20:32 +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 C52522890D for ; Sun, 21 Aug 2016 15:20:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B94A46E1F4; Sun, 21 Aug 2016 15:20:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id E1F576E1F4; Sun, 21 Aug 2016 15:20:28 +0000 (UTC) Received: by mail-pf0-x243.google.com with SMTP id h186so4696605pfg.2; Sun, 21 Aug 2016 08:20:28 -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=l4Rl6zVcWdRV3U2OVT0EnKIWcS4WBPmOtiTqYAl+kKI=; b=qYVMhLB2NGoW9ECSC2JzEgUC1As2ZsRgM3lT+i4CpR4tlGT0YcaYC4HrpXs8KDCcLR 0OVhcxq3V6F2KidDnA3jd2YWppHWdwh3eqbDCpQl7/OyP9RG0aDLpcamWAhO5a6l3J8R 7ZzMAnAI3l8vx1B4TZxRPLW7hgw07jW9Rb9GZFpTH+7xDmOUn+4FLuCjLyHFw3OD2bcd bab34bdRt2jvpzJ+GNux4L39oOxgdhL+g49jxPeTTidopkMZMLvIpZ8CvLea1GLLQea5 /6EKqgGq0ZmExISQUrx/hbWBIsRgprTkM127t9YF4jWFQnm8PYJ0rE3knfqd30lsVVbA uTeg== 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=l4Rl6zVcWdRV3U2OVT0EnKIWcS4WBPmOtiTqYAl+kKI=; b=Feqjx0jJ0sqPJ6gmfWxZdXfJyJmBZa3YbJNS24hbq1/frZ0v2eYGbpfL+ItrxNI9hO sjFPC8qS/UcdBfr+gf7WQ/KFTyANZEcH6MWartQgDSO6bI+MdrWGctNcQwEo/KhZ/VlH 7ZT0V9c4x7C1GT6m/O41wijK+jxdYWHYJ9jYBfzrtyOSVgi/5ny0VsXuKi9/JrIWtSnQ Fg9L6lNPxavIExok+OwrmbXRGuZQLfACMwDvRYYULWfXpMdmmTbeUcmkXd4YLXvqoSXY lKZ4RdODszNg6t0O4p2aYweAq9BwwW4ZGiFm1K79lhgjOkYLCnM64D27LKk8SSe6h11y 2hCA== X-Gm-Message-State: AEkoouvdFD5q4OhGzfivpDJ1Nh6Mjg5A7xOqHlrEobxwJ7FvqtGI9Z1lXCbP75xg4ClCSg== X-Received: by 10.98.157.154 with SMTP id a26mr33961580pfk.68.1471792828543; Sun, 21 Aug 2016 08:20:28 -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 o5sm20785559pfb.9.2016.08.21.08.20.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Aug 2016 08:20:27 -0700 (PDT) From: Wei Yongjun To: Daniel Vetter , Jani Nikula , David Airlie Date: Sun, 21 Aug 2016 15:19:58 +0000 Message-Id: <1471792798-16709-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_hotplug.c:480:6: warning: symbol 'i915_hpd_poll_init_work' was not declared. Should it be static? Also move the '{' to new line. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/i915/intel_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_hotplug.c b/drivers/gpu/drm/i915/intel_hotplug.c index 5dc2c20..334d47b 100644 --- a/drivers/gpu/drm/i915/intel_hotplug.c +++ b/drivers/gpu/drm/i915/intel_hotplug.c @@ -477,7 +477,8 @@ void intel_hpd_init(struct drm_i915_private *dev_priv) spin_unlock_irq(&dev_priv->irq_lock); } -void i915_hpd_poll_init_work(struct work_struct *work) { +static void i915_hpd_poll_init_work(struct work_struct *work) +{ struct drm_i915_private *dev_priv = container_of(work, struct drm_i915_private, hotplug.poll_init_work);