[LTP] [PATCH v8 1/4] Refactor regen.sh script to generate syscalls

Cyril Hrubis chrubis@suse.cz
Thu Oct 31 17:21:05 CET 2024


Hi!
> +while IFS= read -r arch; do
> +	(
> +		echo
> +		case ${arch} in
> +		sparc64) echo "#if defined(__sparc__) && defined(__arch64__)" ;;
> +		sparc) echo "#if defined(__sparc__) && !defined(__arch64__)" ;;
> +		s390) echo "#if defined(__s390__) && !defined(__s390x__)" ;;
> +		mips64n32) echo "#if defined(__mips__) && defined(_ABIN32)" ;;
> +		mips64) echo "#if defined(__mips__) && defined(_ABI64)" ;;
> +		mipso32) echo "#if defined(__mips__) && defined(_ABIO32) && _MIPS_SZLONG == 32" ;;

It would be nice to get a confirmation from someone who knows mips that
these changes in ifdefs are okay, otherwise:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list