x86/apei: Fix up headers and MISRA deviations following code removal
PATCH 1/1 x86/apei: Fix up headers and MISRA deviations following code removal
Fixes c6bd6cd2db1e ("x86/apei: Fully remove dead code")
Reported-by Roger Pau Monné <[email protected]>
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Teddy Astie <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: [email protected] <[email protected]>
CC: Nicola Vetrini <[email protected]>
--- automation/eclair_analysis/ECLAIR/deviations.ecl | 4 ---- docs/misra/deviations.rst | 8 -------- xen/include/acpi/apei.h | 6 ------ 3 files changed, 18 deletions(-)
automation/eclair_analysis/ECLAIR/deviations.ecl +0 -4
@@ -252,10 +252,6 @@ Therefore the absence of prior declarations is safe." -config=MC3A2.R8.4,declarations+={safe, "loc(file(asm_defns))&&^current_stack_pointer$"} -doc_end --doc_begin="The function apei_(read|check|clear)_mce are dead code and are excluded from non-debug builds, therefore the absence of prior declarations is safe." --config=MC3A2.R8.4,declarations+={safe, "^apei_(read|check|clear)_mce\\(.*$"} --doc_end - -doc_begin="asmlinkage is a marker to indicate that the function is only used to interface with asm modules." -config=MC3A2.R8.4,declarations+={safe,"loc(text(^(?s).*asmlinkage.*$, -1..0))"} -doc_end
docs/misra/deviations.rst +0 -8
@@ -284,14 +284,6 @@ Deviations related to MISRA C:2012 Rules: it. - Tagged as `safe` for ECLAIR. - * - R8.4 - - Some functions are excluded from non-debug build, therefore the absence - 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_inline', it's deliberate not to have a prior declaration.
xen/include/acpi/apei.h +0 -6
@@ -17,12 +17,6 @@ typedef int (*apei_hest_func_t)(const struct acpi_hest_header *hest_hdr,int apei_hest_parse (apei_hest_func_t func,void *data);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);void __iomem *apei_pre_map (paddr_t paddr,unsigned long size);
base-commit: 69625555f5cdd2d3b83ead3e4fd2bc7b7e819bb3
Signature · 1 line
2.39.5
Quoted 3 lines · Andrew Cooper
Fixes c6bd6cd2db1e ("x86/apei: Fully remove dead code")Reported-by Roger Pau Monné <[email protected]>Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Jan Beulich <[email protected]>