[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=VkNqrosH+ktqe_TT2MEeYcV36J6+yVpuc=hp0oKJcX=Q@mail.gmail.com>
Date: Mon, 21 May 2018 12:31:17 -0700
From: Doug Anderson <dianders@...omium.org>
To: Stephen Boyd <swboyd@...omium.org>
Cc: Andy Gross <andy.gross@...aro.org>, linux-arm-msm@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>,
Karthikeyan Ramasubramanian <kramasub@...eaurora.org>,
Sagar Dharia <sdharia@...eaurora.org>,
Girish Mahadevan <girishm@...eaurora.org>
Subject: Re: [PATCH] soc: qcom: geni: Make version macros simpler
Hi,
On Fri, May 18, 2018 at 3:47 PM, Stephen Boyd <swboyd@...omium.org> wrote:
> This macro doesn't work, because it hides a local variable inside of the
> macro to hold the version and that variable name is called 'ver' and
> 'version' sometimes.
>
> Let's change this to be more explicit. Introduce three macros for the
> major, minor, and step of the version, and require callers to pass the
> version in to get the part of the version out. This way we don't hide
> local variables inside macros and things are less evil overall.
>
> Cc: Karthikeyan Ramasubramanian <kramasub@...eaurora.org>
> Cc: Sagar Dharia <sdharia@...eaurora.org>
> Cc: Girish Mahadevan <girishm@...eaurora.org>
> Signed-off-by: Stephen Boyd <swboyd@...omium.org>
> ---
> include/linux/qcom-geni-se.h | 13 ++++---------
> 1 file changed, 4 insertions(+), 9 deletions(-)
FWIW I agree that Stephen's patch makes things more readable.
Reviewed-by: Douglas Anderson <dianders@...omium.org>
Powered by blists - more mailing lists