I merged the resend to v5.10/standard/base

If I missed something, send another version with
instructions on what I missed.

Bruce

In message: RE: [linux-yocto][v5.10/standard/base & 
v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH] scripts/gdb: fix SB_* 
constants parsing
on 19/07/2024 Chen, Libo (CN) wrote:

> Please ignore this email since the patch does not touch 
> v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc. I will resend a new email. 
> Sorry for that.
> 
> Libo
> 
> -----Original Message-----
> From: linux-yocto@lists.yoctoproject.org <linux-yocto@lists.yoctoproject.org> 
> On Behalf Of libo.chen.cn via lists.yoctoproject.org
> Sent: Friday, July 19, 2024 10:26 AM
> To: bruce.ashfi...@gmail.com
> Cc: linux-yocto@lists.yoctoproject.org
> Subject: [linux-yocto][v5.10/standard/base & 
> v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH] scripts/gdb: fix SB_* 
> constants parsing
> 
> From: Florian Fainelli <florian.faine...@broadcom.com>
> 
> commit 6a59cb5158bff13b80f116305155fbe4967a5010 upstream.
> 
> --0000000000009a0c9905fd9173ad
> Content-Transfer-Encoding: 8bit
> 
> After f15afbd34d8f ("fs: fix undefined behavior in bit shift for
> SB_NOUSER") the constants were changed from plain integers which
> LX_VALUE() can parse to constants using the BIT() macro which causes the
> following:
> 
> Reading symbols from build/linux-custom/vmlinux...done.
> Traceback (most recent call last):
>   File 
> "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/vmlinux-gdb.py",
>  line 25, in <module>
>     import linux.constants
>   File 
> "/home/fainelli/work/buildroot/output/arm64/build/linux-custom/scripts/gdb/linux/constants.py",
>  line 5
>     LX_SB_RDONLY = ((((1UL))) << (0))
> 
> Use LX_GDBPARSED() which does not suffer from that issue.
> 
> f15afbd34d8f ("fs: fix undefined behavior in bit shift for SB_NOUSER")
> Link: 
> https://lkml.kernel.org/r/20230607221337.2781730-1-florian.faine...@broadcom.com
> Signed-off-by: Florian Fainelli <florian.faine...@broadcom.com>
> Acked-by: Christian Brauner <brau...@kernel.org>
> Cc: Hao Ge <ge...@kylinos.cn>
> Cc: Jan Kiszka <jan.kis...@siemens.com>
> Cc: Kieran Bingham <kbing...@kernel.org>
> Cc: Luis Chamberlain <mcg...@kernel.org>
> Cc: Pankaj Raghav <p.rag...@samsung.com>
> Signed-off-by: Andrew Morton <a...@linux-foundation.org>
> Signed-off-by: Libo Chen <libo.chen...@windriver.com>
> ---
>  scripts/gdb/linux/constants.py.in | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/scripts/gdb/linux/constants.py.in 
> b/scripts/gdb/linux/constants.py.in
> index 2efbec6b6b8d..001df8b487fc 100644
> --- a/scripts/gdb/linux/constants.py.in
> +++ b/scripts/gdb/linux/constants.py.in
> @@ -44,12 +44,12 @@ if IS_BUILTIN(CONFIG_COMMON_CLK):
>      LX_GDBPARSED(CLK_GET_RATE_NOCACHE)
>  
>  /* linux/fs.h */
> -LX_VALUE(SB_RDONLY)
> -LX_VALUE(SB_SYNCHRONOUS)
> -LX_VALUE(SB_MANDLOCK)
> -LX_VALUE(SB_DIRSYNC)
> -LX_VALUE(SB_NOATIME)
> -LX_VALUE(SB_NODIRATIME)
> +LX_GDBPARSED(SB_RDONLY)
> +LX_GDBPARSED(SB_SYNCHRONOUS)
> +LX_GDBPARSED(SB_MANDLOCK)
> +LX_GDBPARSED(SB_DIRSYNC)
> +LX_GDBPARSED(SB_NOATIME)
> +LX_GDBPARSED(SB_NODIRATIME)
>  
>  /* linux/htimer.h */
>  LX_GDBPARSED(hrtimer_resolution)
> -- 
> 2.25.1
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14180): 
https://lists.yoctoproject.org/g/linux-yocto/message/14180
Mute This Topic: https://lists.yoctoproject.org/mt/107428822/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to