| Message ID | 20260121220857.2137568-32-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033475; bh=k+dxP1ZEn024pm+ashlbxci78KzB894BJGzGuxBBCL4=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=YKCj9vE6cpwJWx5n/QcQOmV0RElqSUZiau80H7TfLU19ZCsfU9J5S2hM3OaP8zuLp G6yQTRCmqNJey03R9tLTzesN/i1M+DnMu+fspd9Sz5qCSjfs/BIKqDp/eAtUSrT7zl kjnaf7iM29OWFAXL87vNhETuTpDNDF5MDYd8GySRiRmb4lXmHd9mv1qnWt0zP/csG2 8ubOvmrpLrWl9gDS67ZyjRrd7rJG/85IN3oINg4k+J7B+q658fqW8wdhcooqJWRqtA /8vfrRsTz0HSPdSDhVma1NRM37bCkZA/TzsSkn2nd6kmtaaLkr44xnxiyUt6UkAuEU ZPniWVhyAYwIw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3D6CD69601 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:11:15 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id b1VDsyytvrBP for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:11:15 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033475; bh=k+dxP1ZEn024pm+ashlbxci78KzB894BJGzGuxBBCL4=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=YKCj9vE6cpwJWx5n/QcQOmV0RElqSUZiau80H7TfLU19ZCsfU9J5S2hM3OaP8zuLp G6yQTRCmqNJey03R9tLTzesN/i1M+DnMu+fspd9Sz5qCSjfs/BIKqDp/eAtUSrT7zl kjnaf7iM29OWFAXL87vNhETuTpDNDF5MDYd8GySRiRmb4lXmHd9mv1qnWt0zP/csG2 8ubOvmrpLrWl9gDS67ZyjRrd7rJG/85IN3oINg4k+J7B+q658fqW8wdhcooqJWRqtA /8vfrRsTz0HSPdSDhVma1NRM37bCkZA/TzsSkn2nd6kmtaaLkr44xnxiyUt6UkAuEU ZPniWVhyAYwIw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2CD7A695F7 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:11:15 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033474; bh=7VbitzUmrdaJHbg9KL53WR0HTmuUnV8idK5OSTAd0w8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l0vKj/VS6XW40ngy85MSuI3c8t8fa+xnMdbZJ7yVGfhagy01JvreKWcqiZ6c7Ngoc 9Y1M41fihjRFHu1wrYcQa6cOZf7zIdwUjaPya4OHBvtZ7wDtJMv/fXr6xpVjDXSRTI /KvwTbMn3Koq18k0OLz6LF3ARAXBDHWyt6lQ/v8GiqrmhrpP2ewwjsdPCnEc8NTPTM kk4Gx/AVFBBtao6bu9JnRyeVea7f/yTlulR9tW7ERV1sTskE4V9pgTQAZRSP4AvlY6 tAiSfEHM3wE5EnTWD08tJ1Ajp2D4Qtg5ZZ7CyDnTZtqSdEZWeh8GL58b87czIfdhaA tWO1yb2qu18eg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2BE8E695F7; Wed, 21 Jan 2026 15:11:14 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id C2Y_uWTBZsSD; Wed, 21 Jan 2026 15:11:14 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033468; bh=CWGyVcEqP7jWfeJqQsQTLRwGhlo0dbPFHZUIfFQgQIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=le+cd9TXsuWHi8Iq/yxcLwtSnAer7zUuQzeIb5xRG82nCB3+jBXJbY0kI5c7UxFQ8 IdiHZGfA7f90uUtMYy6zamZdLi5AoR78fRKVDcAd6NLbL6+WRBXF0O0nFNNiJK06q8 IPyK3F+XZwWue2uLadEVoWo0wnodH2qbl/GGfDehYvRWPJwjCUX2jhDZG9kho5MfC8 03RK40VeRXeeNJFgiv3NOglPWJcRUGX9edyqG1w0gjT4T/waKp9CDk/I2Lf/H7bA7u l1Tr8ToFF/DYVbQ4ycvznzsa3kImp89Q1XMBfXeppsifhZaWpilwLBleXGB6iOMyWW 95rG9w2LuJcGg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 57CBB6954C; Wed, 21 Jan 2026 15:11:08 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 21 Jan 2026 15:08:44 -0700 Message-ID: <20260121220857.2137568-32-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260121220857.2137568-1-sjg@u-boot.org> References: <20260121220857.2137568-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 46V4UTP75REPNTAKLJN4W2ESUM6UBXJG X-Message-ID-Hash: 46V4UTP75REPNTAKLJN4W2ESUM6UBXJG X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 31/33] linux: Add PAGE_SHIFT and PAGE_MASK to linux/compat.h List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/46V4UTP75REPNTAKLJN4W2ESUM6UBXJG/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Reorganise ext4l compatibility stubs
|
|
Commit Message
Simon Glass
Jan. 21, 2026, 10:08 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Add PAGE_SHIFT and PAGE_MASK definitions alongside the existing PAGE_SIZE definition in linux/compat.h. This allows ext4l to use these standard page-related constants from a common header. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 12 ------------ include/linux/compat.h | 7 +++++++ 2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 11d1d8b0d48..ad3e59a7f6c 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -94,9 +94,6 @@ #include <linux/sched/mm.h> #define EXT4_FIEMAP_EXTENT_HOLE 0x08000000 -#ifndef PAGE_SHIFT -#define PAGE_SHIFT 12 -#endif /* * BUG_ON / BUG - stubs (not using linux/bug.h which panics) @@ -359,15 +356,6 @@ struct disk_partition *ext4l_get_partition(void); /* init_utsname - use linux/utsname.h */ #include <linux/utsname.h> -/* - * Stubs for move_extent.c - */ - -/* PAGE_MASK - mask for page alignment */ -#ifndef PAGE_MASK -#define PAGE_MASK (~(PAGE_SIZE - 1)) -#endif - /* * Stubs for fsmap.c */ diff --git a/include/linux/compat.h b/include/linux/compat.h index df67b775b5b..9699f5274b5 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -90,6 +90,13 @@ typedef struct unused unused_t; #define PAGE_SIZE 4096 #endif +#ifndef PAGE_SHIFT +#define PAGE_SHIFT 12 +#endif + +#ifndef PAGE_MASK +#define PAGE_MASK (~(PAGE_SIZE - 1)) +#endif /* include/linux/leds.h */ struct led_trigger {};