From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgate02.uberspace.is (mailgate02.uberspace.is [185.26.156.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5598436EAA5 for ; Mon, 27 Apr 2026 14:42:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.26.156.114 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777300937; cv=none; b=QYgz5HxjYEeZMaqGyCjy3Cemw/9qaZs8jNr4zAv7CJyzRQAchIyy9sL23HYTKS5c3NPrM8kQRWBtNPnX8WoXUqWo8PN7j+lwgpQ9/C9QMXZMsovike6h5mGF7vOzH080jxls1w7YQv75r8KJ7Q879yBY4WAnrR4BfR7BxsSNk6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777300937; c=relaxed/simple; bh=WyBTusmtzMDTHzFGz+DLLG33A5wIXm0aJWsC4bU8jJc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QFFcfpJ4pgvgT0UgTLQ6fNd6VdNFt4hRiCmMdlMOBOobQWCtJEjM1/LkQDZYWG+EYJRPHjAio4jGdWtYE0Cu50S5VSCU/KhO8gAup6ycxS/fjPYZgG6bTP5fvHqHOr/LUD0XF1VbD+DEhPP5j5ogX0ReqrQQyahiHEcj3Ec0ppc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=yshyn.com; spf=pass smtp.mailfrom=yshyn.com; dkim=pass (2048-bit key) header.d=yshyn.com header.i=@yshyn.com header.b=gDQpRHWl; arc=none smtp.client-ip=185.26.156.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=yshyn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yshyn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yshyn.com header.i=@yshyn.com header.b="gDQpRHWl" Received: from phoenix.uberspace.de (phoenix.uberspace.de [95.143.172.135]) by mailgate02.uberspace.is (Postfix) with ESMTPS id 85FAA184725 for ; Mon, 27 Apr 2026 16:25:13 +0200 (CEST) Received: (qmail 3956 invoked by uid 988); 27 Apr 2026 14:25:13 -0000 Authentication-Results: phoenix.uberspace.de; auth=pass (plain) Received: from unknown (HELO unkown) (::1) by phoenix.uberspace.de (Haraka/3.1.1) with ESMTPSA; Mon, 27 Apr 2026 16:25:13 +0200 From: Illia Ostapyshyn To: linux-kernel@vger.kernel.org Cc: Hao Li , Harry Yoo , "Vlastimil Babka (SUSE)" , Illia Ostapyshyn , Andrew Morton , Seongjun Hong , Kieran Bingham , Jan Kiszka , Florian Fainelli Subject: [PATCH 1/2] scripts/gdb: mm: Cast untyped symbols in x86_page_ops Date: Mon, 27 Apr 2026 16:24:47 +0200 Message-ID: <20260427142448.666117-2-illia@yshyn.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260427142448.666117-1-illia@yshyn.com> References: <20260427142448.666117-1-illia@yshyn.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Bar: ----- X-Rspamd-Report: REPLY(-4) BAYES_HAM(-2.996797) MID_CONTAINS_FROM(1) MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5) X-Rspamd-Score: -5.596797 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yshyn.com; s=uberspace; h=from:to:cc:subject:date; bh=WyBTusmtzMDTHzFGz+DLLG33A5wIXm0aJWsC4bU8jJc=; b=gDQpRHWlif6ooj13qwToU1uqPATYJDMF5/Fl6w4b6V/W2W/Rr788xQBHmtYBiE0lO28AS/LM22 PiP+0k+W1u29NzIWNHMfnwjlIRRGvsMeY3pdzmlWCizCe4Agm2gmscCVg57N4rw1nO9B1AmjIxEt ZApNUrg+xVCEcapMe3f/rTle01FAegdohPDBFBom2dWe/s5srziFWdQEvgsZaeAx0XHfkrE0YiA7 V1/+WLZHXcFPkI/rnc4g/BXkeAgn6DSTrsAUTYbTwZXQfsiFCOszckN11VZN3RUDQO71nov/1CaO A7YIWQ3SHEDrJZdfs1M7E5zH0Li3vfgzBqvT17uw== The symbols phys_base, _text, and _end, used in x86_page_ops are either defined in assembly or implicitly by the linker. Thus, they lack type information and cause a conversion error after gdb.parse_and_eval. Explicitly cast these expressions to unsigned long. Fixes: 55f8b4518d14 ("scripts/gdb: implement x86_page_ops in mm.py") Signed-off-by: Illia Ostapyshyn --- scripts/gdb/linux/mm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gdb/linux/mm.py b/scripts/gdb/linux/mm.py index d78908f6664d..dffadccbb01d 100644 --- a/scripts/gdb/linux/mm.py +++ b/scripts/gdb/linux/mm.py @@ -40,11 +40,11 @@ class x86_page_ops(): self.PAGE_OFFSET = int(gdb.parse_and_eval("page_offset_base")) self.VMEMMAP_START = int(gdb.parse_and_eval("vmemmap_base")) - self.PHYS_BASE = int(gdb.parse_and_eval("phys_base")) + self.PHYS_BASE = int(gdb.parse_and_eval("(unsigned long) phys_base")) self.START_KERNEL_map = 0xffffffff80000000 - self.KERNEL_START = gdb.parse_and_eval("_text") - self.KERNEL_END = gdb.parse_and_eval("_end") + self.KERNEL_START = gdb.parse_and_eval("(unsigned long) &_text") + self.KERNEL_END = gdb.parse_and_eval("(unsigned long) &_end") self.VMALLOC_START = int(gdb.parse_and_eval("vmalloc_base")) if self.VMALLOC_START == 0xffffc90000000000: -- 2.51.2