From patchwork Sat Oct 22 09:41:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78774 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703038qge; Sat, 22 Oct 2016 02:42:29 -0700 (PDT) X-Received: by 10.98.14.197 with SMTP id 66mr9619681pfo.123.1477129349867; Sat, 22 Oct 2016 02:42:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 145si6217886pgc.315.2016.10.22.02.42.29; Sat, 22 Oct 2016 02:42:29 -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 S936559AbcJVJm0 (ORCPT + 27 others); Sat, 22 Oct 2016 05:42:26 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:36231 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753383AbcJVJmY (ORCPT ); Sat, 22 Oct 2016 05:42:24 -0400 Received: by mail-pf0-f179.google.com with SMTP id e6so70599777pfk.3 for ; Sat, 22 Oct 2016 02:42:24 -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=U5fVk2/3SspfPYwvn/i8pm03TVa8yijRWQ1ndqFPEl0=; b=XLYoNmmBxo8uHVgfrA/nO8n1XNAeo1uVhXo1T9Abz0RHNBePp9NOhOMx/9d72PXd7o 3J08CFgBm7wiPtHqZ4bnu5enKkzaNU36SuPI+PtTfdlDZdNGqBdc4ddToSxaOdtOI0cy k+RqQSunsprriS7KkgEO5B82xwzhtHcca0aoo= 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=U5fVk2/3SspfPYwvn/i8pm03TVa8yijRWQ1ndqFPEl0=; b=WagMfGHHaQojYLZhTY1J8Ymg5Tw7Rs7f0t3NnzLvio5WjR35LsnbJlSeOc2/TCUxpH +q4terYR3O0AFcZc972D/ruI/okQbYOGfYRUKZo+8Q0Gf+ZMm3lalm/vWv6Mi2Jl+s8D wbn4FmmAnMQqYf8lz2zXIV/pLLY3EQVhZCuojVrJo2398s1mmHvh1a0H03xGVjmGIjso KCFMabXoFGoXQwrUvgqi0rMhzNOQJFxds4yDVsf6LVKe8xNl6rDZRlbFtTOdfGeQmVjk BsfBc47xD528QqoofhrymklLPEUmK02PFb48UbSq+iVQaMokd0YEUlnCyuHrWOqVmamL MsxQ== X-Gm-Message-State: ABUngve6i/ToZbOBX9qgbVsjGCZOE8KEf+3WFbb9oQJqPoe71/4em1YexmMXF/UUpD7i7QSp X-Received: by 10.99.60.86 with SMTP id i22mr8214813pgn.24.1477129344116; Sat, 22 Oct 2016 02:42:24 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.42.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:42:23 -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 01/17] drm/nouveau/core: add missing header dependencies Date: Sat, 22 Oct 2016 17:41:42 +0800 Message-Id: <1477129318-29677-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 2 warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/core/firmware.c:34:1: warning: no previous prototype for 'nvkm_firmware_get' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/core/firmware.c:58:1: warning: no previous prototype for 'nvkm_firmware_put' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c index 34ecd4a..058ff46 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c @@ -20,6 +20,7 @@ * DEALINGS IN THE SOFTWARE. */ #include +#include /** * nvkm_firmware_get - load firmware from the official nvidia/chip/ directory