From patchwork Sun Sep 25 07:51:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76959 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp630236qgf; Sun, 25 Sep 2016 00:52:33 -0700 (PDT) X-Received: by 10.66.80.73 with SMTP id p9mr24695611pax.115.1474789953798; Sun, 25 Sep 2016 00:52:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hr2si18147373pad.51.2016.09.25.00.52.33; Sun, 25 Sep 2016 00:52:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423025AbcIYHw3 (ORCPT + 8 others); Sun, 25 Sep 2016 03:52:29 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36099 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423019AbcIYHw1 (ORCPT ); Sun, 25 Sep 2016 03:52:27 -0400 Received: by mail-pf0-f182.google.com with SMTP id q2so55187406pfj.3 for ; Sun, 25 Sep 2016 00:52:26 -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:in-reply-to:references; bh=YPo4J+YAarVyAqnjahTwscGv3spK7T/HTJOSfLdPuMU=; b=AJCl97xFm7NHwdE3XhWNaTr5MVN6d8cyNfrbCldUspCh3k/vodsAVpV5BPO7u4um84 +AfnNdE5xrpw+ENbUN+rFKm+xy49GyXt5gmurX/nL0fui0y2pv7ELp45bGvT5yngBfmf ieMEcxvQe7gqC0fFeDO3YMkTeeOA05FGh1scU= 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:in-reply-to :references; bh=YPo4J+YAarVyAqnjahTwscGv3spK7T/HTJOSfLdPuMU=; b=lE7hGDbhViBx04L/hGOqRgTh+TE89z67eX9BbRTljLaUyi4KS9HvJf/n1tvKsImuN/ vjQkCY0R7+mvpEVDFqQ1mb1yXe7fpb51ODBbWONGwSOILusbW22xioues+MD1iMnGksA lbhoUElym7rM4QswtJcFYgYvONf4+bAb68OvRtoq8gQnJtFaQ6Dh1EfJH9zsrspcAGhG x0thtxx7PgTYTX43Vt8tdP3/cstjdY4RFosPUETMlTeU9k4fD+ksyL+XtnqOenI/KVkc 9A9dYjyiBX9y58pbtSxUjSEuY1mnJRMJ5gefyPYP9MLQPCHKEu+cuC5tFs+YCFnPqn/t Ge7A== X-Gm-Message-State: AE9vXwOvjXKHHbSFTVD5Xhe4M4zYs+lzWnpQ+PPczPIaaBAASveAi+4r0UGUaDnsI08KOClN X-Received: by 10.98.197.1 with SMTP id j1mr28136322pfg.77.1474789945677; Sun, 25 Sep 2016 00:52:25 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id d128sm8451404pfc.57.2016.09.25.00.52.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:52:25 -0700 (PDT) From: Baoyou Xie To: robdclark@gmail.com, airlied@linux.ie, architt@codeaurora.org, cstout@chromium.org Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 2/2] drm/msm/adreno: move function declarations to header file Date: Sun, 25 Sep 2016 15:51:58 +0800 Message-Id: <1474789918-29365-2-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474789918-29365-1-git-send-email-baoyou.xie@linaro.org> References: <1474789918-29365-1-git-send-email-baoyou.xie@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/gpu/drm/msm/adreno/a3xx_gpu.c:535:17: warning: no previous prototype for 'a3xx_gpu_init' [-Wmissing-prototypes] drivers/gpu/drm/msm/adreno/a4xx_gpu.c:624:17: warning: no previous prototype for 'a4xx_gpu_init' [-Wmissing-prototypes] In fact, both functions are declared in drivers/gpu/drm/msm/adreno/adreno_device.c, but should be declared in a header file. So this patch moves both function declarations to drivers/gpu/drm/msm/adreno/adreno_gpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/adreno/adreno_device.c | 3 --- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index 5127b75..7250ffc 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -25,9 +25,6 @@ bool hang_debug = false; MODULE_PARM_DESC(hang_debug, "Dump registers when hang is detected (can be slow!)"); module_param_named(hang_debug, hang_debug, bool, 0600); -struct msm_gpu *a3xx_gpu_init(struct drm_device *dev); -struct msm_gpu *a4xx_gpu_init(struct drm_device *dev); - static const struct adreno_info gpulist[] = { { .rev = ADRENO_REV(3, 0, 5, ANY_ID), diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h index a54f6e0..07d99bd 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h @@ -311,4 +311,7 @@ static inline void adreno_gpu_write(struct adreno_gpu *gpu, gpu_write(&gpu->base, reg - 1, data); } +struct msm_gpu *a3xx_gpu_init(struct drm_device *dev); +struct msm_gpu *a4xx_gpu_init(struct drm_device *dev); + #endif /* __ADRENO_GPU_H__ */