Message ID | 20230127114108.10025-2-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A3DEC38142 for <linux-arm-kernel@archiver.kernel.org>; Fri, 27 Jan 2023 12:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LDElpxnInrH3YTF/Cc0CWVIF+RA4GgHFBr1Eaib9I/U=; b=nb57L+Si3Tv9Ks 0SytvK0o6koxKi3f14bWQKgKNAGmQft3dG15afJdCrzUdZi8s9YFnUjILizousRdSYQQco9P/kOAu +s2vEBNAoHc4lDPgtyfRyBtMEAeqUQZLy+d1l4MEFGmYHLB6VJrklcSHwVOqQ/VXllSVAL1NuFdLE Fkj56CIR0DzrBHyHYrDwI3U2W1BdG/liHbgOUyRprmT/kqq81oijlDFnoUJTI8vnr/vTop1h2Hv3n 2bNSNkcx/H8MQ19F8ZyAXFng6plaY/Lh4JmOD51mrpau30mQk+4SxVSoyvHWblxZdF9fGSKgACb2g alSfdWuuKPIyE+od10Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLO8d-00EhPr-Pa; Fri, 27 Jan 2023 12:47:29 +0000 Received: from mail-vi1eur04on2043.outbound.protection.outlook.com ([40.107.8.43] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLN9Z-00EEsY-Mn for linux-arm-kernel@lists.infradead.org; Fri, 27 Jan 2023 11:44:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dAthAYOVywOx8lXe0h46x7ZB6wNi2URhTTiXJIcBscU=; b=33gJpoAbHMpJgShtK36NvshIaiJwXLMHJRWF/7XkPzEN5LMpvoAg51lA8KbjuVpPTMWBz6IcoUy7kJOABQ7HO0gjf+5X/J06znkx5cJIqi7gQz4PkGQu26VriCeSMlAv/dutdE1XVtHrWBNIOEriEVbnmEYk7ASKKJp/mBxjhgw= Received: from DUZPR01CA0026.eurprd01.prod.exchangelabs.com (2603:10a6:10:46b::20) by GV2PR08MB9925.eurprd08.prod.outlook.com (2603:10a6:150:c3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23; Fri, 27 Jan 2023 11:44:04 +0000 Received: from DBAEUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46b:cafe::fd) by DUZPR01CA0026.outlook.office365.com (2603:10a6:10:46b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.34 via Frontend Transport; Fri, 27 Jan 2023 11:44:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT005.mail.protection.outlook.com (100.127.142.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Fri, 27 Jan 2023 11:44:04 +0000 Received: ("Tessian outbound b1d3ffe56e73:v132"); Fri, 27 Jan 2023 11:44:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 79fec1a3b4157ab0 X-CR-MTA-TID: 64aa7808 Received: from 9134af7da11f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E8CDC639-88BD-455C-B67E-8AC8E24ADBE9.1; Fri, 27 Jan 2023 11:41:29 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9134af7da11f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 27 Jan 2023 11:41:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nmq85NsRTvJ2QTNZU5yQQMc+1XrRAE/uDbfZf4t7WFttH5OiOofMK5XDqtSn0SA/HxnBq4ZZREi8wIrOyABIAaRWNBVK5tSG+uZWfIWfhbCTDFfX/Zg2+DlqetX1BgkaQn50CIbNy5LzXf41wl7lRWHZ5Fyrz59Y+7lrAOgJwp5cxOeZRN1Lxka8MQHh7fZCB8qhEDeMh/qCNMbPow/9WZm5AKL35DkX/eJet3TNNQppLk8pt9dFSt5C84TddfjPPMGXs86T4+wvPqjQM+QDAMx0xAlHYVEfDK7aI1XXBFXc4SsTG9xipNeAh36HOrS31rpKdCkGOvBW+N5hV/Q8tg== 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=dAthAYOVywOx8lXe0h46x7ZB6wNi2URhTTiXJIcBscU=; b=S3FG+yu+FRUfUQnX2D3d8jTBGn7N2o5tt/lzRllOZSgzb5UspJSj28lKSTJUFkdZC4G/mLUMbjmPWgJyda28pe5T1wzS1xqmsvV4drWFW+AkhxvUX4Z6EV4YrOdkuDJgROXoyOLl9+kg0rOuV5joUmbnZhm7YPeEf8DbGUHvXJ6J6fNoKSMXL5Z8vNqX0aDDxx7ureDgXzYVLt3hKbmN/8yiqT6YnH2HiyQqp0s/YmcYr5MZseyQ6ULeiVwmOEg2/CSV7z1lWkRGmtJwOs/mdVIT/iVOJXL87EKKudIa4ZpCT7K/hTzFU110wvGq0v5/NYyJfN6UzXMpIt4bhg3adQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=linux.dev smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dAthAYOVywOx8lXe0h46x7ZB6wNi2URhTTiXJIcBscU=; b=33gJpoAbHMpJgShtK36NvshIaiJwXLMHJRWF/7XkPzEN5LMpvoAg51lA8KbjuVpPTMWBz6IcoUy7kJOABQ7HO0gjf+5X/J06znkx5cJIqi7gQz4PkGQu26VriCeSMlAv/dutdE1XVtHrWBNIOEriEVbnmEYk7ASKKJp/mBxjhgw= Received: from AS9PR06CA0224.eurprd06.prod.outlook.com (2603:10a6:20b:45e::21) by AS8PR08MB10149.eurprd08.prod.outlook.com (2603:10a6:20b:63f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Fri, 27 Jan 2023 11:41:27 +0000 Received: from AM7EUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45e:cafe::17) by AS9PR06CA0224.outlook.office365.com (2603:10a6:20b:45e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.23 via Frontend Transport; Fri, 27 Jan 2023 11:41:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT049.mail.protection.outlook.com (100.127.140.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6043.23 via Frontend Transport; Fri, 27 Jan 2023 11:41:27 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 27 Jan 2023 11:41:22 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 27 Jan 2023 11:41:21 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Fri, 27 Jan 2023 11:41:16 +0000 From: Joey Gouly <joey.gouly@arm.com> To: Andrew Jones <andrew.jones@linux.dev>, <kvmarm@lists.linux.dev>, <kvm@vger.kernel.org> CC: <joey.gouly@arm.com>, Alexandru Elisei <alexandru.elisei@arm.com>, Christoffer Dall <christoffer.dall@arm.com>, Fuad Tabba <tabba@google.com>, Jean-Philippe Brucker <jean-philippe@linaro.org>, Joey Gouly <Joey.Gouly@arm.com>, Marc Zyngier <maz@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Oliver Upton <oliver.upton@linux.dev>, Paolo Bonzini <pbonzini@redhat.com>, Quentin Perret <qperret@google.com>, Steven Price <steven.price@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, "Thomas Huth" <thuth@redhat.com>, Will Deacon <will@kernel.org>, Zenghui Yu <yuzenghui@huawei.com>, <linux-coco@lists.linux.dev>, <kvmarm@lists.cs.columbia.edu>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [RFC kvm-unit-tests 01/27] lib/string: include stddef.h for size_t Date: Fri, 27 Jan 2023 11:40:42 +0000 Message-ID: <20230127114108.10025-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230127114108.10025-1-joey.gouly@arm.com> References: <20230127112248.136810-1-suzuki.poulose@arm.com> <20230127114108.10025-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT049:EE_|AS8PR08MB10149:EE_|DBAEUR03FT005:EE_|GV2PR08MB9925:EE_ X-MS-Office365-Filtering-Correlation-Id: 916313e3-5299-4dd1-c0f8-08db005bca66 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: onWF71zoO6duUEy+orjL4HaxS7SZPO7QtYxVx46ihrlGO+YyVonwfIlTIu00ZAPHMs7YkA3E6vU9GnqqdU27eMrSPYu/x1wCRnudyHy5gM/gZ8W7/GgTP5530FbyNkMiccVtwRyU2fvbqEiy9RK1HPX2oYrwhFWhi005jQEdRWSrf3HGKCulEBesNQpa1HUJ7IX5eWG7Gjnj8oRYS1cVcnMrKM31Iy7uzvnvw0iQ0v9TF90z8j0TzhNxvG1sZy363v1rvCg/wb0CjxzQWQhy4k2/B92exKQP8b+gt6aoXdM7pppTWhPHkg4RFXqpeB//gffmF3kcfMNWSFOuJYgMBYiMBGgj7vWdlZOZCsY102gVLqjuSvqkOhWjhiP8fFBdx9vWelXzjr75mW5MFs7PjZeSed0SY3ZfC1ItTa5Hfgexj5m7uCnVXw6HS0MKqzbYGYyfhQe9bVZH3ljQhwkIGpHflS4rq4KlXj+c+GN2Hltz0Ji1LsUkffHEwQr77tNThmnTwWZ0Q6tWJxJWkgiFx9yv0AKf7hlmfY6pcfUhaAK1HW9Ol18oebkFwl8x9HV1Fob94Zuz8Z6ITPJozmg7vhKbT832BIzIpqfqkq9cDh2mf3LI2Rz69J6BJRO7WzFae424vUO7jvYEwraiwCLr80DtcXANe0WX6ud3b5uvawutaZjZy9kr+NJe00cAjQhlePoGZ2ibeu/4qkgzuzuHutcwKkoXLNePSB4mKNvd6xiRUw7Mk9Micf72EgyKR/T7 X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(39860400002)(136003)(396003)(451199018)(40470700004)(46966006)(36840700001)(82740400003)(36756003)(40460700003)(4744005)(82310400005)(356005)(316002)(5660300002)(26005)(7696005)(186003)(8936002)(47076005)(36860700001)(4326008)(40480700001)(2906002)(7416002)(70206006)(70586007)(6666004)(478600001)(81166007)(426003)(336012)(8676002)(44832011)(41300700001)(1076003)(54906003)(2616005)(110136005)(86362001)(2101003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10149 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f5b9ad6e-8f74-4b5f-466a-08db005b6cdd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: icwNDKIgCLz9quJcCvHJWDAlgoVh12PHIHMD0F7pvmISDZxBdBbt+T1GDFcecwV0JaLZE7PgJnK8OrLuuz+lEi4uK2HdUcF5XPUC/Xnk6KZ7aBvNGMkJhDgTeyysY2+/Tgqdyf9vJzOWyG00J6pkMw23x0FzKTjYK5SRvIT6QbtIBfCkPduHxPMKq2juu91baa0fJTiH9LYTzf/bb9SJsErzKlXeiPZNL3PbMUZs7QOOoTfqh6mhnuyF+eMHEi8bJtyiKz8KCzPMlX6unzMpit2RU9+Y9RSBm04mnj4H82PIFMqQqak9WmdNJipaLGyp29J+itcmeDzkhGBjAg4L71TER/4kWWqNzZPOON8gXqEC2Lige2+nRnPmJzOpwR0FRel90O1RUxrUI/ACS0vKQjjJTICA6seJq8bSAwF7GGHRXG9z5S7E1ZbrEMv+r8W4d7loBeNS4tlBNmxHLObO892hJhgFQr2cHlpOt3SoUlXx2Si0vxG8JlAWkR1afY4ZgYpkqwYfiyEXFm0kZ54fdckCKf7EDUg8nQCy09H29L269CPsdYpBqVa8eE+7vk1QNcYbvxRQbFge9p1csJiwHTRTC4Mt981pHb9GPSHXiRAIHvDO9Yhnc068/KMTbIF0pDw5v2gJNl0GtvVPVeck7jpJwWR5fzVvDiZ6+AHAIiy3OHNjTysbkw7nEc8wtfwwFhUy2OnNSv4yK+m45KlZYfJYP33k8RgC6JtJcfx+ArE= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(376002)(396003)(346002)(136003)(451199018)(40470700004)(36840700001)(46966006)(44832011)(2906002)(4744005)(426003)(336012)(36860700001)(41300700001)(8936002)(5660300002)(478600001)(1076003)(107886003)(2616005)(26005)(186003)(8676002)(6666004)(4326008)(7696005)(86362001)(40480700001)(82740400003)(47076005)(40460700003)(70586007)(81166007)(110136005)(316002)(54906003)(70206006)(82310400005)(36756003)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2023 11:44:04.0812 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 916313e3-5299-4dd1-c0f8-08db005bca66 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9925 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230127_034421_804215_E5C4F699 X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[RFC,kvm-unit-tests,01/27] lib/string: include stddef.h for size_t
|
expand
|
On 27/01/2023 12.40, Joey Gouly wrote: > Don't implicitly rely on this header being included. > > Signed-off-by: Joey Gouly <joey.gouly@arm.com> > --- > lib/string.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/string.h b/lib/string.h > index b07763ea..758dca8a 100644 > --- a/lib/string.h > +++ b/lib/string.h > @@ -7,6 +7,8 @@ > #ifndef _STRING_H_ > #define _STRING_H_ > > +#include <stddef.h> /* For size_t */ > + > extern size_t strlen(const char *buf); > extern size_t strnlen(const char *buf, size_t maxlen); > extern char *strcat(char *dest, const char *src); Reviewed-by: Thomas Huth <thuth@redhat.com>
diff --git a/lib/string.h b/lib/string.h index b07763ea..758dca8a 100644 --- a/lib/string.h +++ b/lib/string.h @@ -7,6 +7,8 @@ #ifndef _STRING_H_ #define _STRING_H_ +#include <stddef.h> /* For size_t */ + extern size_t strlen(const char *buf); extern size_t strnlen(const char *buf, size_t maxlen); extern char *strcat(char *dest, const char *src);
Don't implicitly rely on this header being included. Signed-off-by: Joey Gouly <joey.gouly@arm.com> --- lib/string.h | 2 ++ 1 file changed, 2 insertions(+)