From mboxrd@z Thu Jan 1 00:00:00 1970 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 B5C85C433F5 for ; Mon, 20 Dec 2021 23:19:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3188083788; Tue, 21 Dec 2021 00:19:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dionne-riel.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=dionne-riel-com.20210112.gappssmtp.com header.i=@dionne-riel-com.20210112.gappssmtp.com header.b="vS5eGf1y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A13EA83788; Tue, 21 Dec 2021 00:19:23 +0100 (CET) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 507AE83772 for ; Tue, 21 Dec 2021 00:19:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dionne-riel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@dionne-riel.com Received: by mail-qt1-x82a.google.com with SMTP id o17so11343282qtk.1 for ; Mon, 20 Dec 2021 15:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dionne-riel-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=tXMCIL8ukLGpggoCksG6xwB/FH0p+NYQy2ivi4ULmRE=; b=vS5eGf1y3ITEECHhOzzZdagJjWZE0fPSX0HnhfWI/ziR1Xj9U7Ga7M7sGd2PLLhIQj uCqS2LlWJFFmtr5+gbpWijZRj6PU1ACNeidLECf/chB4OQiy4I8b6rjYaot3J7qk8EQq kB5rexQXXtFcFd/dpmJ041OOo/DnxEpOJn1hYOqBraAPV7G6KSScCDOTLqbrhC/7XAvk 60FIro4IGUz9GoMgkvyXjff6jFKrJWXRZvur/Dl42e2OmpGPdec6kbSwhf/FLW6CEn5K gtVtVevCfqaPttprX1Jpj+caET2365bOwHeh1z0yu8GW9KAAT0hkduK6sl5gJkJwlve2 t+MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=tXMCIL8ukLGpggoCksG6xwB/FH0p+NYQy2ivi4ULmRE=; b=3Oka8W5qokgaxC2H6BVj6MeBPtFJgEUa6tcmykmOLTVeq+Ufp7feWvJuVlZx7OJ7wC tVsOwuICAWPlKoTL3vy3CTNe1FqV9OKU4de//ryBbnfRAhrMlsfhtfTRCFpA2YRkQeEd X9mySkpgq7FWOfn57kXZpwBk239Dusd4iz3Bjz8Y38p7cdNgiLM7xfyXTDAjPJdIPSfI ZJw/9Wmmo5BM1yOFscurHoYjy/RIfiCdhWZUH4zepryCJ5qgZOm08jv0FuOYgcTORbF/ UvfJjRgVsLaATDChr4fW5KcFloh9n9FxH8EKGDDoB5sZ2RK+JVc+KyWxsf93ePLW1fof KFuw== X-Gm-Message-State: AOAM533D+teqcLDwys2h5PuTXfy48eNbocQtS0uTQAC2I2iQb/FRKnLZ L2gYbByVc5GYSby144zFimYMySTGxIBa0w== X-Google-Smtp-Source: ABdhPJy79fszIDRjI1tBtqEEPQIPV9LT/D7goSu4GE7wbr0Edt91HmIVBc3tBCOiQ1ssxetqOJwTjA== X-Received: by 2002:ac8:5dcf:: with SMTP id e15mr272451qtx.567.1640042358867; Mon, 20 Dec 2021 15:19:18 -0800 (PST) Received: from DUFFMAN (135-23-195-85.cpe.pppoe.ca. [135.23.195.85]) by smtp.gmail.com with ESMTPSA id s9sm7065883qki.99.2021.12.20.15.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 15:19:18 -0800 (PST) Date: Mon, 20 Dec 2021 18:19:16 -0500 From: Samuel Dionne-Riel To: u-boot@lists.denx.de Cc: Simon Glass Subject: [PATCH] lib: export vsscanf Message-ID: <20211220181916.28327716.samuel@dionne-riel.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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.2 at phobos.denx.de X-Virus-Status: Clean The function was missing from exports, even though it loooks like the intent of the implementation in sscanf.c was to have it exported. Signed-off-by: Samuel Dionne-Riel Cc: Simon Glass --- This is needed for porting an external library to U-Boot, in WIP changes. It builds with a warning, and does link since the symbol is present. Though when treating warnings as errors during development, it becomes an issue. include/vsprintf.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/vsprintf.h b/include/vsprintf.h index b474630146..8bfafa0d33 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -307,6 +307,14 @@ char *strmhz(char *buf, unsigned long hz); */ void str_to_upper(const char *in, char *out, size_t len); +/** + * vsscanf - Unformat a buffer into a list of arguments + * @buf: input buffer + * @fmt: format of buffer + * @args: arguments + */ +int vsscanf(const char *inp, char const *fmt0, va_list ap); + /** * sscanf - Unformat a buffer into a list of arguments * @buf: input buffer -- 2.34.0 -- Samuel Dionne-Riel