x86/aepi: Fully remove dead code
PATCH 1/1 x86/aepi: Fully remove dead code
These were marked "currently dead" in commit e681c0408564 ("ACPI/ERST: fix signed/unsigned type conflicts") in 2014. They're no-less dead 12 years later.
No functional change.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Teddy Astie <[email protected]>
--- xen/arch/x86/cpu/mcheck/mce-apei.c | 40 ---- xen/drivers/acpi/apei/erst.c | 286 ----------------------------- 2 files changed, 326 deletions(-)
xen/arch/x86/cpu/mcheck/mce-apei.c +0 -40
@@ -87,43 +87,3 @@ int apei_write_mce(struct mce *m)return erst_write (&rcd.hdr); } - -#ifndef NDEBUG /* currently dead code */ - -ssize_t apei_read_mce (struct mce *m,u64 *record_id) -{ -struct cper_mce_record rcd; -ssize_t len; - -if (!m || !record_id) -return -EINVAL ; - - len =erst_read_next (&rcd.hdr,sizeof (rcd)); -if (len <=0 ) -return len; -/* Can not skip other records in storage via ERST unless clear them */ -else if (len !=sizeof (rcd) || -uuid_le_cmp (rcd.hdr.creator_id,CPER_CREATOR_MCE )) { -printk (KERN_WARNING -"MCE-APEI: Can not skip the unknown record in ERST" ); -return -EIO ; - } - -memcpy (m, &rcd.mce,sizeof (*m)); - *record_id = rcd.hdr.record_id; - -return sizeof (*m); -} - -/* Check whether there is record in ERST */ -bool apei_check_mce (void ) -{ -return erst_get_record_count () >0 ; -} - -int apei_clear_mce (u64 record_id) -{ -return erst_clear (record_id); -} - -#endif /* currently dead code */
xen/drivers/acpi/apei/erst.c +0 -286
310 lines not on this page · raw message
Signature · 1 line
2.39.5
Quoted 7 lines · Andrew Cooper
These were marked "currently dead" in commit
e681c0408564("ACPI/ERST: fix signed/unsigned type conflicts") in 2014. They're no-less dead 12 years later.No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Quoted 10 lines · Jan Beulich
Quoted 7 lines · Andrew Cooper
These were marked "currently dead" in commit
e681c0408564("ACPI/ERST: fix signed/unsigned type conflicts") in 2014. They're no-less dead 12 years later.No functional change.
Signed-off-by Andrew Cooper <[email protected]>Acked-by Jan Beulich <[email protected]>
With (nit) s/aepi/apei/ in the subject, that is.
Jan