From patchwork Wed Jun 7 15:21:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81kos_Nagy?= X-Patchwork-Id: 1791773 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=PWfWIbO9; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QbrfQ6xBGz20QH for ; Thu, 8 Jun 2023 01:21:33 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1q6uyT-0001tJ-At; Wed, 07 Jun 2023 15:21:25 +0000 Received: from mail-am0eur02olkn2095.outbound.protection.outlook.com ([40.92.49.95] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1q6uyR-0001tB-3N for fwts-devel@lists.ubuntu.com; Wed, 07 Jun 2023 15:21:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C+QB0IRe2uN2ezfBcB3GHj3mOQUOx593I2OWWwcvn5GenzD7ziD55JvLJlbhmeL6KYnmVst/OmPB3V9w2ARei12+Ano3qK6d4KooAjB/8BHP3blC8ILBd33gIHTW4tFfvBnVbmm4aSlJRRIauwxC/QnNqWWSQYrxbBuQNDSg5b5DKgKUaH1Ki4cR6r/4gHbPJruvH1fCy7WXQlazdah0u+tSGNOrkmKJ7AQpwzUeJZUthYEPMqRbw7pnTgGfxYzrC0MPKhvxjWwtFAu0xuuxXjddJy2LzrwbD1PNfxJx3vsMwtwUFMyk0CJQeABdSF77ZVhOl6fU+9Kk0hqRr9hySQ== 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=HBLh8shQrLn7v5xcM65xuJ0oqC2n9KJSvE7ItIlz3V4=; b=VtDe+BuraeDy8LylQfqE12JC2MJY13pnt3JPN8KElZ3ubjYrHdsZHnrZf7CrX037CIb0NqnH6BPIO+g/Iucz5xoPxPcWVgw12afJmxIHghGsSx5Enawthx6330flxcEJ9dHmEL2098k+NiyssfDAQADtBOa2FbJ4ZKa20HR1m9eJRvJhJA3vN3j2bxJgOQPAw6QEXHViYuegp9lw/XghzMxqzVZTX317Y6WAllwvgFsYq2e8jxI3XBV/hCYrds4DI5kYrcml1Y3BM169+eWSQBRvHszrJ/aLfVr39UIHvGxVqv/0kcEmaKNAb/flJiCudtSrHLAYISb9H2bMrDl1sQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HBLh8shQrLn7v5xcM65xuJ0oqC2n9KJSvE7ItIlz3V4=; b=PWfWIbO9pv+wGvPVK+rcY3J88kLW3t/Nn9mRFktB2/FisRSMSKb4jhwjF4wbEBuTbrseU+PWE1KPQUHvLxDblhOyCVDl8ySqkhtdswqBAWYU1NbLOGI8PGXg8dwwnNOD9lxQdTaPYOTnZnuSc7tcxkkCt+9HdhkV5pwgqSPZZr1F7dxo+06hRCV1xcbqvkvNY2MZu/yKLm/R3IKLy3htnVAJcYR1pbEry6J6M3J9pRq50gTjptiTy77+p0nFGdnOQXnYzjq0A1UfUoUrQoxox4TnAAikulcxOts/yAn80XeUN4GX4BsC+SkbAZ7+cQ5ZQIe1l5Le5uP4w02y1Gj47Q== Received: from VI1P191MB0624.EURP191.PROD.OUTLOOK.COM (2603:10a6:800:137::7) by AM9P191MB1908.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:3e6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Wed, 7 Jun 2023 15:21:22 +0000 Received: from VI1P191MB0624.EURP191.PROD.OUTLOOK.COM ([fe80::5223:f326:babd:9dc8]) by VI1P191MB0624.EURP191.PROD.OUTLOOK.COM ([fe80::5223:f326:babd:9dc8%6]) with mapi id 15.20.6433.025; Wed, 7 Jun 2023 15:21:22 +0000 From: =?utf-8?q?=C3=81kos_Nagy?= To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: make the return types consistent Date: Wed, 7 Jun 2023 17:21:04 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 X-TMN: [9crTkO0sJWIwAjldDU0ppyStqT0jwF5+] X-ClientProxiedBy: ZR2P278CA0024.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:46::13) To VI1P191MB0624.EURP191.PROD.OUTLOOK.COM (2603:10a6:800:137::7) X-Microsoft-Original-Message-ID: <20230607152104.80422-1-nagyakos@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P191MB0624:EE_|AM9P191MB1908:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dddadd9-4cd8-4b35-4905-08db676ad99b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uzSG9VZx5p6HL01vmN37hFhxQ59fCTz5DWrtCw/RUu8JacOGPd52IdgrCj+3e6gUOtqb7Ot6UzN0tKGsSaKjeyAJ10aUUEPKOCEwS3wMIuZVUZL44Sr79iYQDasbloD1VqPyqnP2kW2pngjpRtYAeBMGG47Pc0f9v/NTKkokuViba1lBx5nOhd0mfnkNRDOnxXTd43cB9//iljJHXgHt++dK1/lvbgfiYcEdbNCk3M976OzfvVdWutpTGLZnfIIE8+ipiKwXn5FiD3yIJJUfNwAxKTHIcF1dK7ier9asy+m6kIxbg/Q5ixXAp7gtUklLKRS6VN7TWCcT5gEOxC5KPUk78Xee3H1KNKaYHUOQcgAdyVYcu/gpljw+7jkNkdUVP6TeMKrgj7FfRiOwn3kycVdfR1KdCNVCWE0R+512Q+fJgRo0aTnZGd6viGpQ3h63HH/+9Jo4B0vPR0vtmRzu0OmEQaq616UU4X1yD3aTCrJxCeuNpxlkJmVUAcjDO6QYvshllk63Zn18hBFzuEnEkEffm/UQwk/kth1KBJcH0zS7Mx+rr9RTNh0PuxHxzEVF X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rXk7DFfzFzUAi5yGLsxmajGbQodM?= =?utf-8?q?QA6WfP/lTlAeEmlcQPKqS5DDUo0PUnMYd/PdoUOP6DQRQNm9tJSy2ssO0YlAQL5r2?= =?utf-8?q?H249f9pGYqRdDfo0S/7fIp67hRgqAycjKeA2rk3fBgMJxnmMweADV9QZD4lMxubU3?= =?utf-8?q?m2PJSpPoucQlr2Y+1w6dH4aNTEPPSTVVaUVv8ajGQa1hXTUY5/+c3NQJeFMKvpX+M?= =?utf-8?q?agSQUPaDXdqSarnBHm/J/kff5Ab/XHmdRR4j3GFTQFMuDg4P6C89GFEX7Jb66pdjk?= =?utf-8?q?48k/xLEzUjsvb4A7Y3pDES1aZJTUyl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sQQ=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dddadd9-4cd8-4b35-4905-08db676ad99b X-MS-Exchange-CrossTenant-AuthSource: VI1P191MB0624.EURP191.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 15:21:22.0801 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P191MB1908 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" GCC 13 warns about the return type mismatch between the declaration and the definition of the function. The new -Wenum-int-mismatch warning is enabled by -Wall. Signed-off-by: Ákos Nagy Acked-by: Ivan Hu --- src/lib/include/fwts_cpu.h | 2 +- src/lib/include/fwts_memorymap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/include/fwts_cpu.h b/src/lib/include/fwts_cpu.h index c397c70b..7bca6a2b 100644 --- a/src/lib/include/fwts_cpu.h +++ b/src/lib/include/fwts_cpu.h @@ -63,7 +63,7 @@ int fwts_cpu_is_Intel(bool *is_intel); int fwts_cpu_is_AMD(bool *is_amd); int fwts_cpu_is_Hygon(bool *is_hygon); -int fwts_cpu_has_c1e(void); +fwts_bool fwts_cpu_has_c1e(void); fwts_cpuinfo_x86 *fwts_cpu_get_info(const int which_cpu); void fwts_cpu_free_info(fwts_cpuinfo_x86 *cpu); diff --git a/src/lib/include/fwts_memorymap.h b/src/lib/include/fwts_memorymap.h index 1a2b3a2f..5f9e2852 100644 --- a/src/lib/include/fwts_memorymap.h +++ b/src/lib/include/fwts_memorymap.h @@ -38,7 +38,7 @@ typedef struct { } fwts_memory_map_entry; int fwts_memory_map_type(fwts_list *memory_map_list, const uint64_t memory); -int fwts_memory_map_is_reserved(fwts_list *memory_map_list, const uint64_t memory); +fwts_bool fwts_memory_map_is_reserved(fwts_list *memory_map_list, const uint64_t memory); fwts_list *fwts_memory_map_table_load(fwts_framework *fw); void fwts_memory_map_table_free(fwts_list *memory_map_list); void fwts_memory_map_table_dump(fwts_framework *fw, fwts_list *memory_map_list);