From patchwork Mon May 2 10:59:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102401 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1012842qge; Mon, 2 May 2016 03:59:45 -0700 (PDT) X-Received: by 10.66.164.133 with SMTP id yq5mr4925419pab.107.1462186785405; Mon, 02 May 2016 03:59:45 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTP id c141si1846672pfc.233.2016.05.02.03.59.45; Mon, 02 May 2016 03:59:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E4DB6E588; Mon, 2 May 2016 10:59:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9B35F6E588 for ; Mon, 2 May 2016 10:59:42 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0Lawnp-1bPcVz1Ay1-00kfwx; Mon, 02 May 2016 12:59:34 +0200 From: Arnd Bergmann To: Rob Herring , Frank Rowand , Grant Likely Subject: [PATCH] of: include errno.h in of_graph.h Date: Mon, 2 May 2016 12:59:19 +0200 Message-Id: <1462186769-2205767-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:BtnKSiAj5Jcq0cZG3e3OuVYvdo8ZXebGEHjlF9c0Hkvw7x72PLW 3Enh8L+d2k0BLtL50KsGvJqOz/MJmilXwYvllaV1P7pSlXQSTZTJ9wT0otAjpd1urWR2lFe IasOR0b3Qa/Ul0qYiNxj6kzWM+JEz6oyjmAULmJngU3kb/KNDsqnaC//0Pj5O9lNIW1daFx Dr6cx1lWK9u7jw2Roy4oA== X-UI-Out-Filterresults: notjunk:1; V01:K0:CXjM6jfuB1M=:WiitFmkBZ7txzaB5sU1MMq AqdlX+Zn0mGxSdna6Hgj8puAYPEq0nMy18OfHHgkuzKShwwUQ/uUkWETqYKuCJ6C2xjs3dJ2b Ql5acisnKbWRdmEWvki/4FrB83MF1YqkOpSidhD5skPVj4ZeSgj2DmmoWru/YSJelDAa4u4Dp FA8MMJlNPbueqMfH6c2POH1HPCTXlN3O57p8cTlY+aOgY57cVD7IatIR8Tv0YxkSzqKVulwCR Zh2KmmcLiwTqTq/E7Sw/6liwNIvxBGV4I9HgxSVe+F8WMiA6DEvtmdd54qIE1dU+2grA55xky TQ4SxU/VpajZq9buEZR7JOpsnjs80wJy1A+7aeUA0JIURAzOfE6z9reeO0xvJUFppZrAnuSdd 2+QjTGjU1TCHhl1lRG/91mOuldyE4EeM2wP/x1idAS11g/2UUExb/Mz+XZ6/Fb38L7R4G3G0F K+3YxfCYJ9WgCqJcsxPtHnMGfa+/zfJth41MpMNPifRafYuMkNv304m/nUWRtck2EisA2BxEz gWOGrHt0x/eXJBwiF4OvZYhnqhNybgEu+9gPlBeMfjOFA35ITpFtpXmDvvXov1kpUN5lTDSwU tuZA0rZ0OgT0a8EsZ2BFRrLFrzamwawHL/aSzZKs1Y+GNiLseXxyFgSgQCgUItGaB1tfiDq3R N7MBp44H/S/DkpOuyXd7bBhES5LcJjxQPddXlqRBP5QXp18cfxJiXrLFU31dJJMr15MM= Cc: Arnd Bergmann , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Dave Airlie , Maxime Ripard , linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When CONFIG_OF is disabled, we have to include linux/errno.h before including of_graph.h, or get build errors like in the newly added sun4i drm driver: In file included from ../drivers/gpu/drm/sun4i/sun4i_drv.c:14:0: include/linux/of_graph.h: In function 'of_graph_parse_endpoint': include/linux/of_graph.h:58:10: error: 'ENOSYS' undeclared (first use in this function) A better solution is to ensure that the header can be included by itself, so let's include linux/errno.h here to fix the error we just got, and any similar future error. Signed-off-by: Arnd Bergmann Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support") --- include/linux/of_graph.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h index f8bcd0e21a26..bb3a5a2cd570 100644 --- a/include/linux/of_graph.h +++ b/include/linux/of_graph.h @@ -15,6 +15,7 @@ #define __LINUX_OF_GRAPH_H #include +#include /** * struct of_endpoint - the OF graph endpoint data structure