Re: [PATCH master 1/7] test: self: ramfs: fix unintended macro identifier confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 22, 2023 at 07:22:16AM +0200, Ahmad Fatoum wrote:
> int ret = (_ret) is problematic, because when _ret is replaced with ret
> in a macro, we end up with int ret = ret, which is valid syntactically,
> but invokes undefined behavior. Guard against this by using different
> identifiers.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
>  test/self/ramfs.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

Applied 1-2 and 5-7, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux