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: 9292763 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 DD6C6600CB for ; Mon, 22 Aug 2016 00:40:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFA79287DE for ; Mon, 22 Aug 2016 00:40:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C458A287F4; Mon, 22 Aug 2016 00:40:07 +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=unavailable 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 6B47B287DE for ; Mon, 22 Aug 2016 00:40:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C617E6E298; Mon, 22 Aug 2016 00:40:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@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 Subject: [PATCH -next] drm/i915: Fix non static symbol warning 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 X-Mailman-Approved-At: Mon, 22 Aug 2016 00:39:59 +0000 Cc: intel-gfx@lists.freedesktop.org, 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/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);