xtensa: clean up ELF_PLAT_INIT macro

Wrap _r in parentheses in the macro body.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2022-06-03 20:44:06 -07:00
parent 80e78fcce8
commit ccd2d9df6e

View File

@ -153,10 +153,15 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
*/
#define ELF_PLAT_INIT(_r, load_addr) \
do { _r->areg[0]=0; /*_r->areg[1]=0;*/ _r->areg[2]=0; _r->areg[3]=0; \
_r->areg[4]=0; _r->areg[5]=0; _r->areg[6]=0; _r->areg[7]=0; \
_r->areg[8]=0; _r->areg[9]=0; _r->areg[10]=0; _r->areg[11]=0; \
_r->areg[12]=0; _r->areg[13]=0; _r->areg[14]=0; _r->areg[15]=0; \
do { \
(_r)->areg[0] = 0; /*(_r)->areg[1] = 0;*/ \
(_r)->areg[2] = 0; (_r)->areg[3] = 0; \
(_r)->areg[4] = 0; (_r)->areg[5] = 0; \
(_r)->areg[6] = 0; (_r)->areg[7] = 0; \
(_r)->areg[8] = 0; (_r)->areg[9] = 0; \
(_r)->areg[10] = 0; (_r)->areg[11] = 0; \
(_r)->areg[12] = 0; (_r)->areg[13] = 0; \
(_r)->areg[14] = 0; (_r)->areg[15] = 0; \
} while (0)
typedef struct {