From patchwork Tue Nov 5 10:24:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 840754 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1ace:b0:37d:45d0:187 with SMTP id i14csp265482wry; Tue, 5 Nov 2024 02:25:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXDyttaLSRCzmmlk4k+CtOdtNWMHjRIs1jtx0mdIZIQaFyYszTnsy9N9cuYeoCbrsvylajjgQ==@linaro.org X-Google-Smtp-Source: AGHT+IG9WMZ5jPAsOyRIxrJtYryZA/NLD6Ahogj3DqpxHOyozCtUopYfDtHKuGa+ds8ENsVbJQoz X-Received: by 2002:a05:600c:3b04:b0:431:6083:cd30 with SMTP id 5b1f17b1804b1-43283242a2bmr155877975e9.6.1730802317453; Tue, 05 Nov 2024 02:25:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730802317; cv=none; d=google.com; s=arc-20240605; b=j8A/uVXnR1rSGwcEtPdr/3yJDykhFDAVPI5NqEVMsbA/pU71bqWqs4BL3lrAwtIVOR Zz+B3RUWjaOCMq8pHaQ96IT9f6QWvF2PkrrvgB5Bo81ssLvdykND/whKs2lsQjzLjjE1 58u6PLy/vO4loQkLXL/HhQ2jsWrGK8PYgFWOY/DAKc4lkwwNGRycYFzGpK8v5oseocOO HneK4umMo1YouleIvEnGSW8fMY5AGaRnprczIs7b8g4BfOW2r/Qi4jKpf6nlo63d09b8 R/W0zhyOfMQVGIYHhR8YqfasLw0ap1EISOoxNKHR+F76AASVw68marqsDXk0OMibNu77 6bOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=9bHw7K9BgH5k+SryguSsfvzZySLmUUR4xk5OTHD6sEw=; fh=/dKZjgRYptzKmwQRH6cGJL0BpLKaYwj+lsP5kSUu+pg=; b=Y+7ptsa5rzfT1AYteSzw3Y7ZPSG2eqWWLgdMFKTx0ss+XAOv9g92S0To0B56SMO+UV C+pz9attG+Q4BU+JqexRs5lmeeaAFBnYFuk77e4kgZqMOE5+H1YEX3JyWwca8QtwBYNL 8y45UDgX8/Go20Xf8XWRnD2c3I/u+SZsSndxFB1lc0SJkqzR/Wldt1HAwTZX53UXkr+E 7fcH8+PklEbDwA+wh3WdgZzZCpeabYysy5jlB2QjmA4NDUTjdCdYRExHEFNqVIb4SdUA ZA+9xmU/QMdEVHXD+SyT6BnyexbU6gTGSQNFq3AxE6X4siJglyqlc/iGvvOJqVMM1kk7 MKjA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhyGKBq3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ffacd0b85a97d-381c119aae5si7332038f8f.653.2024.11.05.02.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 02:25:17 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QhyGKBq3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15A1788DE9; Tue, 5 Nov 2024 11:25:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="QhyGKBq3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2B3BE8903C; Tue, 5 Nov 2024 11:25:15 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 47BD788CF1 for ; Tue, 5 Nov 2024 11:25:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4314f38d274so62576325e9.1 for ; Tue, 05 Nov 2024 02:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730802312; x=1731407112; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9bHw7K9BgH5k+SryguSsfvzZySLmUUR4xk5OTHD6sEw=; b=QhyGKBq39MeJj7vUC4xc7cMqivIdlKd1aNtiwcsAJ86dpSMBOhChZnn9P2OYorVpZI Nk0ntKYgDJN9aOaKdZy2vKbpOhPY9IAYbwtpYcuwrFMl3W7qxAVKsR+pd3EEq11+6HTk I9K1pw8BvMPZMUQT0qF4UQvgVdBelbtLkO+b2DrKO2H5bgwmtUAcpjp8wMlO+If11c1U /GnJKWrEjjUXcpN2uitgmaLymkQdFPLvlHENCsEewnMzl9tY2m1r1oJ0i7sn9xdLufXg VJ/sSjvgtzMrw+VyhJWraHNJCj+eAxiy9feZu/IRFE/gV/pEDLGR7pttBmkHe+ETDmd6 39RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730802312; x=1731407112; 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=9bHw7K9BgH5k+SryguSsfvzZySLmUUR4xk5OTHD6sEw=; b=iI5S6PWD1KRR6x6k68HTEr7kkQNCm2uw9V6WA17qECWDI0wjABisSw9cxJb06/Dro3 /VzElYWs0HbUtDjxgcuK6neX3skFTBRmdpC8vOM6tTOMKlyiPfiPD8bOzvoYn9HFcIsG wRdXPVtQEWJUc6pTq7+0BAzWILeMqDR9+OSnxKITPzMODi0lGJaYIs02hPz7yevUNjIA p8xnINqqJN2l0qFIb+U/OuW0vCfWunRhVtQ9PLwnAgzLEv0UuaZmrkUPcARPE7LgyYnr 0TeeZbUDNJaqnOgB9JDGZpl2DY7TLrCxMb8VQb/F+oMocXxNvmUTuJkHp/p9NU/96kDq 6P+A== X-Gm-Message-State: AOJu0YyOXnhGaIGnEIvLTHUANlDUjmBmTdsFU4OmYE8NXbazGnHAQZ4J 2kMOXmeYIS63Y9q0LF4QN4J/VtoSorbZAr2C8+1qgP9M26D9xBiuBu4Z+7U2ExDQJOBZzy47/WQ f/fO4Q1AK X-Received: by 2002:a05:600c:4455:b0:42c:b508:750e with SMTP id 5b1f17b1804b1-4328324ae6cmr161445835e9.11.1730802312571; Tue, 05 Nov 2024 02:25:12 -0800 (PST) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-431bd917fefsm209675835e9.16.2024.11.05.02.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 02:25:12 -0800 (PST) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Jerome Forissier , Simon Glass , Joe Hershberger , Ramon Fried , Tom Rini , Ilias Apalodimas Subject: [PATCH] sandbox: net: lwip: use EOPNOTSUPP not ENOTSUPP Date: Tue, 5 Nov 2024 11:24:53 +0100 Message-Id: <20241105102455.10141-1-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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 EOPNOTSUPP is the recommended SUSV4 error code that should be used instead of ENOTSUPP. Signed-off-by: Jerome Forissier --- drivers/net/sandbox-lwip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sandbox-lwip.c b/drivers/net/sandbox-lwip.c index 3721033c310..5c9a0cb1b9f 100644 --- a/drivers/net/sandbox-lwip.c +++ b/drivers/net/sandbox-lwip.c @@ -27,7 +27,7 @@ static int sb_lwip_eth_send(struct udevice *dev, void *packet, int length) { debug("eth_sandbox_lwip: Send packet %d\n", length); - return -ENOTSUPP; + return -EOPNOTSUPP; } static int sb_lwip_eth_recv(struct udevice *dev, int flags, uchar **packetp)