Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp372040rwd; Thu, 8 Jun 2023 01:46:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GjmCzHya4LuQ9KCSrDxkE0g7kk/isgVKzSLXN7EH6JEvNgDXZ9pVNNFnhDh+WAEnAJmeZ X-Received: by 2002:a05:6a00:99b:b0:64c:ae1c:33ac with SMTP id u27-20020a056a00099b00b0064cae1c33acmr5275426pfg.25.1686213984577; Thu, 08 Jun 2023 01:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686213984; cv=none; d=google.com; s=arc-20160816; b=nsX1pttk4zovi4O3F6Kfq4hc9LDsv2s769+uTYhSZlcektU+IqDohILFBKCKvLzbPC rZpCx6MxGrIqzZGZUJI917N7NE3VIQ2AukIVQJ5QGFh/a9kbfPJFZ/K8ObRh8MKwy9qB WZWAmiKjgL9UpnJlfKZ3TYmICpEUQ99aRBwpaPDCyFaiiCU0+Q+1FXzGLaUK//ImfFQH gzasSRmXzaRt4uzESiAh2pv7i3lfDJswnUHAiCjXrrhlptIlaI2P5hYLTkfTvqXEmJEf fHNS6YIpzzqYFG5lO8GHECMcUsuzWYfXrYPl+D/IgRjLkPIGytZ4SsGWh4lv9pJkta6S XKjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hKi7AsTa03dnsbdLkC9lVbNne4JEvV0f+qg9iQtipPw=; b=C0b9BIAUpdHNxVI16E707Cecz6o032Df78bT3FjBLPKfaPfEqCwDarJA0ILLWV2siF S7rTZLTKUyk+uuXlv6f6BbLtp6mYqUeIeUgWR/2an7ZJqRx33L6F8xQLAs/Ozx5Ncxqx zJMuSKm1yflo4g+yqoowjso12tU7HtKAg4AdPByzbwHtaM1xUhOuKFysGOmy+gzqAPEu WIoOQdRF+5E37Tcsy3V1MQ2IPOtF0C9Q2Lj7s2GRCQ0OW5y9OqG+yFIlsxPZqOhLpZU/ ioNZiwWMruei2OtmSKrHNn1iuL+Km/FDgk1lZV/hl+dhVzLCa/ecoPoTlFc/f9jxdpfo W//Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N97GX1Ub; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b27-20020aa78edb000000b0064f6a52105bsi473490pfr.377.2023.06.08.01.46.10; Thu, 08 Jun 2023 01:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N97GX1Ub; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235304AbjFHHbO (ORCPT + 99 others); Thu, 8 Jun 2023 03:31:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235365AbjFHHbK (ORCPT ); Thu, 8 Jun 2023 03:31:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5966B1BE4 for ; Thu, 8 Jun 2023 00:31:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BD25661329 for ; Thu, 8 Jun 2023 07:31:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F6A7C433D2; Thu, 8 Jun 2023 07:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686209467; bh=kTmeeuXGB/+uirXthK09oxGfwSwfsVio1le6AZ12jjQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N97GX1UbLT0k6RJpDYSvg20+/ukDUTfuB9L3eIXLShgk5KVEpDabykNWn6vfqytAQ 3t4cNlyK7jgtPHADSTGbknvksOizd0ejX+vNo48W0BzbOqmTKbN54vo+4zeQoRuOPI 7plAGojqz1NIUiphStoPXWWuVE6CrgREGXjZNaBUg0MHjSmwLmQa9nbWU1IQbJfllR NjujqWPSv1rdNE0wDaSEGnBOwThLswqeoaik3iaUg6vsy11FEYl8tV+xcUmjGTCpeH LhuBzF68Q+koEv3LjgbZDVvavYCMQNGSyMxio0cWk48Uyk0YCl2QFPiWv7SQ1ja+gs GSrxX8WFKz7NQ== Date: Thu, 8 Jun 2023 09:31:02 +0200 From: Christian Brauner To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, gehao@kylinos.cn, Jan Kiszka , Kieran Bingham , Andrew Morton , Pankaj Raghav , Luis Chamberlain Subject: Re: [PATCH] scripts/gdb: Fix SB_* constants parsing Message-ID: <20230608-sinkt-melodie-5816a03405de@brauner> References: <20230607221337.2781730-1-florian.fainelli@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230607221337.2781730-1-florian.fainelli@broadcom.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 07, 2023 at 03:13:35PM -0700, Florian Fainelli wrote: > 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 > 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") > Signed-off-by: Florian Fainelli > --- Fine by me, Acked-by: Christian Brauner