From patchwork Sat Oct 22 08:48:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78766 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1689364qge; Sat, 22 Oct 2016 01:50:00 -0700 (PDT) X-Received: by 10.99.48.69 with SMTP id w66mr7889746pgw.109.1477126199975; Sat, 22 Oct 2016 01:49:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si6111222pga.1.2016.10.22.01.49.59; Sat, 22 Oct 2016 01:49:59 -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 S964800AbcJVItq (ORCPT + 27 others); Sat, 22 Oct 2016 04:49:46 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:35862 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936485AbcJVItg (ORCPT ); Sat, 22 Oct 2016 04:49:36 -0400 Received: by mail-pf0-f182.google.com with SMTP id e6so70120690pfk.3 for ; Sat, 22 Oct 2016 01:49:36 -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=bBfKDvKq/jElqWk9XQcmCc+FBQeLWtxL9klDkmN2JVY=; b=AyhCunFGd2f1S0V2aUzclu+vuFoBQq7QhequFxucTF3WRzQsbdDH0Pzwuz+rsPe5WI 3cGefL6jX42+6LY7qtD+HFI5tCg7sZjVdkwGrz4GhbMCKO7yulbxUUsiWmca3QqiV+oA 3N3LMAbGrLjsSEfT8Abx8jNoVdEvk12lRaNEI= 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=bBfKDvKq/jElqWk9XQcmCc+FBQeLWtxL9klDkmN2JVY=; b=DdoxFwhO8fOeBwXZ+6YFTVinepUOmcFj8YizYDA+H2mYWBJW9+USmAPfNbRjDg4OY2 ImWxLK5D9/UTGSiAK5m9y1kTd0UBFelVxtcbTdQJM/FYo8yjNHAoY4n/EvOq/SM61gCF TLO7sPULyBrhfRxeXTCqM6IsVWLIUoXVPRVmG+WcG8liQ0TlvrNskPUlZA0XdMyJVels whlhuDY4lahShKUwMogUzn60wTI4W8xxvEAJaEb3vDvHtKWLYiQhLHf/leZnH1nxujxO 1Fo7lksjd9ItnhxVS27YAtvSkmDwRytmsPAylzPcTRF89E6zGgK59PI4a+i5eIEQg+4O kK2A== X-Gm-Message-State: ABUngveNvah5jditwtMod5BSV85XsXWZm4SIwO7SjlPU8ekFNyJv5L/1ICwaFukb5nnnGoB/ X-Received: by 10.98.153.204 with SMTP id t73mr9341034pfk.144.1477126175901; Sat, 22 Oct 2016 01:49:35 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id bx5sm10529447pad.6.2016.10.22.01.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 01:49:35 -0700 (PDT) From: Baoyou Xie To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, nicolai.haehnle@amd.com, Jammy.Zhou@amd.com, Qingqing.Wang@amd.com, daniel.vetter@ffwll.ch, tom.stdenis@amd.com, michel.daenzer@amd.com, gustavo.padovan@collabora.co.uk, eric.engestrom@imgtec.com, Emily.Deng@amd.com, David1.Zhou@amd.com, CARLOS.PALMINHA@synopsys.com, ville.syrjala@linux.intel.com, Flora.Cui@amd.com, vitaly.prosyak@amd.com, alexandre.f.demers@gmail.com, Jerry.Zhang@amd.com, Rex.Zhu@amd.com, funfunctor@folklore1984.net Cc: dri-devel@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 3/3] drm/amdgpu: move function declaration to header file Date: Sat, 22 Oct 2016 16:48:27 +0800 Message-Id: <1477126107-2466-3-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477126107-2466-1-git-send-email-baoyou.xie@linaro.org> References: <1477126107-2466-1-git-send-email-baoyou.xie@linaro.org> 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/amd/amdgpu/amdgpu_pm.c:37:6: warning: no previous prototype for 'amdgpu_pm_acpi_event_handler' [-Wmissing-prototypes] In fact, this function is defined in drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c, but should be declared in a header file. So this patch moves the function declaration to drivers/gpu/drm/amd/amdgpu/amdgpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 039b57e..c0bc42b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -2145,6 +2145,8 @@ void amdgpu_io_wreg(struct amdgpu_device *adev, u32 reg, u32 v); u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index); void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v); +void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev); + /* * Registers read & write functions. */ diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index 5796539..d77d630 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -33,7 +33,6 @@ #include "amd_acpi.h" #include "atom.h" -extern void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev); /* Call the ATIF method */ /**