From patchwork Sat Sep 22 06:47:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1494511 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 773D93FD40 for ; Sat, 22 Sep 2012 17:47:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 52B5B9E74C for ; Sat, 22 Sep 2012 10:47:29 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B9FF9E887 for ; Fri, 21 Sep 2012 23:51:10 -0700 (PDT) Received: by pbbrq8 with SMTP id rq8so9458307pbb.36 for ; Fri, 21 Sep 2012 23:51:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=148tgVJHqRi2EZSnN6ABNrAHOBh+0kGivyW3ArkSTzs=; b=h1hzQ4PxF7NzOiaIwd4ExZEYNmA0PeUyAyPQ+Ko4IKtb/jbYNiyW636qQ3c0jVISrE QiILhUs9b/AfNP1z0IvFWq5Ei4Fehl0SrWBjQUt3w/xI84VltIXFEvHwGB+NeELAG+9m b6T6S/rqJ7myLiQAPmPla+Jag1hBOmb33CjQWgPGBYByZ191sr7lBpkKw288azKp1Wqr aT7MCYjVVsJOTEzV/GZxOruYGibX3T4HSvpe/ZivV3+/DHPucnxqIlKtvVNwpG500wfr tAvlLORaiNFp4xqB6pUfTo54NVhcZ7Y+42Xb2nC/kdLG3TTnqPy0NXaGCggWmng8oUPs 68MQ== Received: by 10.68.197.100 with SMTP id it4mr21523613pbc.16.1348296670198; Fri, 21 Sep 2012 23:51:10 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pi1sm6283422pbb.7.2012.09.21.23.51.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Sep 2012 23:51:09 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/udl: Make udl_enc_destroy() static Date: Sat, 22 Sep 2012 12:17:39 +0530 Message-Id: <1348296459-8654-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQliIcfoGZVRJFJxL5ZhUY7keRQO1DZwtJ/jY6yuY00E8y41OoDBJx4YwECdvOxKDrTl92WX X-Mailman-Approved-At: Sat, 22 Sep 2012 10:44:59 -0700 Cc: airlied@redhat.com, patches@linaro.org, sachin.kamat@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Fixes the following sparse warning: drivers/gpu/drm/udl/udl_encoder.c:19:6: warning: symbol 'udl_enc_destroy' was not declared. Should it be static? Signed-off-by: Sachin Kamat --- drivers/gpu/drm/udl/udl_encoder.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_encoder.c b/drivers/gpu/drm/udl/udl_encoder.c index 0731ab2..0476bfe 100644 --- a/drivers/gpu/drm/udl/udl_encoder.c +++ b/drivers/gpu/drm/udl/udl_encoder.c @@ -16,7 +16,7 @@ #include "udl_drv.h" /* dummy encoder */ -void udl_enc_destroy(struct drm_encoder *encoder) +static void udl_enc_destroy(struct drm_encoder *encoder) { drm_encoder_cleanup(encoder); kfree(encoder);