Message ID | 20200112120216.15.Ia17e6b1cf15e09c3ff420ce4023dfbe236e72658@changeid |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=hOhVIUCw; dkim-atps=neutral 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 47wmVv2222z9s4Y for <incoming@patchwork.ozlabs.org>; Mon, 13 Jan 2020 06:09:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 315CA817FD; Sun, 12 Jan 2020 20:07:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="hOhVIUCw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1D66804C1; Sun, 12 Jan 2020 20:07:20 +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=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (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 AAFF680E80 for <u-boot@lists.denx.de>; Sun, 12 Jan 2020 20:07:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd44.google.com with SMTP id b10so7246672iof.11 for <u-boot@lists.denx.de>; Sun, 12 Jan 2020 11:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pGiYHyDsikBCpvxMvqLio3Gy+K8h1L1PnK7RIxpYJac=; b=hOhVIUCwEmqm1K/xpL3pASBdx9EwsP4/EIbcN2DEiK6K4+i7tDCIg5ugqYrpB48yWN Wad7gIBApeZop83a68iTAeML1V7jDGkixEBz2rw4OXlYfKYPTV8Tr0BZ6wLsAJsGPIt1 52t7sLeaUA/DOX+0WsQ2/VtZPj7C+Cwe3AGMU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pGiYHyDsikBCpvxMvqLio3Gy+K8h1L1PnK7RIxpYJac=; b=saisSHjxVFGFO2TI1WR1A1aBas6jBn8P8bp2nOJLTYAnHTidPQtwjRj2eSpu/8snEM rTqb1Nnr2FggpIYfHdFaTLK6f+n/JI4CxithQ6LlLHZslzOIvbDXpoukDrKoVxCx1gDZ P8yXm6KIgrRQKSUncWLukSCOT7QTzidf/kWXdHSaaKYyWjDNmtoa3t4spoYZAhC66ay5 rCwP2K8LnjvVzjMWSidpwVTnI4cn8QV4ogZ4udvBwjph5/wfJq1Gk7w/HMVMZiH379Bi Ba2LbibvpfWdPxDI4C3ozxQGvQ7jc1sm808su6Wkor3hrD+6m1vApmOSlpGLNQiBNiHS gohg== X-Gm-Message-State: APjAAAUebek0KXLSPi/hSoABNmAvme5VVpnpc2iLQy+RTRJ/zpRbeOgD aUYKxF0Ot3BXmH3HpQ08UBMmtopmdko= X-Google-Smtp-Source: APXvYqwH69gbaM3H8mlJGaTb3ORqBUPsp5/AfZ5LiaIypL8jFOuv1Qzgt0cYzVjqVxuQatIOIwZ6tw== X-Received: by 2002:a6b:6813:: with SMTP id d19mr10347559ioc.52.1578856036468; Sun, 12 Jan 2020 11:07:16 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id r22sm3039219ilb.25.2020.01.12.11.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jan 2020 11:07:16 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [PATCH 15/33] sandbox: Rename strdup() functions Date: Sun, 12 Jan 2020 12:06:06 -0700 Message-Id: <20200112120216.15.Ia17e6b1cf15e09c3ff420ce4023dfbe236e72658@changeid> X-Mailer: git-send-email 2.25.0.rc1.283.g88dfdc4193-goog In-Reply-To: <20200112190624.79077-1-sjg@chromium.org> References: <20200112190624.79077-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Cc: Thierry Reding <treding@nvidia.com>, Tom Warren <twarren@nvidia.com> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
sandbox: Move to SDL2
|
expand
|
diff --git a/include/linux/string.h b/include/linux/string.h index bb1d5ab07e..d67998e5c4 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -91,6 +91,11 @@ extern __kernel_size_t strnlen(const char *,__kernel_size_t); size_t strcspn(const char *s, const char *reject); #endif +#ifdef CONFIG_SANDBOX +# define strdup sandbox_strdup +# define strndup sandbox_strndup +#endif + #ifndef __HAVE_ARCH_STRDUP extern char * strdup(const char *); extern char * strndup(const char *, size_t);
These functions include calls to a memory-allocation routine and so need to use the system routine when called from a library. To preserve access to these functions for libraries that need it, such as SDL, rename these functions within U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/linux/string.h | 5 +++++ 1 file changed, 5 insertions(+)