From patchwork Sun Mar 28 09:05:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1459263 X-Patchwork-Delegate: sjg@chromium.org Return-Path: 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=d4N2c5OU; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4F7VCw5GJjz9sVq for ; Sun, 28 Mar 2021 20:05:16 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8365F8267E; Sun, 28 Mar 2021 11:05:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (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 (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="d4N2c5OU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E31E82759; Sun, 28 Mar 2021 11:05:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 CA6F580475 for ; Sun, 28 Mar 2021 11:05:07 +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.net; s=badeba3b8450; t=1616922307; bh=4eGtSdHllc5TKz2KxrQU8ckOtIxY5hdfmwMhXZiTvLg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=d4N2c5OUv8AQSRmgEydPtSzrDcZu/BH5CdxBgo4htlyKXrJHk9774jANhJ4OM1L2e NAxT0sR4rrSjSpg5SMAudeiesKKX85e4z2mbD8fbI7O3yiqCTkkjyqpLSeH5u9vBkX g3T3g5u9UvUUF7jSyVB+QbiK8QPWVMFPJxuFIg4g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([62.143.247.63]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MIx3C-1lBWps3kVe-00KNPh; Sun, 28 Mar 2021 11:05:06 +0200 From: Heinrich Schuchardt To: Simon Glass Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 1/1] sandbox: document parameters of os_realloc() Date: Sun, 28 Mar 2021 11:05:00 +0200 Message-Id: <20210328090500.13367-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:Fy3j1zOrqrjBcN4K8W2Syqk06YL1gtle99wUKq95aO5j0y0sU4s pLdls4s1QnSf9yViJRFGsuA1P1uQi63RQECegSB4OOW107rkkeWlc1LNp+vSGZ0fBiFZsxf Db8yh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gfqcysmKF/TnNo55qZHT7vk7dlJ 1hojSFfxMyKfOLVcMubRLWYU63uCrQSzFEIGCNQUlJllU58ej4obAo0SJWQZgQ8eHkuQzk6rh NdgjGIMk5F3HZworPFPnPTkU49PE3V4vyNF4fxwQWNNnEGhMWR4o1driBeIdPbu6OU1U8PBjt RXwUQx/5sK6SEhkw6EaoPoi9FGJzcFJpeM+BVEEVV8VzuGq3T4jHyAsZSsXxDDFEj796YqLdt zgm206NABrTfH5QYJXXyURWSoqqKltGsi1S3jdaTrD5OS9ybOQ1XIIPT8etNnk0LMox1s= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Avoid 'make htmldocs' build warnings: ./include/os.h:139: warning: Function parameter or member 'ptr' not described in 'os_realloc' ./include/os.h:139: warning: Function parameter or member 'length' not described in 'os_realloc' Fixes: 14e46dfb176b ("sandbox: Add os_realloc()") Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass Reviewed-by: Simon Glass --- include/os.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.30.2 diff --git a/include/os.h b/include/os.h index 77d8bd89d0..bd1096eb8b 100644 --- a/include/os.h +++ b/include/os.h @@ -134,7 +134,9 @@ void os_free(void *ptr); * This follows the semantics of realloc(), so can perform an os_malloc() or * os_free() depending on @ptr and @length. * - * Return: Pointer to reallocated memory or NULL if @length is 0 + * @ptr: pointer to previously allocated memory of NULL + * @length: number of bytes to allocate + * Return: pointer to reallocated memory or NULL if @length is 0 */ void *os_realloc(void *ptr, size_t length);