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 49D3DC77B7A for ; Tue, 30 May 2023 23:50:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 869C286093; Wed, 31 May 2023 01:50:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="ftVTbZU3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 15DC8858CE; Tue, 30 May 2023 17:40:15 +0200 (CEST) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2429484783 for ; Tue, 30 May 2023 17:40:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ghidoliemanuele@gmail.com Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f70fc4682aso6055935e9.1 for ; Tue, 30 May 2023 08:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685461211; x=1688053211; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sBF0nnLaPRdLXgue4QBHNCa7HfIxhzxaOo8ZXgnJkX4=; b=ftVTbZU3ECN8MTuizcTj4KYLL/4vBO7iOIyv5i89n46RSt3MY4DqKP9nGgHPrVhDtn IcExtgv3FpwgCUxbNEo82iJmP/sx1wl+kYFrQgjpCGdkIQzmXDf1v0AWkV/pTWsDPfMz DpWmp1e+vNmwE1jmwqMkKylVwRcKc3sWwpQFsPsuyEWjPdcvO5H6+/KOnPSxZqmT6E60 M+BFlBnU3zjc2T6J8sgHGSWOijgZNFs2rIYcRLwisLRoAgCdHy4ExuApi1eR86UGs2FL 05+IQ6dDw5glX5VgF63V0UysqcWxK9BmfKkLAIt/mCCHcykaDXJbkQEB+6yDk5UCs/jJ k2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685461211; x=1688053211; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sBF0nnLaPRdLXgue4QBHNCa7HfIxhzxaOo8ZXgnJkX4=; b=j3kJl/SlCqBU3fDRuJ+UmnXB+Ni0vcAvZ2FaF4AowX6o6hXsMWeDXPMo4ZnS9n3qK5 qKAq9ap/TVf+gE95fSBSLpbj9V/uCqwMCcnVYV1+tqxcPEdzE51+2QpokUQzQEu7WPsq 1sGljQmN5bsEjJKEHhTYY0c++FbKTayYOVKFiZUrLn3XTwbsOwFyMB6bdBHGkBcvRo5R 9ZSAbKy4vSRKkZMBk6ONERGVdOTD8i6SMnkmlNuQYi0jMHiyUySnLe7WUSYT+nd0P8Mi zmwiFe8xc89pYEZzzdbMwPjpNBi3q1FLHoZd2qa7I279xt9NgKG79J0aY6Duof23byd4 Jwyg== X-Gm-Message-State: AC+VfDzMEz1YcasafZIHPD0L0dv9r49/f9yrKKRn3O1AZBS/sPYjl32P IW88rTY8UWXZ6lDQfWGxdkYgwmmpNZrwhg== X-Google-Smtp-Source: ACHHUZ5SLwnrig1WkUvIPZyxmDCtSe2daCUjjbDDGbALR6z2n7VJ5ZgOpzNJxjgTyYAxLO2L3U8GaQ== X-Received: by 2002:a7b:ca4c:0:b0:3f6:774:fec with SMTP id m12-20020a7bca4c000000b003f607740fecmr1839893wml.29.1685461211181; Tue, 30 May 2023 08:40:11 -0700 (PDT) Received: from localhost.localdomain ([151.48.123.38]) by smtp.gmail.com with ESMTPSA id x21-20020a05600c21d500b003f6041f5a6csm17822871wmj.12.2023.05.30.08.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 08:40:10 -0700 (PDT) From: ghidoliemanuele@gmail.com To: u-boot@lists.denx.de, Simon Glass , Heinrich Schuchardt Cc: Francesco Dolcini , Emanuele Ghidoli Subject: [PATCH] test: fix unit test build error for crc8 Date: Tue, 30 May 2023 17:39:41 +0200 Message-Id: <20230530153941.2313341-1-ghidoliemanuele@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 31 May 2023 01:50:08 +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 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 -- 2.34.1