From patchwork Tue Jun 13 19:11:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 107516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp777379vqr; Tue, 13 Jun 2023 12:28:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cDXmbXttSpWWUt73mKS3a07b45V5VU+hD6oSlrISImU9SissvTAgESpi3MLH840y5ZYXM X-Received: by 2002:a05:6a20:835e:b0:10b:8bc7:e112 with SMTP id z30-20020a056a20835e00b0010b8bc7e112mr11624448pzc.10.1686684499363; Tue, 13 Jun 2023 12:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686684499; cv=none; d=google.com; s=arc-20160816; b=fqkvwiw4fmokrCeYMtKAPIn07bXbECMaDMd202fECchOtXFo+NqleUKDVXxYeUQC8T sUp/u2xqf9NfnTB76XBm3/yc45/1JRgLy5wGRmXQANOrfiOqy5wsBpYgJ04reHFInZl8 1rVy+91qvoGQI5kDL8JhPPy51f7LrwSHB1OJlON23JwX4/LzFxBIu7iRyKsoO/19XvB5 kNbjkblQ0WsUkfkVwLij45N3xlLn7iLoLP8QspMHp9P9XPDwRUVfRBY3ysVsUtQyBpzl DvlylyBIcoGsPRrZcbg7VgZJF0i6LCpt4emTgjtENRDrT9OtXtDUcLmV6facU2A5cAXn wm9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SrpgzuH0KR9yBiTvlVofkEktvkwwH5sLm2fMqoWHD5Y=; b=0dhPEswRX0QVJOEcAdfpEGpdChR1/aFVhTvDAAcwVogJ0GNCKYoFH6R9wgHIc2CpeG FqE9CTbulWLBeXIG729DNvPJyBQYuSzhq8w8L9/EFSYKrK+D3Bwe9R13NbwKoSzYi6hK QCVjE+cdwEdtzI12+95CA6r14KkglIsNtLwtWLrwNeZuLm8xeTT3Ll2PBjrZRi5CwC8G wbaTaPgC9Yj4ejCyecUAEnrSJ+zHs20fT8OwnMpLncHa4+dqcCTquLVCx9cVBHrmg98E A2AUB+KtCBhjhjdec2qylumEnHUgF3/Cax9dkNSuZCFHZtaAQ5ZNNnK3TuHVxXIBFQZH hxjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=L9yh2Ai3; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020aa79a06000000b0064f4d57a5ffsi9292307pfj.388.2023.06.13.12.28.06; Tue, 13 Jun 2023 12:28:19 -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=@sipsolutions.net header.s=mail header.b=L9yh2Ai3; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240543AbjFMTMO (ORCPT + 99 others); Tue, 13 Jun 2023 15:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233057AbjFMTMJ (ORCPT ); Tue, 13 Jun 2023 15:12:09 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A180292 for ; Tue, 13 Jun 2023 12:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=SrpgzuH0KR9yBiTvlVofkEktvkwwH5sLm2fMqoWHD5Y=; t=1686683527; x=1687893127; b=L9yh2Ai3tnqdzXvMDzeif6BWzWw0fxn8jn0fd97zCgMCZLj8q5hBMga3E+kl5t9bnMxyuxCdwho /g3wBQHDAGjGDN5NdUM3CG+UHjUc4v1FC3yLVVfi91l+wubBPw2/LUG4BzqKq3z+zN/NbvykH5+Fj WCigeAizo+ILcGopGQy8rplvrobyS2r8JdWLE7Fk1LB9HdbqcKGbtQ6IdQYeKhT0rMEFucIZC3AnT +9YklRYgMYBuxsMol0GRHDwUJPilBdASxxYCkFytG1VsZdJRyDNiWVjdyLUj2K4Myrnu90CYZPe3f Q68ul3O+GTRNcWvn89iwVeccIXb/Y99gF5Lg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1q99Qx-005B5P-30; Tue, 13 Jun 2023 21:12:04 +0200 From: Johannes Berg To: linux-kernel@vger.kernel.org Cc: Jan Kiszka , Kieran Bingham , Christian Brauner , Johannes Berg Subject: [PATCH] gdb: linux: make SB_* constants gdb-parsed Date: Tue, 13 Jun 2023 21:11:59 +0200 Message-Id: <20230613211159.b1faefb1a1bd.Ie873f66db5555c014c4afc15678e4fd5cfeca226@changeid> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1768616885342752010?= X-GMAIL-MSGID: =?utf-8?q?1768616885342752010?= From: Johannes Berg These now contain "UL" suffixes due to the use of BIT(), so they need to be parsed by gdb since python doesn't understand that. Also fix a comment typo while at it. ticket=none Fixes: f15afbd34d8f ("fs: fix undefined behavior in bit shift for SB_NOUSER") Signed-off-by: Johannes Berg --- scripts/gdb/linux/constants.py.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in index 471300ba176c..646fffddd862 100644 --- a/scripts/gdb/linux/constants.py.in +++ b/scripts/gdb/linux/constants.py.in @@ -48,14 +48,14 @@ 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 */ +/* linux/hrtimer.h */ LX_GDBPARSED(hrtimer_resolution) /* linux/irq.h */