From patchwork Fri Aug 25 07:25:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1825819 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=M5JOoQSj; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 4RXBMF2KGQz1yg5 for ; Fri, 25 Aug 2023 17:25:59 +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 1qZRCY-0000Dy-7m; Fri, 25 Aug 2023 07:25:50 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qZRCW-0000Dn-Bd for fwts-devel@lists.ubuntu.com; Fri, 25 Aug 2023 07:25:48 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 933253F03C for ; Fri, 25 Aug 2023 07:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1692948348; bh=wGMHt1Nepnwj4onPlTgmHCPnmum1vXYOz6PjMitlPAc=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=M5JOoQSj5Nr9KoDSq+2gkC5UPiIqecJieA1OQzxBii2jiSukmJItSqdpyZcdQA+3L /C9NvK0Yf0WDBg3G796WqEwEO08q6eRkEWSv58rdTzFeD215TPLfgida4xo2o97FTa 4ot7x0Jda2mtA/15eixH3BhkEebmlFvel1VCN7SZ6ZMGT9RTffTaqXpdPQws4ck3k6 5R6d3oGGAALv6OFdJXR1/xvEoFn2Xn3+tdwVeo2qvMSK+DZAdFONbIrpaAlGeD/CW7 FXEcuxlLZspCfgnT6jmxhifVpN/nm1ecgBNyvIjIQ3i1hOZ/3sipNXxl/taWExDoqf 6i7tTBuDVVdmg== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpi: s3: build fail for unexpected format of argument types for i386 Date: Fri, 25 Aug 2023 15:25:33 +0800 Message-Id: <20230825072533.84204-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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" BugLink: https://bugs.launchpad.net/fwts/+bug/2033008 got several unexpected types on i386 build below, acpi/s3/s3.c:138:31: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 9 has type ‘uint64_t {aka long long unsigned int}’ [-Werror=format=] comply with the kernel type define. Signed-off-by: Ivan Hu --- src/acpi/s3/s3.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c index 012da39e..7c2da431 100644 --- a/src/acpi/s3/s3.c +++ b/src/acpi/s3/s3.c @@ -57,30 +57,30 @@ static bool s3_wakeup_src = false; /* dump wakeup source for debug */ typedef struct { char name[32]; - uint64_t active_count; - uint64_t event_count; - uint64_t wakeup_count; - uint64_t expire_count; - int64_t active_since; - int64_t total_time; - int64_t max_time; - int64_t last_change; - int64_t prevent_suspend_time; + unsigned long active_count; + unsigned long event_count; + unsigned long wakeup_count; + unsigned long expire_count; + long int active_since; + long int total_time; + long int max_time; + long int last_change; + long int prevent_suspend_time; } wakeup_source; static int read_wakeup_source(fwts_list *source) { FILE *fp; char name[32]; - uint64_t active_count; - uint64_t event_count; - uint64_t wakeup_count; - uint64_t expire_count; - int64_t active_since; - int64_t total_time; - int64_t max_time; - int64_t last_change; - int64_t prevent_suspend_time; + unsigned long active_count; + unsigned long event_count; + unsigned long wakeup_count; + unsigned long expire_count; + long int active_since; + long int total_time; + long int max_time; + long int last_change; + long int prevent_suspend_time; int c; fwts_list_init(source);