mirror_zfs/lib/libspl/include/os/linux/sys
chenqiuhao1997 41ae864b69
Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN.
In P2ALIGN, the result would be incorrect when align is unsigned
integer and x is larger than max value of the type of align.
In that case, -(align) would be a positive integer, which means
high bits would be zero and finally stay zero after '&' when
align is converted to a larger integer type.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Qiuhao Chen <chenqiuhao1997@gmail.com>
Closes #15940
2024-05-10 08:47:21 -07:00
..
ia32 x86 asm: Replace .align with .balign 2023-01-24 09:04:39 -08:00
byteorder.h Reduce false positives from Static Analyzers 2022-09-30 15:30:12 -07:00
errno.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
mnttab.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
mount.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
param.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
stat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
sysmacros.h Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN. 2024-05-10 08:47:21 -07:00
zfs_context_os.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00