From patchwork Sat Oct 22 09:41:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78781 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703337qge; Sat, 22 Oct 2016 02:43:49 -0700 (PDT) X-Received: by 10.99.111.2 with SMTP id k2mr8183468pgc.136.1477129429639; Sat, 22 Oct 2016 02:43:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xe10si611438pab.222.2016.10.22.02.43.48; Sat, 22 Oct 2016 02:43:49 -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 S938459AbcJVJnp (ORCPT + 27 others); Sat, 22 Oct 2016 05:43:45 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36415 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936544AbcJVJnl (ORCPT ); Sat, 22 Oct 2016 05:43:41 -0400 Received: by mail-pf0-f174.google.com with SMTP id e6so70610349pfk.3 for ; Sat, 22 Oct 2016 02:43:41 -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=TaKEJCoTk5B1a7Hn0wWoU69sSa0dQOaAGRLPCWB5jBQ=; b=VdoqIC6BoZSfKuOuQP47Ic9CsQnsEepQSHDVvTdTDIkvglEM8I3IAq9h5/TaU3qysJ 5Sc7wxiwTFTMVF/mB8dAIBF1Lq3AFvp8CY9AclUtdHzwT0127tg9zgJl9iAWLKsoYujC yrktHENsgCBSjyi46Gaw8xU2D3JKjLfbFhwzI= 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=TaKEJCoTk5B1a7Hn0wWoU69sSa0dQOaAGRLPCWB5jBQ=; b=Rd1f3VWcsg55OxnqoV9uIyS35viaWxEPek20CLjO5aim71eHzihPpf2NMJ+SXUi33m nbdLXlTXmeQwH5yZqhun3t0zQhcPe7EbCuUDBG+w28xgTqmigEBpVMFJTeEjRdPoIJ55 FQ5zvM8isfeMNkpUWzmwa482GrHRcQekd58QjBVt1vCbrhdKag+fj/Tu8YJyFuiM0USm ZHisPhn4BG91VW4bqWUPS29/Qul4WYcoTiirduU2DPoxeZB2Xpi8T6VWm9IdvpwiMbmK eWgeWzuy9DZYK7XEMCTwtECLPA+MbA1MVUW1XW5ab+9/T9MiQhI3ases0WvyDL+qIQxR IjuQ== X-Gm-Message-State: ABUngvctB3BzoNByDvS465mSzHjY5bF+jetyYTXcHTzJzCZ3JtvbhGOXp+V9hqtdZZuLmkvi X-Received: by 10.98.200.15 with SMTP id z15mr9856567pff.128.1477129415981; Sat, 22 Oct 2016 02:43:35 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.43.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:43:35 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie, acourbot@nvidia.com, imirkin@alum.mit.edu, Julia.Lawall@lip6.fr, martin.peres@free.fr, rspliet@eclipso.eu, nouveau@karolherbst.de Cc: dri-devel@lists.freedesktop.org, nouveau@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 08/17] drm/nouveau/volt: add missing header dependencies Date: Sat, 22 Oct 2016 17:41:49 +0800 Message-Id: <1477129318-29677-8-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> References: <1477129318-29677-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 3 warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c:35:1: warning: no previous prototype for 'nvkm_voltgpio_get' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c:54:1: warning: no previous prototype for 'nvkm_voltgpio_set' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c:71:1: warning: no previous prototype for 'nvkm_voltgpio_init' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c index d2bac1d..443c031 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c @@ -25,6 +25,7 @@ #include #include #include +#include "priv.h" static const u8 tags[] = { DCB_GPIO_VID0, DCB_GPIO_VID1, DCB_GPIO_VID2, DCB_GPIO_VID3,