From patchwork Tue Jun 27 12:43:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Jackman X-Patchwork-Id: 113418 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8184423vqr; Tue, 27 Jun 2023 06:11:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6tPUapJw2KCPOeyCH8olsNeMHt4BeXafMYHQcIDQgbxBGSCTeGzZxkfHrtaF3yxBLaOQGR X-Received: by 2002:a05:6a20:9143:b0:122:cb38:637a with SMTP id x3-20020a056a20914300b00122cb38637amr18589217pzc.29.1687871469740; Tue, 27 Jun 2023 06:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687871469; cv=none; d=google.com; s=arc-20160816; b=aPFzdjHpD/tjtQ+K5KDLA/xG2CO3XFFcw4a9CCrxqP2R16J4BmyRzh/DLuXqRUhIuG GJoWVG9ARPwJBxDPAn0/LGYZ87cMvNBDXqDPkpoGD1Or2EXSoY2eX4xXsayYwC1NFplN kHSRvyE5v5UkdraT5jYkgoAihf01LdU/qaRVF0GfNqavkLlxD4VmdNl5D0sYbSIEw1Gm IzkOy9LLrplOFolgdiQe6ZkuBdIrR0pT+3mQ7mHD8n+rHRaICdABSZSYKkcVbRto4JjF /VXKgBLbL2ExynF4D8lObI1ACejekmt6f+UaMaSEmoW27eajEOp7Y5ocJDoQ6ByJpp97 5dXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=BeZ04hbX0o0OGbczXpo+BMf+c6CF1b+wPc/4mciyaDk=; fh=MVE8ejLLwRUvvCdBuLlx+DnMBKDtqkhpIujnowIOjuQ=; b=TnnSS9yyyt/s1qlWchcATSChkrAxehrKznJtIXpRfUWtjx3URIZYeCZe2YjOQEEEhP YUOXx2FAZAuSA2qY/1Sofk0z+9MEFY/5hUzkYqoG8ff3kRi1/Nw3sA1Mt1AxStgP/cBt tlLBI1ZMN/ShWDpujHnkce/7sbmpILogNxvw9ByHKmt7a2ghh+JYkH/maymY9Myqh9Ij vlTQ5IEccNnbwNHeMP6YuTBgxHHU2CeSShXjnx1fzDYgXUmN27NtX+lXtHALX4HaId0B zKw34s7Gh5e20myH5eHA8QqyeX+FbxHSmqExBKlKgpRO6L2wkecu+tiQkbie9g5aMQ8f Mw4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=N4jr1ly5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630156000000b0054f71faf5aasi7521256pgb.581.2023.06.27.06.10.56; Tue, 27 Jun 2023 06:11:09 -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=@google.com header.s=20221208 header.b=N4jr1ly5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbjF0Mnm (ORCPT + 99 others); Tue, 27 Jun 2023 08:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjF0Mnh (ORCPT ); Tue, 27 Jun 2023 08:43:37 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9AEC26AF for ; Tue, 27 Jun 2023 05:43:36 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-565d1b86a64so47392857b3.3 for ; Tue, 27 Jun 2023 05:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687869816; x=1690461816; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=BeZ04hbX0o0OGbczXpo+BMf+c6CF1b+wPc/4mciyaDk=; b=N4jr1ly5sXWSLB61CdJ88r1mZUD3cS2jkXNpOj7eN2zwCJy4PEuMh5OXXvZb0NpavI WBTjIiJhRvLDh1BDoJvVk73Pv/MftEnH93xLt3TLXcWQ8F9oWNT4ixsTWXPe0kXKobyZ 4ZhFhh3p6UDyc55dNpR3jKVB7hIMXGeoOnw7sGj/vqiJg0+5oX6+vEQJ/seczUDQS7z4 PykriSaN5nN88uFuWZ7zX2wiDQ0PLsVMVl8aJl1b/n6ff8LcgCksrU5E1tp0J+CZgLuJ b2JI7tpAOPEbJ0iRvWMsvjs0SAWe3ysxm0sfHZPKMAzy49swu7K1zE9WH3qRuc135AOD Yrzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687869816; x=1690461816; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BeZ04hbX0o0OGbczXpo+BMf+c6CF1b+wPc/4mciyaDk=; b=Mf6XXwwxJ+ia9iz0kMkM2THnRROF+92LJRwmE+X1xXPdUT+Bsf6gJNlXgn7lsAD79r qwRxQgaeJVMGqJdkiZ0ohrfswrMEd3xuJOUGNmfpfvxwhGYhqVwQRnLpoPPVgz7Zb4+I tUgN7CsKM8eoyu4+KC1BlVkiUtmoOmQy8uBAvXseAjliyYD9lTsPeAHxDrCotBKYlf3/ 71tH3ZGY6v1HFEReMmh/ovdtK2++q1jnJsxiZMFoz9pTLnkyHApm4d/GFdt4x2KXy6IL +VGeH9LPxqwKPncPotjHmT/soepKz07Z3xPD2KNT3Ni4At/1OH9PwYs1jmm5N83gy2G8 eYSg== X-Gm-Message-State: AC+VfDzygUegRi66bJDERlZVgyIDKuLCtBMHF1C1MhlIpR7ovAoYOsnS 8oFcYrIJj0a1nwMr5GjP//kQoYf6AbuVr8DjocV66N46VZLMFffkjPrtZjbSb8bnlk8zD8thzEy nKi3vwY8fQgeopfwABqv4JsGUEJm71RGp0CfW5zSqlVmu2O2zdc3vzaW5KJ98ZFOw681gfcm/z9 w= X-Received: from beeg.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:11db]) (user=jackmanb job=sendgmr) by 2002:a05:690c:701:b0:565:bd68:b493 with SMTP id bs1-20020a05690c070100b00565bd68b493mr14670642ywb.6.1687869815849; Tue, 27 Jun 2023 05:43:35 -0700 (PDT) Date: Tue, 27 Jun 2023 12:43:32 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230627124332.82758-1-jackmanb@google.com> Subject: [PATCH] scripts/gdb: Fix importing SB_ constants From: Brendan Jackman To: linux-kernel@vger.kernel.org Cc: jan.kiszka@siemens.com, kbingham@kernel.org, f.fainelli@gmail.com, akpm@linux-foundation.org, jackmanb@google.com, p.raghav@samsung.com, mcgrof@kernel.org X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769861514492041770?= X-GMAIL-MSGID: =?utf-8?q?1769861514492041770?= Commit f15afbd34d8f ("fs: fix undefined behavior in bit shift for SB_NOUSER") switched these defines over to use BIT which when, !__ASSEMBLY__, expands to something equivalent to 1UL << x. The UL suffix isn't valid python. Luckily we already seem to have a facility in the preprocessed code to handle cases like this. Signed-off-by: Brendan Jackman --- 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 471300ba176c..50a92c4e9984 100644 --- a/scripts/gdb/linux/constants.py.in +++ b/scripts/gdb/linux/constants.py.in @@ -48,12 +48,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)