From patchwork Tue Sep 6 07:46:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75474 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp414003qgf; Tue, 6 Sep 2016 00:46:54 -0700 (PDT) X-Received: by 10.98.89.91 with SMTP id n88mr38083019pfb.119.1473148014546; Tue, 06 Sep 2016 00:46:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l65si21912830pfa.48.2016.09.06.00.46.54; Tue, 06 Sep 2016 00:46:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755445AbcIFHqp (ORCPT + 27 others); Tue, 6 Sep 2016 03:46:45 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35576 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753186AbcIFHqk (ORCPT ); Tue, 6 Sep 2016 03:46:40 -0400 Received: by mail-pa0-f47.google.com with SMTP id hb8so68510453pac.2 for ; Tue, 06 Sep 2016 00:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=H700D/9R07jBveiapCEtGmpXRFAuJFoBuHk7F5ZRj/Y=; b=JAirmqdrXP2qmpb48IbXQx6IFL2JPLChGZOwTRItnUyFp9WGr2FNdb0RTjd5npDqUr Ir6DeYF24vOSw2gSz8OV+RAQV5X1Uzj4oXarDNEVUL2SjHNMnbJMGG78I3ZKEJHuwJmG tbH8zVviISOvn6GgSFz3fHIvrlVTo/IceDkC0= 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; bh=H700D/9R07jBveiapCEtGmpXRFAuJFoBuHk7F5ZRj/Y=; b=c/pVFU5C9GSy8asAD9ouRJgPCnl6l9DxYrbJUOARhkb08lDrlcXItD3+/u6gtrg41e FO+TccQg1w3ererWB5QGOELiTl7nCUDcDiuSj1NqaRXMlCiRFvw/sXOWWNS2OfG9HsfC D0zW3BIm6jzpH1XHeLJ5X6rRXLOljkDnjxel+H0S3tIIsL6XIsf/314DkSSZTGn/pH0i Uc5+U9oBVKyYdGCWEnDZR+isD13nLPO6pmYC+q5im8TqfNTPaI/WuEHty3BCUklFzdys xWm/+scgL6JkRmxEOiVY2yVBmzCDwYAAxVDRPZRP3zbUK52cgO0SwX711MWULUanFudH T61Q== X-Gm-Message-State: AE9vXwNtQrX92aAekjBnRvAtasAbe6+f/fCDcudpu4kR87cLKWNOOJ7OXDcDvEmaqkQS6wbr X-Received: by 10.66.100.230 with SMTP id fb6mr69521899pab.107.1473148000064; Tue, 06 Sep 2016 00:46:40 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.17]) by smtp.gmail.com with ESMTPSA id o80sm38384129pfa.67.2016.09.06.00.46.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 00:46:39 -0700 (PDT) From: Baoyou Xie To: boris.brezillon@free-electrons.com, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/atmel-hlcdc: mark atmel_hlcdc_crtc_reset() static Date: Tue, 6 Sep 2016 15:46:16 +0800 Message-Id: <1473147976-25092-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c:390:6: warning: no previous prototype for 'atmel_hlcdc_crtc_reset' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index a978381..9b17a66 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c @@ -387,7 +387,7 @@ void atmel_hlcdc_crtc_irq(struct drm_crtc *c) atmel_hlcdc_crtc_finish_page_flip(drm_crtc_to_atmel_hlcdc_crtc(c)); } -void atmel_hlcdc_crtc_reset(struct drm_crtc *crtc) +static void atmel_hlcdc_crtc_reset(struct drm_crtc *crtc) { struct atmel_hlcdc_crtc_state *state;