Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98B15C43458 for ; Mon, 13 Jul 2026 13:23:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D45E84B9D; Mon, 13 Jul 2026 15:21:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sony.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sony.com header.i=@sony.com header.b="JsMuEiXh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 694BF84A4C; Mon, 13 Jul 2026 10:31:50 +0200 (CEST) Received: from jpms-ob01.noc.sony.co.jp (jpms-ob01.noc.sony.co.jp [IPv6:2001:cf8:ace:41::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1CF5684A48 for ; Mon, 13 Jul 2026 10:31:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sony.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Jacky.Cao@sony.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; s=s1jp; t=1783931507; x=1815467507; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tWb6b4uSfOSZfOYaGpWRDtkfu3pCY8CZ9AYrhMH0cYM=; b=JsMuEiXh8N0cxQbdeTrg+9kDvqsc8JSXY7n/7d4fP6Hd6GGfL6PUQWeW pBRJjOuzh+7DaUt90ayZCl06L1GFVnMMsISjuoqUpljBdIYLcnCxpJCkZ S2cYf4MexbmXYze1C24R3H7EPGE9kCT29uFpP3MGWZ1BJofcrME1FjYy+ p50QKWYeTIA47Krdq6WXBAUmW/SzX3xyvpGdsY1NxpWDVxvDSza1ndVO0 TjgCZgfPPO5nx1ttBeO+6dj0DuzM/fzXTITEe+E1JHBNaFdY+yI9wTP4s SGmUWoeYkfKpXgrRGMxHQDJUT9PwmQ8VpcQjo8fSdD5SvyldlFPygQKEI Q==; X-CSE-ConnectionGUID: yh+Bm3vhRbmuRr8BzKXwdw== X-CSE-MsgGUID: kRn4Tw4OT7KI5/bao4jjjw== Received: from unknown (HELO jpmta-ob1.noc.sony.co.jp) ([IPv6:2001:cf8:0:6e7::6]) by jpms-ob01.noc.sony.co.jp with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 13 Jul 2026 17:31:45 +0900 X-CSE-ConnectionGUID: CS6S1FNvSR+eFWMf2LzOsw== X-CSE-MsgGUID: dgUYJ5h/TPuAOs8OXTRRUw== X-IronPort-AV: E=Sophos;i="6.25,154,1779116400"; d="scan'208";a="655292138" Received: from unknown (HELO cscsh-5109201560-dev.ap.sony.com) ([43.82.111.224]) by jpmta-ob1.noc.sony.co.jp with ESMTP; 13 Jul 2026 17:31:43 +0900 From: Jacky Cao To: u-boot@lists.denx.de Cc: trini@konsulko.com, nora.schiffer@ew.tq-group.com, Steffen.Doster@tq-group.com, alexander.feilke@ew.tq-group.com, Max.Merchel@ew.tq-group.com, peng.fan@nxp.com, Jacky.Cao@sony.com Subject: [PATCH v1] env: Fix compile error for envtools Date: Mon, 13 Jul 2026 16:31:41 +0800 Message-Id: <20260713083141.2772971-1-Jacky.Cao@sony.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 13 Jul 2026 15:20:59 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean Following error happens when build envtools for mx6qsabrelite. $ make tools envtools UPD include/generated/timestamp_autogenerated.h HOSTCC tools/printinitialenv GENENV u-boot-initial-env COPY tools/version.h HOSTCC tools/env/crc32.o HOSTCC tools/env/ctype.o HOSTCC tools/env/env_attr.o HOSTCC tools/env/env_flags.o In file included from ./arch/arm/include/asm/mach-imx/regs-lcdif.h:16, from ./arch/arm/include/asm/arch/imx-regs.h:371, from include/configs/mx6_common.h:21, from include/configs/nitrogen6x.h:13, from include/config.h:3, from include/env.h:12, from tools/env/../../env/flags.c:7, from tools/env/env_flags.c:1: ./arch/arm/include/asm/mach-imx/regs-common.h:51:9: error: unknown type name 'uint8_t' 51 | __mxs_reg_8(reg) | ^~~~~~~~~~~ uint8_t type is defined in linux/types.h header file. The config.h includes regs-common.h that uses uint8_t type, to fix this, include config.h after linux/types.h in env.h file. Fixes: 9f1807e57cbb ("env: add env_set_runtime() helper") Signed-off-by: Jacky Cao --- include/env.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/env.h b/include/env.h index 9b872fb26eb..dcd017fa5e6 100644 --- a/include/env.h +++ b/include/env.h @@ -9,10 +9,10 @@ #ifndef __ENV_H #define __ENV_H -#include #include #include #include +#include struct environment_s; -- 2.34.1