From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A866074004C for ; Mon, 23 Oct 2023 14:18:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=v8eWVoGPGlVXiAW7KlWIcFXlaYFtf25C2dbxwajhy5U=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1698070681; v=1; b=O5c+v+lebOJA+/Vii7pfXrEFBjECOiCATeMhRhrzkAipvlANj0Q3bSDnBm0SGIiH5NPf1lYb 4BPsgE0pvUova3xtG67o+RBn3dOexjI3za8wMiDOMRlHqXsE2M8o/qW3Etq2RagN0tRpGsofix3 oGxkvwGpXhj3h/s7igHZxj+4= X-Received: by 127.0.0.2 with SMTP id l04VYY7687511xxptkLDkleH; Mon, 23 Oct 2023 07:18:01 -0700 X-Received: from NAM04-MW2-obe.outbound.protection.outlook.com (NAM04-MW2-obe.outbound.protection.outlook.com [40.107.101.79]) by mx.groups.io with SMTP id smtpd.web11.122138.1698070680723407107 for ; Mon, 23 Oct 2023 07:18:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ttnn8FCgSICsW2nyuTAgLZkXTiihqwglSBVlkbOdLtNHc08L9jHWGZr/PRyOEkRrjzSVGzRfbzDss2YK1VkeOd28AkZ784MsiFXrE4E8aCD8TRrRdAzPfkdFoGvk82HsoyMSDDzroCWJgEjq2/zkuc5kdVxHbm78xDk3TQMD1JDqNRnYihJJZh9p7Ty9UN8KvWJ69mPgYNjRuXoxDyhKti8M4ixI42IaYMwggX4vj1hYRVZYBRgshFRgJ1yMwt/E6Y59n5LegvB9odOGJnHJw7tTAtrgHsdVaL2AXoD1UTxpEpqTxljDlsdac0os++l7RomcJ6qu2eaN9IWMUFptIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xInmSqQwkbXjwF+vBi5F169SukMZWhMPGugol/0iD2c=; b=EZukIH27LM0zErVoNs6a7ZDzulUlg0QB9CAjNqKFutrSgSlC5rYSvR/3V8LjZQxlXSi1Qr5rdqzYMzEJz11wgZPbd4ZuJrGILLvkPzc24ctFtn2fPHO6gFnIERGqpnCDHBYTvZffa8EjjMRPsYR8LnBmquB6TKxnPPT4G2ZxLiIf+Id4E3xehNG7HBW8dMeq6YEU7GdlThkSxx+5/gz6tD75WA8A/OHxlZn2uehilpBMLSTY16o8tdWxSiJ5f1vNfRpEC+DSTbnRhP7sIyMeSnpkkIGqMYsi0Slf/ryiMa3Sddb3P98ZE23psQ7Fw3r6/dWd0i+BOLP7scwvImB4FQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none X-Received: from CH0PR03CA0074.namprd03.prod.outlook.com (2603:10b6:610:cc::19) by MW6PR12MB8757.namprd12.prod.outlook.com (2603:10b6:303:239::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Mon, 23 Oct 2023 14:17:58 +0000 X-Received: from SN1PEPF000252A4.namprd05.prod.outlook.com (2603:10b6:610:cc:cafe::e1) by CH0PR03CA0074.outlook.office365.com (2603:10b6:610:cc::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33 via Frontend Transport; Mon, 23 Oct 2023 14:17:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.118.232) by SN1PEPF000252A4.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.15 via Frontend Transport; Mon, 23 Oct 2023 14:17:57 +0000 X-Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 23 Oct 2023 07:17:35 -0700 X-Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 23 Oct 2023 07:17:34 -0700 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 23 Oct 2023 07:17:33 -0700 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" , Mike Maslenkin Subject: [edk2-devel] [PATCH] RedfishPkg/RedfishCrtLib: remove multiple definitions. Date: Mon, 23 Oct 2023 22:17:32 +0800 Message-ID: <20231023141732.152-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A4:EE_|MW6PR12MB8757:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f4955c7-ef1c-461e-abf0-08dbd3d2db39 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: dGNPZw8EFBmXXTjCa9YbxYkunRVZ8PT6D7Xq6ICqud+QM1wd01poX9MAVezRDuUWl6OYlGmej3r/DRHs7eejET2SF+4zxRhtDiQZJ3tFil0Uwkn6q6GcUsaf+AhSFUnhEzbbnYWsny8X0Hhz0fEz6vK6x6JCoxMx0cMjsy9DTYINQQ0neWThRRAHQyZk4A6ub47jpmKqb5aql8+Nt22QnWW3PquddnkisSeW+fBzbKEV+Lq9BbK8grmZ1b9+c6EJR5AsuIaivt4bqH+SlQTg5pOPWExpdsKpjLtQr7uG6EgLcj14/MPFujhzWD9o1Pw7y/1gBZuetsAyM90EKiJN7WExZ+dF1K8PiSsHunfbSxEcRmbfR/ZEfCc+mjw7IEn0a1yW4jTkmN29mF1CCHbN1XDmumVia7VvXJugdde3WDuU//eRLgvwX7dFI4dqWoGP8I4B5rCOHUV7BaXJ5L24RHQ2BvmMYuufnPNKoXMZdErwMi/EpZFTkR80gWZc/tAurZf6IZQaNHRazDR3xi96/yAy2mHrgLI2uBsdsfre1mgd+qymcCuIaTk3T9vsVz9RziqkzizUKhieBnDLDPSxIRo2BmLQGCpPy4uybxCB/HTx+5z5Tn8QDT4IVE5H8nVuY3ZS4rLXuzCY7qmHqJCYxlvhFJ2s3iPSOEpEDg5IHKjf/S6PaUJMvjYEPXfq0eZQjzKRvQJo3qZ/FTdcDesheXowIQgyJZhWZd5L8MK8z58= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2023 14:17:57.6233 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f4955c7-ef1c-461e-abf0-08dbd3d2db39 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8757 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: bnmLLkGAl1bNu8zbVXY33Jrex7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=O5c+v+le; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") There are two definitions for below functions in RedfishCrtLib.h. Create this change to remote duplicated functions. Function list: strcmp(), strncmp(), strncpy(), strcat(), strchr(), strcasecmp(), strstr(), memcmp(), memset(), memcpy() and memchr(). Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Cc: Mike Maslenkin --- RedfishPkg/Include/Library/RedfishCrtLib.h | 81 +--------------------- 1 file changed, 1 insertion(+), 80 deletions(-) diff --git a/RedfishPkg/Include/Library/RedfishCrtLib.h b/RedfishPkg/Includ= e/Library/RedfishCrtLib.h index 23c6acfca33e..80f0e10de8e7 100644 --- a/RedfishPkg/Include/Library/RedfishCrtLib.h +++ b/RedfishPkg/Include/Library/RedfishCrtLib.h @@ -3,6 +3,7 @@ =20 Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
+ Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -172,20 +173,6 @@ free ( void * ); =20 -void * -memset ( - void *, - int, - size_t - ); - -int -memcmp ( - const void *, - const void *, - size_t - ); - int isdigit ( int @@ -216,27 +203,6 @@ isalnum ( int ); =20 -void * -memcpy ( - void *, - const void *, - size_t - ); - -void * -memset ( - void *, - int, - size_t - ); - -void * -memchr ( - const void *, - int, - size_t - ); - int memcmp ( const void *, @@ -251,12 +217,6 @@ memmove ( size_t ); =20 -int -strcmp ( - const char *, - const char * - ); - int strncmp ( const char *, @@ -275,24 +235,6 @@ strlen ( const char * ); =20 -char * -strcat ( - char *, - const char * - ); - -char * -strchr ( - const char *, - int - ); - -int -strcasecmp ( - const char *, - const char * - ); - int strncasecmp ( const char *, @@ -300,21 +242,6 @@ strncasecmp ( size_t ); =20 -char * -strncpy ( - char *, - size_t, - const char *, - size_t - ); - -int -strncmp ( - const char *, - const char *, - size_t - ); - char * strrchr ( const char *, @@ -328,12 +255,6 @@ strtoul ( int ); =20 -char * -strstr ( - const char *s1, - const char *s2 - ); - long strtol ( const char *, --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109925): https://edk2.groups.io/g/devel/message/109925 Mute This Topic: https://groups.io/mt/102136148/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-