Received: by 2002:a17:504:240b:b0:1be9:327d:8ee3 with SMTP id v11csp1051626njc; Thu, 13 Feb 2025 20:18:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUKxv2aRlfvTtdPMZZLJqJw7BqyToMGrW7tL30l+ROc1pL2fCCc+B0kHhq4G6Si9Raba1XTEZbfZ7qIKQ==@linaro.org X-Google-Smtp-Source: AGHT+IGLuYfSVw7XAQOLfLUu+DqmkdQlYLU4vGFj0gKOURUW8Oi0POvcZBRX52qPphBy+JCLMe9k X-Received: by 2002:a05:620a:4113:b0:7c0:61cf:5f96 with SMTP id af79cd13be357-7c06fce2d81mr1585690485a.58.1739506687251; Thu, 13 Feb 2025 20:18:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739506687; cv=none; d=google.com; s=arc-20240605; b=BW6w69IZNHLb5rV98XYSh/P1kS5lelPyJaDiyH04HMbuqKeW1T7IrQAW3CVuHZRkgH CrBlKJMW10F5fe6VN8wEPbw1qyPnEoyDirEk/ZAiK43+Sv8vidYk6zoxdg2EBzNfwI7R 9l6057UiGPNZwsId8ZdjxESbPGaewdvT0O/98+IBTmoigdq7CGlipa3BSo4CpwtqdCOA LSiHl5yzrE5wG46jT+q3aNG5TBu1Fpswl4yweUe9738J/aFc0M78mvv16mva6wffD+BJ 5vz7LOKqesrQbZ6uZ17RcNmWj++YPMEloGxs92Tf47E8h0fRlueaucF3pyUf95MRPaAh hxag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S3agoQvsnbcvfV7G3jamsH1kPMbU1IplGMn7H+8CMW8=; fh=wmAecxDqeNBCKAnoeE8JRGLQLypWZwcHXbjIDFVSUxs=; b=UKLJgpkmvLaW9+bmoit5dPqoTMVPYf7NeYJSi/2HrLTnC5z+8ONggYQWgfuHud+FpB ylvTbTjsKtTOU3RYAWsW4ZzVSkAf24y/llChD5d7VUT7u4pKBxj1ML/THPA/J65cTqNa +pDT0/M9znl5TjmH0XFY174v90NpWDu6uWL8MZf/I8CVBoGeoQRxZLcwYrckoI6ow48L uLinL5TdnDTUQ0T3oL2kmgAR4BLZPcicQKkoKAJL3j+cHn6CbtSjx36IAupkSfjMo1JH DRhEsllVZxR7XL4LasgyjST5SIYCmh8+NbUfMVAsvK/H3N3QhVJAVDjFcF054NoM18Pq jjWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A+kpJoKe; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c07c8741b4si259673585a.198.2025.02.13.20.18.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Feb 2025 20:18:07 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A+kpJoKe; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tin8Y-0005UV-4y; Thu, 13 Feb 2025 23:17:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tin8W-0005TV-Dm for qemu-devel@nongnu.org; Thu, 13 Feb 2025 23:17:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tin8U-0002a1-TP for qemu-devel@nongnu.org; Thu, 13 Feb 2025 23:17:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739506626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S3agoQvsnbcvfV7G3jamsH1kPMbU1IplGMn7H+8CMW8=; b=A+kpJoKeizR80DcwIzH9wjW1BCi60uPU/2ibVBDoagA/MS7OE3m4PKlsEsuhHuHwKtLp4D /eiWBLqmkfFHEL4iKh3opvHBNS9HIna76Z2oGnyY9gyaKWvWM2rVxSUaTI0x3IiuF3PYq8 bp60Qa2s+/t6mAl7YJ9l/G7LkfarpFk= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-_wMW2OMBMvSecvsVl1r2Lw-1; Thu, 13 Feb 2025 23:17:03 -0500 X-MC-Unique: _wMW2OMBMvSecvsVl1r2Lw-1 X-Mimecast-MFC-AGG-ID: _wMW2OMBMvSecvsVl1r2Lw Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E6D8619373D9; Fri, 14 Feb 2025 04:17:01 +0000 (UTC) Received: from gshan-thinkpadx1nanogen2.remote.csb (unknown [10.64.136.82]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E161019373C4; Fri, 14 Feb 2025 04:16:57 +0000 (UTC) From: Gavin Shan To: qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org, mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com, gengdongjiu1@gmail.com, peter.maydell@linaro.org, pbonzini@redhat.com, shan.gavin@gmail.com Subject: [PATCH 1/4] acpi/ghes: Make ghes_record_cper_errors() static Date: Fri, 14 Feb 2025 14:16:32 +1000 Message-ID: <20250214041635.608012-2-gshan@redhat.com> In-Reply-To: <20250214041635.608012-1-gshan@redhat.com> References: <20250214041635.608012-1-gshan@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Received-SPF: pass client-ip=170.10.129.124; envelope-from=gshan@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.495, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: tM6rP5sTHR2f acpi_ghes_memory_errors() is the only caller, no need to expose the function. Besides, the last 'return' in this function isn't necessary and remove it. No functional changes intended. Signed-off-by: Gavin Shan --- hw/acpi/ghes.c | 6 ++---- include/hw/acpi/ghes.h | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c index b709c177cd..b85bb48195 100644 --- a/hw/acpi/ghes.c +++ b/hw/acpi/ghes.c @@ -390,8 +390,8 @@ static void get_hw_error_offsets(uint64_t ghes_addr, *read_ack_register_addr = ghes_addr + sizeof(uint64_t); } -void ghes_record_cper_errors(const void *cper, size_t len, - uint16_t source_id, Error **errp) +static void ghes_record_cper_errors(const void *cper, size_t len, + uint16_t source_id, Error **errp) { uint64_t cper_addr = 0, read_ack_register_addr = 0, read_ack_register; AcpiGedState *acpi_ged_state; @@ -440,8 +440,6 @@ void ghes_record_cper_errors(const void *cper, size_t len, /* Write the generic error data entry into guest memory */ cpu_physical_memory_write(cper_addr, cper, len); - - return; } int acpi_ghes_memory_errors(uint16_t source_id, uint64_t physical_address) diff --git a/include/hw/acpi/ghes.h b/include/hw/acpi/ghes.h index 39619a2457..578a582203 100644 --- a/include/hw/acpi/ghes.h +++ b/include/hw/acpi/ghes.h @@ -75,8 +75,6 @@ void acpi_build_hest(GArray *table_data, GArray *hardware_errors, void acpi_ghes_add_fw_cfg(AcpiGhesState *vms, FWCfgState *s, GArray *hardware_errors); int acpi_ghes_memory_errors(uint16_t source_id, uint64_t error_physical_addr); -void ghes_record_cper_errors(const void *cper, size_t len, - uint16_t source_id, Error **errp); /** * acpi_ghes_present: Report whether ACPI GHES table is present -- 2.48.1