From patchwork Mon Feb 17 13:14:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C3=A9bastien_Szymanski?= X-Patchwork-Id: 1239215 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=armadeus.com Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Lkx349Xlz9sRN for ; Tue, 18 Feb 2020 00:15:02 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C39AF812B5; Mon, 17 Feb 2020 14:14:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=armadeus.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id F1BCC812BB; Mon, 17 Feb 2020 14:14:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SUBJ_OBFU_PUNCT_FEW,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from 9.mo173.mail-out.ovh.net (9.mo173.mail-out.ovh.net [46.105.72.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4A32281267 for ; Mon, 17 Feb 2020 14:14:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=armadeus.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sebastien.szymanski@armadeus.com Received: from player794.ha.ovh.net (unknown [10.110.208.131]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id C39C112A323 for ; Mon, 17 Feb 2020 14:14:47 +0100 (CET) Received: from armadeus.com (lfbn-str-1-551-177.w90-126.abo.wanadoo.fr [90.126.248.177]) (Authenticated sender: sebastien.szymanski@armadeus.com) by player794.ha.ovh.net (Postfix) with ESMTPSA id 47466C71DDCF; Mon, 17 Feb 2020 13:14:45 +0000 (UTC) From: =?utf-8?q?S=C3=A9bastien_Szymanski?= To: u-boot@lists.denx.de, Simon Glass Cc: =?utf-8?q?S=C3=A9bastien_Szymanski?= Subject: [PATCH 1/1] dm: pinctrl: include linux/errno.h in pinctrl.h Date: Mon, 17 Feb 2020 14:14:34 +0100 Message-Id: <20200217131434.5777-1-sebastien.szymanski@armadeus.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Ovh-Tracer-Id: 10504364657102509081 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeeigdeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffogggtgfesthekredtredtjeenucfhrhhomhepuforsggrshhtihgvnhcuufiihihmrghnshhkihcuoehsvggsrghsthhivghnrdhsiiihmhgrnhhskhhisegrrhhmrgguvghushdrtghomheqnecukfhppedtrddtrddtrddtpdeltddruddviedrvdegkedrudejjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejleegrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshgvsggrshhtihgvnhdrshiihihmrghnshhkihesrghrmhgruggvuhhsrdgtohhmpdhrtghpthhtohepuhdqsghoohhtsehlihhsthhsrdguvghngidruggv X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.1 at phobos.denx.de X-Virus-Status: Clean Otherwise the compilation fails with PINCTRL_GENERIC=n : In file included from drivers/pinctrl/nxp/pinctrl-imx8m.c:7:0: include/dm/pinctrl.h: In function ‘pinctrl_generic_set_state’: include/dm/pinctrl.h:319:10: error: ‘EINVAL’ undeclared (first use in this function) return -EINVAL; ^~~~~~ include/dm/pinctrl.h:319:10: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: Sébastien Szymanski Reviewed-by: Simon Glass --- include/dm/pinctrl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index 692e5fc8cb..2012bb941e 100644 --- a/include/dm/pinctrl.h +++ b/include/dm/pinctrl.h @@ -6,6 +6,8 @@ #ifndef __PINCTRL_H #define __PINCTRL_H +#include + #define PINNAME_SIZE 10 #define PINMUX_SIZE 40