Skip to content

Update powerpc utility macros

Mamatha Inamdar requested to merge mainamdar/centos-stream-9:RHEL-17382 into main

Description: Update powerpc utility macros

JIRA: https://issues.redhat.com/browse/RHEL-17382

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=57803015

Conflict Section: misc.h file changes are not included from upstream commit, because changes are already included in RHEL source code

Tested: Verified Brew build test kernel RPMs and confirmed issue is resovled

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

commit b9125c9aa043a7556626e1aafb3190c61c1e2b2b Author: Benjamin Gray bgray@linux.ibm.com Date: Mon Jun 19 17:36:27 2023 +1000

selftests/powerpc: Add more utility macros

Adds _MSG assertion variants to provide more context behind why a
failure occurred. Also include unistd.h for _exit() and stdio.h for
fprintf(), and move ARRAY_SIZE macro to utils.h.

The _MSG variants and ARRAY_SIZE will be used by the following
DEXCR selftests.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230616034846.311705-10-bgray@linux.ibm.com

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

Edited by Mamatha Inamdar

Merge request reports