Re: [PATCH] staging: ks7010: Replace macros with do while loop.

From: Dan Carpenter
Date: Mon Feb 22 2021 - 01:30:00 EST


On Mon, Feb 22, 2021 at 01:43:24AM +0530, chakravarthikulkarni wrote:
> This commit fix errors found in checkpath.pl.
> Error message is:
> <Macros with complex values should be enclosed in parentheses.>
> It is a good idea to keep complex macros in do while loop.
> Otherwise result may have side effect.
>
> Signed-off-by: chakravarthikulkarni <chakravarthikulkarni2021@xxxxxxxxx>

This breaks the build.

Also just ignore this checkpatch warning. The original defines are
fine.

regards,
dan carpenter