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 D16FFC7EE24 for ; Wed, 31 May 2023 09:00:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E35FA860C6; Wed, 31 May 2023 11:00:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.de header.i=xypron.glpk@gmx.de header.b="c+B9dDIt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EAD2D8611C; Wed, 31 May 2023 11:00:13 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 DB31486074 for ; Wed, 31 May 2023 11:00:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1685523606; i=xypron.glpk@gmx.de; bh=oJyY5WOrWtTtWmwwt14cVksA7haK9wNcLuKQQi6aT7w=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=c+B9dDItpJsaK1Pk+D9fF/SDwbEFIVgcGZOHw1nmnjaY5TXRUxrEfztr9QW0s6wQj mlH7AYBQOXsJN3jRB4cV01jSI8AB91LAiwLAUiclEaVAlZvy/GTeb2Tuw0teL0jeON dnLcyEahgiJ+Q/jNuS3LAhFsyCmWHOEKO/r7hVPsUJmcQpgwyLZE8oevYEEKP5dILw os/gPhdgVNyzqGQ37/tMjFg6BkPF+ALVH9pEVvvnhtK0hDkp2NIS1/OhnE/rqoVzZS 0tGcv6WSIawmnZbuGIkzhgWYuKsFVxiYAmvAh1yo+0pG63iry7MfQjYzKM/wgl+29g OiLwVSSJkBYCQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.123.94] ([88.152.145.137]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCKBc-1puyIO1WRW-009SfO; Wed, 31 May 2023 11:00:06 +0200 Message-ID: Date: Wed, 31 May 2023 11:00:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] test: fix unit test build error for crc8 Content-Language: en-US To: ghidoliemanuele@gmail.com Cc: Francesco Dolcini , Emanuele Ghidoli , u-boot@lists.denx.de, Simon Glass References: <20230530153941.2313341-1-ghidoliemanuele@gmail.com> From: Heinrich Schuchardt In-Reply-To: <20230530153941.2313341-1-ghidoliemanuele@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ailwpLdoKVZaEJBQHir+qEnNvVQGyVucQ4uW6DHme1KfUSxHX3u TIk3r9MTUBKAbpQzzqTTvymc9OjJHgJudGvyv9R8sp5JkM68w7zt4oMnk/72a6fytJ/8JvC 2IoMgXVOQYG9gXIFhNygmHU/YuX3eyLfCligl8m08dr6Esb9OvIFn/hfiU4XgUxx5sBAgZx VVpoSKe/OJDjJU9p/DzrQ== UI-OutboundReport: notjunk:1;M01:P0:EYYplTcnpBg=;FNvfEnRzdSRI/+fPI0/OvpzdHvH Qd99GaJ/XfGts62z8LxYKrjg8jrov3yT6Y10hxmpg/LbamFPVxHKREA7eE6RU9kz6nEHeh2is OSJfCPZ8eqFQrKtGc41hDvbipH4amYsv+Ri/ll5XlsECpF+0rdkDMQ5m7IDEsM7c0hSLC/HNi EGpPo3ER+TYeFbEMmJE3rq0Dpl9+dcErkXfF3IP8UJO9iwd49b0+mEMLGu1KUN3veaAoMn5Hc zgbkbXkrcd+KyJC0OZsnIGS6P24hI+C3D/kYUM0avQkErufOsrj2AhOqfWDOryA9vO9FBbntR 89zF3Gkyo9SnBFqz/efOXStkOxzvdigqI83LXz+Fy9j0b5RD+45e0Dd/iPJ7+nzaYcOdanNDz PNXW+K7DNNUreT6ZEfeHQlb+dHB2AM4CluE8PSqRp4EQ77ELmwqhhmlckUw55Sw2m8MyB5X2c DOxX1jdNp5YqmJ8eJ9cOUDtq87yNfTdXJbP7m/HrFzyvX6ng52dlHW1vL4hUa7Twfn8P2XF/U ZpSJBG3R6vGD6C2/OQq6gLopRylmg9qnXkrU3RyZFQDccOqtrK/rIg1xAZySBj6NRIUlMP3LB 6PfpuvuDnOhje7HSC4hX791OwjmBaYsniHe2l97C/nEaTwOaavH02JP8+kZ2BHU+vMIvSMPRz Nyf/5XgbH7E4r6pT2/pk6dUksVZl9YYnBBQmA476EmInLdOkC4wtLLkh4y0yG1tT6TeYpUjRE M3uazahdUYjMIzeiIi5k7NMMSdYD7wBpIbmx4OAcuRpHQJXg1HP+ooViqHF8Rn2gMqU8SxPVh ZWmgGa0HTvz/uZ674WQuY1Gy+jNs2TAefRb+DHmG3yDfY1xO3vt+HNLfH3e0Nsa16Ni56vSgd ErVxEoMnavaeyxqw4LKo9Lpx2sTuxc5u6TT4r8KJCw7DMnurgprWexbN/arim847CSYSQ89BZ St0a4Sb6oyZqyjfs4z3JTBAsEnY= 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 On 5/30/23 17:39, ghidoliemanuele@gmail.com wrote: > From: Emanuele Ghidoli > > Build fail due to ENOSYS undeclared if CONFIG_SANDBOX_SDL is not defined= . > Include errno.h before including test/lib.h. > > Fixes: 3080ddf970b1 ("test: unit test for crc8") > Signed-off-by: Emanuele Ghidoli > --- > test/lib/test_crc8.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/test/lib/test_crc8.c b/test/lib/test_crc8.c > index 0dac97bc5bfd..5037db806d09 100644 > --- a/test/lib/test_crc8.c > +++ b/test/lib/test_crc8.c > @@ -5,6 +5,7 @@ > * Unit test for crc8 > */ > > +#include > #include > #include > #include Thank you for reporting the issue. Unfortunately this patch seems to add a change in the wrong place: For sandbox_defconfig with CONFIG_SANDBOX_SDL=3Dn I get: In file included from include/test/test.h:156, from include/test/lib.h:9, from test/lib/test_crc8.c:8: ./arch/sandbox/include/asm/test.h: In function =E2=80=98sandbox_sdl_set_bp= p=E2=80=99: CC lib/libavb/avb_util.o ./arch/sandbox/include/asm/test.h:323:17: error: =E2=80=98ENOSYS=E2=80=99 = undeclared (first use in this function) 323 | return -ENOSYS; | ^~~~~~ ./arch/sandbox/include/asm/test.h:323:17: note: each undeclared identifier is reported only once for each function it appears in The file to fix is /arch/sandbox/include/asm/test.h which uses ENOSYS without declaring it. Please, update your patch and add a line Fixes: 67a36465216a ("sandbox: video: Fix building without SDL") Best regards Heinrich