From nobody Mon Nov 23 22:31:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1795087550; cv=none; d=zohomail.com; s=zohoarc; b=Q94QH3pe+fudAEBa/7c86laX5h8PqBIrpgDt9ePn/elel7AcN/oMEHDw1OkpLmONVTKZ9bpLV2RDl5yh9rCPYI1R0g7E02y2mR8w4zX9L3bba4TXptR65YdBJe5HrFKepOM8TjruYdXyEf0Jbp2c3TwbnfBnslotXxIrin1tJ8A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795087550; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hTzGuo4askzPGIvwZk54nwCIcBM0t+D6agMN3WAX6AQ=; b=bThkRThAMjNsuKUg2BheYE7iBz1yMeQAQ74U9fEMT+vcwWHhAiaiZiSvX+jWTm44Dz2teik30VrUCqpSz0E2AVexj0AgXNVD663DOwQGOLjXUTyJKTBrHxf9FDviCw79lB7NKJVVsCwzgIdorghIclghUb3W1AJ3sk+7gZzyJZs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1795087550117361.4730742927112; Thu, 19 Nov 2026 03:25:50 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1496123.1694765 (Exim 4.92) (envelope-from ) id 1xU0Gk-0000Ac-3T; Thu, 19 Nov 2026 11:25:34 +0000 Received: by outflank-mailman (output) from mailman id 1496123.1694765; Thu, 19 Nov 2026 11:25:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xU0Gk-0000AV-00; Thu, 19 Nov 2026 11:25:34 +0000 Received: by outflank-mailman (input) for mailman id 1496123; Thu, 19 Nov 2026 11:25:33 +0000 Received: from mx.expurgate.net ([194.145.224.20]) by lists.xenproject.org with esmtp (Exim 4.92) id 1xU0Gj-0000AP-3R for xen-devel@lists.xenproject.org; Thu, 19 Nov 2026 11:25:33 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xU0Gi-007wGo-C4 for xen-devel@lists.xenproject.org; Thu, 19 Nov 2026 12:25:32 +0100 Received: from [10.42.69.11] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6afedca5-e002-0a2a0a5209dd-0a2a450b97b8-38 for ; Thu, 19 Nov 2026 12:25:32 +0100 Received: from [209.85.128.51] (helo=mail-wm1-f51.google.com) by tlsNG-42698a.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6afedcac-b7e8-0a2a450b0019-d1558033a80f-3 for ; Thu, 19 Nov 2026 12:25:32 +0100 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4bb666304fdso6909945e9.0 for ; Thu, 19 Nov 2026 03:25:32 -0800 (PST) Received: from localhost.localdomain (host-78-146-248-75.as13285.net. [78.146.248.75]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8535bbf7sm36687935e9.12.2026.11.19.03.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 03:25:30 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=citrix.com header.i="@citrix.com" header.h="Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1795087532; x=1795692332; darn=lists.xenproject.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hTzGuo4askzPGIvwZk54nwCIcBM0t+D6agMN3WAX6AQ=; b=uS0e+fsjklBrQvbAG2DSXa9lp6ggTQR0BapTtBmXOOTJvBl1hR6P96yzk0LHw6AdDU Fjt2MM3zkwMzzKZ8/D3zg9k6bKSHUebFzP9FAqoK9nxr73yBrLj8/orGWX28LV7Nxgd6 yTiY0SfURHo2bZJElv2UeZJE9YNWRv+uH1+5o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795087532; x=1795692332; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=hTzGuo4askzPGIvwZk54nwCIcBM0t+D6agMN3WAX6AQ=; b=gSSfBH3ABpk0H3+WiHhv95ECRRvEh9CArm0cZnzQET6ugHwMqy41rBPKBBEOi1T34m DzwS5G8bBC5xjdP3yZ15sa39wc44RBNRUwbUCFJm222zuvyY6q+zp/i+7aN/H7GagUw2 j8I3JrY3o/dRR9IMb2UN8EemCqDu+8Ee7xxvd/Ym0peveY2iatz6Y8z6p4jW8dlw5iqM gjxXlErjRi60tRVjiMwDJtCfK3a6NVE9fK7dvq0zeRMZh1Llh9ywVLd24cx+fFu7fCh1 E1yV9fB9MrAj/fv6FJREXPfKVf0cNK7EnbACGRBM86L7wZ1Z0xD7kg9KrJf2spsqF30j Ad2A== X-Gm-Message-State: APuU4Z/LnIIYevlJCn3kjThM3hYgbpFhe3TgkUrfkCyEHkvxM3LTEM3D gPJngPS+bxB3MUQSkhrIQ8LGx5lGSJ4AvqPq6w9BpD1HvoacEPYn78qfAZ3yq96EUtKkFvDNByJ mTOcO X-Gm-Gg: AYBFou17IE7B6+Ibgl5SiP79qSIvNohCLjsOmfur8YZuBnLq1l/49LlW0AD+9qCWwy4 1VBDo945L802FahFyJ6/5XEYCyIbh4JUx4VzHkTYHK063f6XpziilY1DhDo8/IfaKOPfHWh/ljr H/gh3LusxF5/LDbxx+cSUQI+1Z6sKzIb1T1oZDaH1Eip9YbC3Kzyjq2abpRQ/oNNw6QkTNKoBv2 4HTxI0DwESLZVrN6LLmUKERQvDzejAOBtfMBsK96ascGuI0vdbYuoh9NLlg7Q0TDwQBE2kF4Nee 9KOhA+UK4ro3GBHR9HOu0M4pLfZ61aUoIVbHmgLm7iuCBizWbVd7JsXMqiha2CPCc13FgnQvAVE G5cchiYtCkKHliyZlMkDEbjRU7cAzw3noFPy09PqCruwUzxq7xadsxvZoOM87TDX29pFp9OhSnV sGvyk7FBMcLtuPCSkA/z0oLdApxtq5yy89t+lgGRiWaYMEAhzywhWOM7TYvO5LGE76lsT/iaoQg zw2NA7zLXyPF9yTP8n+k8AqQx8Yy4vUG4nPgP0ngXovkTDn4A+QNnQWK4dJtOsD9jY4V1aEUkPW cTcAakesdP5SPDNpYu6JyaMlEz7oK9ibUxYSvAHdv2XYd1HB9KCARfYvOJ0COxKA87HnBDwR2LN YlsI= X-Received: by 2002:a05:600c:a015:b0:4a2:1960:6fa with SMTP id 5b1f17b1804b1-4bb860f637fmr17252065e9.4.1795087531132; Thu, 19 Nov 2026 03:25:31 -0800 (PST) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Teddy Astie , Stefano Stabellini , "consulting @ bugseng . com" , Nicola Vetrini Subject: [PATCH] x86/apei: Fix up headers and MISRA deviations following code removal Date: Thu, 19 Nov 2026 11:25:23 +0000 Message-Id: <20261119112523.36032-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-42698a/1795087532-A94C39EA-8651B232/10/78276251493 X-purgate-type: spam X-purgate-size: 3121 X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1795087551398158500 Fixes: c6bd6cd2db1e ("x86/apei: Fully remove dead code") Reported-by: Roger Pau Monn=C3=A9 Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Teddy Astie CC: Stefano Stabellini CC: consulting@bugseng.com CC: Nicola Vetrini --- automation/eclair_analysis/ECLAIR/deviations.ecl | 4 ---- docs/misra/deviations.rst | 8 -------- xen/include/acpi/apei.h | 6 ------ 3 files changed, 18 deletions(-) diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl b/automation/= eclair_analysis/ECLAIR/deviations.ecl index 58af4fb5cd15..ad37c98bd5fd 100644 --- a/automation/eclair_analysis/ECLAIR/deviations.ecl +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl @@ -252,10 +252,6 @@ Therefore the absence of prior declarations is safe." -config=3DMC3A2.R8.4,declarations+=3D{safe, "loc(file(asm_defns))&&^curren= t_stack_pointer$"} -doc_end =20 --doc_begin=3D"The function apei_(read|check|clear)_mce are dead code and a= re excluded from non-debug builds, therefore the absence of prior declarati= ons is safe." --config=3DMC3A2.R8.4,declarations+=3D{safe, "^apei_(read|check|clear)_mce\= \(.*$"} --doc_end - -doc_begin=3D"asmlinkage is a marker to indicate that the function is only= used to interface with asm modules." -config=3DMC3A2.R8.4,declarations+=3D{safe,"loc(text(^(?s).*asmlinkage.*$,= -1..0))"} -doc_end diff --git a/docs/misra/deviations.rst b/docs/misra/deviations.rst index c17b44754310..9a00522df288 100644 --- a/docs/misra/deviations.rst +++ b/docs/misra/deviations.rst @@ -284,14 +284,6 @@ Deviations related to MISRA C:2012 Rules: it. - Tagged as `safe` for ECLAIR. =20 - * - R8.4 - - Some functions are excluded from non-debug build, therefore the abs= ence - of declaration is safe. - - Tagged as `safe` for ECLAIR, such functions are: - - apei_read_mce() - - apei_check_mce() - - apei_clear_mce() - * - R8.4 - Given that bsearch and sort are defined with the attribute 'gnu_inl= ine', it's deliberate not to have a prior declaration. diff --git a/xen/include/acpi/apei.h b/xen/include/acpi/apei.h index 495819e36234..8e7accbb67d3 100644 --- a/xen/include/acpi/apei.h +++ b/xen/include/acpi/apei.h @@ -17,12 +17,6 @@ typedef int (*apei_hest_func_t)(const struct acpi_hest_h= eader *hest_hdr, int apei_hest_parse(apei_hest_func_t func, void *data); =20 int erst_write(const struct cper_record_header *record); -ssize_t erst_get_record_count(void); -int erst_get_next_record_id(u64 *record_id); -ssize_t erst_read(u64 record_id, struct cper_record_header *record, - size_t buflen); -ssize_t erst_read_next(struct cper_record_header *record, size_t buflen); -int erst_clear(u64 record_id); =20 void __iomem *apei_pre_map(paddr_t paddr, unsigned long size); =20 base-commit: 69625555f5cdd2d3b83ead3e4fd2bc7b7e819bb3 --=20 2.39.5