From: Vinod Koul <vkoul@kernel.org>
To: Pei Xiao <xiaopei01@kylinos.cn>
Cc: xiaopeitux@foxmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V5] phy: freescale: fsl-samsung-hdmi: fix build error in fsl_samsung_hdmi_phy_configure_pll_lock_det
Date: Tue, 11 Feb 2025 16:17:42 +0530 [thread overview]
Message-ID: <Z6sqzpqvsumX+VOP@vaman> (raw)
In-Reply-To: <dc881f9a-37ab-466f-b6fd-2142f25eac4b@kylinos.cn>
On 11-02-25, 10:10, Pei Xiao wrote:
>
> 在 2025/2/11 01:02, Vinod Koul 写道:
> > On 17-01-25, 10:15, Pei Xiao wrote:
> >> 在 2025/1/17 09:59, Adam Ford 写道:
> >>> On Mon, Jan 13, 2025 at 2:41 AM <xiaopeitux@foxmail.com> wrote:
> >>>> From: Pei Xiao <xiaopei01@kylinos.cn>
> >>>>
> >>>> FIELD_PREP() checks that a value fits into the available bitfield,
> >>>> but the index div equals to 4,is out of range.
> >>>>
> >>>> which gcc complains about:
> >>>> In function ‘fsl_samsung_hdmi_phy_configure_pll_lock_det’,
> >>>> inlined from ‘fsl_samsung_hdmi_phy_configure’ at
> >>>> drivers/phy/freescale/phy-fsl-samsung-hdmi.c :470:2:
> >>>> ././include/linux/compiler_types.h:542:38: error: call to ‘__compiletime_assert_538’
> >>>> declared with attribute error: FIELD_PREP: value too large for the field
> >>>> 542 | _compiletime_assert(condition, msg, __compiletime_assert_,
> >>>> __COUNTER__)
> >>>> | ^
> >>>> ././include/linux/compiler_types.h:523:4: note: in definition of
> >>>> macro ‘__compiletime_assert’ 523 | prefix ## suffix();
> >>>> | ^~~~~~
> >>>> ././include/linux/compiler_types.h:542:2: note: in expansion of macro
> >>>> ‘_compiletime_assert’
> >>>> 542 | _compiletime_assert(condition, msg, __compiletime_assert_,
> >>>> __COUNTER__)
> >>>>
> >>>> REG12_CK_DIV_MASK only two bit, limit div to range 0~3,
> >>>> so build error will fix.
> >>>>
> >>> LGTM.
> >>>
> >>> Reviewed-by: Adam Ford <aford173@gmail.com>
> >> loop Vkoul for email address was written incorrectly.
> > Thanks for looping in!
> >
> > Change looks good to me. Can you please revise the patch title. A patch
> > title should describe the change we are making. Fix build error is not
> > an apt title
>
> there so many "Fix build error" : https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/?qt=grep&q=fix+build+error
>
> what we should revise?
>
> Like:*phy: freescale: fsl-samsung-hdmi: Limit PLL lock detection clock divider to valid range*
That sounds better
--
~Vinod
next prev parent reply other threads:[~2025-02-11 10:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 8:34 [PATCH V5] phy: freescale: fsl-samsung-hdmi: fix build error in fsl_samsung_hdmi_phy_configure_pll_lock_det xiaopeitux
2025-01-13 8:34 ` xiaopeitux
2025-01-17 1:59 ` Adam Ford
2025-01-17 1:59 ` Adam Ford
2025-01-17 2:15 ` Pei Xiao
2025-02-10 17:02 ` Vinod Koul
2025-02-11 2:10 ` Pei Xiao
2025-02-11 10:47 ` Vinod Koul [this message]
2025-02-07 15:40 ` Adam Ford
2025-02-07 15:40 ` Adam Ford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z6sqzpqvsumX+VOP@vaman \
--to=vkoul@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiaopei01@kylinos.cn \
--cc=xiaopeitux@foxmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.