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 6C0717803E3 for ; Tue, 31 Oct 2023 12:56:44 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=L2woGA6meU26AFEmK6mOWsQtlpsE7svCaETHP/KkQvc=; 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=1698757003; v=1; b=FhsUIJ8B2hablgrvimuW2q0ZQKeMuoy6HfLdcKTtQRbwjaQSa2i43Q0b5sxQG0oip+dHTRUl 3pT3Rj+6psQyrx2FIntxlzczl3eLsZMGCuUX8fccmME+CSeqJa4XV6VBrmdUiLqIQLqG5Bhdt58 dh82pgNvIpjqR1qQD9huHnRM= X-Received: by 127.0.0.2 with SMTP id pJvHYY7687511xrdBcKGka0K; Tue, 31 Oct 2023 05:56:43 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.76]) by mx.groups.io with SMTP id smtpd.web11.185500.1698757002218785216 for ; Tue, 31 Oct 2023 05:56:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=alygd1+p1AC5gXWPlv2uVTUx2mDfXGYV1ExWm4l+ctI2Lm8POwP5DYqKypbKku8WE9KggeabwJXHNqPiZKNy9b4cUqydks6E1pj1wfG+xJA5tHhwT4oNbhYsip+RtwE1mqC1ZZebVYDfclt4JJs6UOzEVncRVmSn/tud2lbPXraJdM7yTjtO5POvfd/g5bFFmbaiYhGHNNfOup+pVjTVRNLcq+VFyootGcxtisShRw9xrptkJOQzWNxhSZS2pvxyuMqQyV2D0HUBxGGC6I6IP4nGF3OHdV5lNwz/0cdzkWmHMN2ISIIHLbHCnTMfjh00J0VFilZe0jiN2G+gASgEgQ== 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=JJWd8Nxucg8N3xacHxr+JPb4WZ/lR6Fll2glrWwGMlA=; b=kubG6I/Dm2ROcJby6ERcL2pH3XUDyksQu83SyLML9Vpebm/kdrWj58452Hth2d/0zdrNb3e+W5yj0iCTB60hlVSF7hT3sTVzAqRg246Yl7JFq2nYGK33P+5h/I0pMTWj2uja1iWRwu4pZtXFyazo+BW+wvDc0k9ptrpMgh3afvmz+A0yk+E2exvrNGDR4iFycP+c0Wwu/YnKNCLbwHZcDyWAMf8FC0uyP8sXNkncKML/aT/56OkinRIjeywrLO9Bmh91HU+KqnnJoUWmGQqM+IoBLBqo52ZBAgSJFympz9U4BqOHVWFGqi/M7pioupOKi0rdTpOMTKzu5UDnf0FDrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 (0) X-Received: from BL1P223CA0025.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::30) by CY5PR12MB6324.namprd12.prod.outlook.com (2603:10b6:930:f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.28; Tue, 31 Oct 2023 12:56:38 +0000 X-Received: from BL6PEPF0001AB4D.namprd04.prod.outlook.com (2603:10b6:208:2c4:cafe::83) by BL1P223CA0025.outlook.office365.com (2603:10b6:208:2c4::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29 via Frontend Transport; Tue, 31 Oct 2023 12:56:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.160) by BL6PEPF0001AB4D.mail.protection.outlook.com (10.167.242.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Tue, 31 Oct 2023 12:56:37 +0000 X-Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 31 Oct 2023 05:56:24 -0700 X-Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 31 Oct 2023 05:56:24 -0700 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Tue, 31 Oct 2023 05:56:22 -0700 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" , Mike Maslenkin Subject: [edk2-devel] [PATCH v3] RedfishPkg/RedfishCrtLib: remove multiple definitions. Date: Tue, 31 Oct 2023 20:56:22 +0800 Message-ID: <20231031125622.9036-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4D:EE_|CY5PR12MB6324:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d6112e5-3521-40c4-9ab3-08dbda10d1ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: ci/ww/KMQoDOcNJqHw1swQjB41DxZkVeyghZioeHB0IiuCwHgEZJBkuJgief9q+dbzTkVzvZwe4QEOLKvi0YBxHradmG41bZd3az/TNMP8Enjno3eIxqwG69z1E+y0mHsh0vzCd7CYJ8w3KRqnUIcNXM0iGD14OV8/cK2YFB0m+P76eSQHd9yVP7UIHCIKNUv/qwgli3113dKAPxTi8vuUNPXc7uIceGXtAoY4ujsabKFSxFCE9grapWDYeGQEeHcpxkljehxftqac/grXUIAu9PTLZqXc0nL8qIrjEri+umhJYuVh69fgdTRk5Ak180Q826z20AcJbqAnvgt3OP+Zw3wuV0O7BvtQzdnruwAnYQ/R0yiFw9xIhgzknt1uXFUmPz+uz/GI0WEyaUtWBWq6JHhVsH00FJNKLVXGGY91L5K+Fyz/FqJRvFfXjT94THCitjhcAd6Ki+d/+zBO5V3kkgDxT12bxigl3sBrSP8iZWNxJn8FfSmQ/Ah4Xg80oiw55K1l/4TNdFeu8Yjsyl5cSvuxkoYdy2TcCRK/Q0I8SDltQZ+XqhUQPAlTgSYwTpFyXWsoMuwnHTTtisb85A7U8juiMwQob5upO0DfeFEiq8wt/zKpI1hpzGoRqSYL3qelfjCpla2Z0FYDxgE2Awh5x7Y5r3x4P8RLVsXWcf54Gaf7+LmUYzeeJQJ9oAJW1krMbBgnAAeGwxUJtC6YlGhiaW6E6mAD2D9rsszZHMlbo= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2023 12:56:37.7327 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8d6112e5-3521-40c4-9ab3-08dbda10d1ea X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4D.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6324 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: PoFQT2KOWC2XPrlH8wdgk52vx7686176AA= 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=FhsUIJ8B; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 There are two definitions for below functions in RedfishCrtLib.h. Create this change to remote duplicated functions. Function list: strcmp(), strncmp(), strncpy(), strcpy(), strcat(), strlen(), strchr(), strcasecmp(), strstr(), memcmp(), memset(), memcpy(), memchr(), memcmp() and memmove(). Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Cc: Mike Maslenkin Reviewed-by: Abner Chang --- RedfishPkg/Include/Library/RedfishCrtLib.h | 105 --------------------- 1 file changed, 105 deletions(-) diff --git a/RedfishPkg/Include/Library/RedfishCrtLib.h b/RedfishPkg/Includ= e/Library/RedfishCrtLib.h index 23c6acfca33e..ac6c5162ad6a 100644 --- a/RedfishPkg/Include/Library/RedfishCrtLib.h +++ b/RedfishPkg/Include/Library/RedfishCrtLib.h @@ -172,20 +172,6 @@ free ( void * ); =20 -void * -memset ( - void *, - int, - size_t - ); - -int -memcmp ( - const void *, - const void *, - size_t - ); - int isdigit ( int @@ -216,47 +202,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 *, - const void *, - size_t - ); - -void * -memmove ( - void *, - const void *, - size_t - ); - -int -strcmp ( - const char *, - const char * - ); - int strncmp ( const char *, @@ -264,35 +209,6 @@ strncmp ( size_t ); =20 -char * -strcpy ( - char *, - const char * - ); - -size_t -strlen ( - const char * - ); - -char * -strcat ( - char *, - const char * - ); - -char * -strchr ( - const char *, - int - ); - -int -strcasecmp ( - const char *, - const char * - ); - int strncasecmp ( const char *, @@ -300,21 +216,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 +229,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 (#110408): https://edk2.groups.io/g/devel/message/110408 Mute This Topic: https://groups.io/mt/102296237/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-