Message ID | 20220315124914.51569-2-clombard@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=G0DB/EnJ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=<UNKNOWN>) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KHtXD2D9Gz9sFq for <incoming@patchwork.ozlabs.org>; Tue, 15 Mar 2022 23:49:32 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KHtXD19B8z30Jm for <incoming@patchwork.ozlabs.org>; Tue, 15 Mar 2022 23:49:32 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=G0DB/EnJ; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=clombard@linux.vnet.ibm.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=G0DB/EnJ; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4KHtX22hG3z2yfZ for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 23:49:21 +1100 (AEDT) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22FAmKb2021704 for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=R1G/2D3/FCjAsrA/N3em5vTCZlVE5bkfaF57f2Lm6zY=; b=G0DB/EnJvoMChqhaRabnNR27UmTjM+4lbGvx2B0V7JYMgridl0L9+tagMPdcLAldbHSl g/ZDdoqm0BtLFOA1w3Wl5x4/uM11YfRVUGg3+afEyD3IWIqjIEDGUepYAETsgb3DEdCV ylUa3U/Uc/6OXDhLIFj7kiOyELehAEhEdmU4bWUMMYJn4Ro3spzTo8TZdZk463zn1Qst EL35ddHRASzeeWBLlULxhtkz7g4H/I+dnFXQDVFgqGqOzpjpD+4K/tPPY0uEpvil2Bs9 WzB/NKtpDAaYD/DYD/jCAa//OXhD9cg+gdUj3ZZMItlAaDAE8yJh21gdUoNslRkAy7Ft 2A== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 3etmvffsys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:19 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22FCmxSS024498 for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:17 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma03ams.nl.ibm.com with ESMTP id 3et95wsxsn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:17 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22FCboiI50856426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:37:50 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4319811C04C for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:15 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B35511C04A for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:15 +0000 (GMT) Received: from li-ed209401-43e8-11cb-8043-c0c0b85d70f7.ibm.com.com (unknown [9.171.73.11]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP for <skiboot@lists.ozlabs.org>; Tue, 15 Mar 2022 12:49:14 +0000 (GMT) From: Christophe Lombard <clombard@linux.vnet.ibm.com> To: skiboot@lists.ozlabs.org Date: Tue, 15 Mar 2022 13:49:05 +0100 Message-Id: <20220315124914.51569-2-clombard@linux.vnet.ibm.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220315124914.51569-1-clombard@linux.vnet.ibm.com> References: <20220315124914.51569-1-clombard@linux.vnet.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: PQXGu4m7P1ux60WkioTcDak7al9ZNBnM X-Proofpoint-ORIG-GUID: PQXGu4m7P1ux60WkioTcDak7al9ZNBnM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-15_02,2022-03-15_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 suspectscore=0 mlxlogscore=646 bulkscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203150082 Subject: [Skiboot] [PATCH V2 01/10] libc: Expand limits.h and include in stdint.h X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Import external libraries for MCTP/PLDM protocols
|
expand
|
diff --git a/libc/include/limits.h b/libc/include/limits.h index bfde9635..09f054a2 100644 --- a/libc/include/limits.h +++ b/libc/include/limits.h @@ -33,5 +33,11 @@ #define UINT32_MAX UINT_MAX #define INT32_MAX INT_MAX +#define UINT16_MAX USHRT_MAX +#define UINT8_MAX UCHAR_MAX + +#ifndef SIZE_MAX +#define SIZE_MAX (~0ull) +#endif #endif diff --git a/libc/include/stdint.h b/libc/include/stdint.h index 2a2c1d91..080d875a 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h @@ -13,6 +13,9 @@ #ifndef _STDINT_H #define _STDINT_H +/* C99 requires *_MAX to be in stdint.h */ +#include <limits.h> + typedef unsigned char uint8_t; typedef signed char int8_t;
Add maximum native integer size and limits of specified-width integer types. These types are required by the external library: libpldm. Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> --- libc/include/limits.h | 6 ++++++ libc/include/stdint.h | 3 +++ 2 files changed, 9 insertions(+)