Files
mirror_zfs/include/os/linux/spl/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
..
2023-01-24 09:04:39 -08:00
2022-01-26 11:38:52 -08:00
2021-06-07 09:02:47 -07:00
2023-04-25 16:05:45 -07:00
2022-01-26 11:38:52 -08:00
2022-05-13 10:15:31 -07:00
2023-12-15 09:51:41 -08:00
2022-09-20 15:32:44 -07:00
2020-10-31 09:40:08 -07:00
2021-05-27 14:27:29 -06:00
2022-06-10 09:51:46 -07:00