From patchwork Mon Jan 19 06:15:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1624 Return-Path: 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=1768803425; bh=pr56SSfPWk/cQsFpwFgw2MJ0kHLPxkHijJOF2VJhZZY=; 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=ZqqtC7QXaOEbkwoW0TNwZVVT0D4YQiBm0dk9QRiYOK+aXxKp3Fcg3j7xABNn8PqeU Ir8g/TcZhvdsb66Tfwcr0sL+B2dACtdVj3Qyf6tBQ0dDBrPmbKm0/uv1F0scub19oJ vXHFJKUlEaSXfRvokPsj+/rduJhI2xoN1/szBfqqD7hsvb7FcqEKu0DdAEK+i4aBUr WZgecxYHGpnmx17AZyeOY1u2xsRfWnsKxlZJTy8ezur5z5Cn+vRQXYC5o298lg89Bj wuo2abl1IzMsGnFnI0GCrR6j3QHnDswKkfpQrPvb03vBRsYs6uIbS4McJTraqzTrEQ QIFSB7NQ87ptg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EB63F693AE for ; Sun, 18 Jan 2026 23:17:05 -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 lkNfZYXq0UD9 for ; Sun, 18 Jan 2026 23:17:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803425; bh=pr56SSfPWk/cQsFpwFgw2MJ0kHLPxkHijJOF2VJhZZY=; 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=ZqqtC7QXaOEbkwoW0TNwZVVT0D4YQiBm0dk9QRiYOK+aXxKp3Fcg3j7xABNn8PqeU Ir8g/TcZhvdsb66Tfwcr0sL+B2dACtdVj3Qyf6tBQ0dDBrPmbKm0/uv1F0scub19oJ vXHFJKUlEaSXfRvokPsj+/rduJhI2xoN1/szBfqqD7hsvb7FcqEKu0DdAEK+i4aBUr WZgecxYHGpnmx17AZyeOY1u2xsRfWnsKxlZJTy8ezur5z5Cn+vRQXYC5o298lg89Bj wuo2abl1IzMsGnFnI0GCrR6j3QHnDswKkfpQrPvb03vBRsYs6uIbS4McJTraqzTrEQ QIFSB7NQ87ptg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D9A4B694CE for ; Sun, 18 Jan 2026 23:17:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803424; bh=udapbJKyUSlrtCV39I/LbNXBNjk/AnTes5zflFEa5QU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eg0mLVbQa4pAhW3XbaJUCfEZuY97J3oN5UrkYxI4p91fkaU5nMJ/PDDEimh0jrVG/ vU1bZR7QzxgboAKDb4VAcp8Z21hyXeHOgNsbxgaAzxqAuwgtdFIvyh8uUODLjhAusz QXH7vgbdrrzh7j/wk7u0Qnd6vMi6n+XaGiEqzX4Usl+7ZftiqXOXz6Tjye9gTyBZtK Iw16POSHx1SoIRtNz+6jg7gnM4M+fvpsxZ6gIXOQ6Wk9DxMCSu/PbZnzZWvzYi10HH o3a1f6WAxopKnsjDIwUGhYGFpr5TgwGguzCZeYa9+3btM5GhPlInN8qIhZaZZf44wH K+yMgB5juK2Jg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 827C9693AE; Sun, 18 Jan 2026 23:17:04 -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 E-VKOQ15C1vG; Sun, 18 Jan 2026 23:17:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803420; bh=sH/B/mnmKCkxpID+7SRSVZtskItCdG8/X+WiTJUE5QQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i1RfUuQVrIPFAxswGapOwNfzFxw3mahu8t2mCQBO5pZROuZ1rAgxGOMemZ7UkEHg8 lA6JAm7opiDrfMI4G+XJ4inG0dc6LDJImF1h0+d0/5U8bpXXntGccFdidhDqExfbob wd7NefbbmkqJLxHJL9inoYatB0JdzR1b2S5ZTNwyBKN/jl/J4FQf9CJjXQXnuzHvKg wL6wbk0QfB2ZJgPfP7kqtQ2Glulh+8F7EvCCJ+3Pt5dE/7vjwIvV5AKMWfdROTNoFw RGgzVk5bBDJhLR2Kg2S/sM8fHHyKni3PugAT7LvxxVXJJRUrPVTtVLe3EWM44XfIGI AtBJkfSQjMVVA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 38F84694C0; Sun, 18 Jan 2026 23:17:00 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 18 Jan 2026 23:15:15 -0700 Message-ID: <20260119061529.3383191-18-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119061529.3383191-1-sjg@u-boot.org> References: <20260119061529.3383191-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: J2E6QO7WC2Q2UUAELJWVSDGRSXG4L2KE X-Message-ID-Hash: J2E6QO7WC2Q2UUAELJWVSDGRSXG4L2KE 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 17/23] ext4l: Move __GFP_MOVABLE and __GFP_FS to slab.h List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Move the memory allocation flags to include/linux/slab.h with other GFP flags, matching Linux kernel organisation. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 +---- include/linux/slab.h | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 931889f6046..b35559b8b18 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -126,10 +126,7 @@ #define data_race(expr) (expr) /* REQ_META, REQ_PRIO, REQ_RAHEAD are in linux/blk_types.h */ - -/* GFP flags - stubs */ -#define __GFP_MOVABLE 0 -#define __GFP_FS 0 +/* __GFP_MOVABLE, __GFP_FS are in linux/slab.h */ /* Capabilities - use linux/capability.h */ #include diff --git a/include/linux/slab.h b/include/linux/slab.h index 1b212ca0e4a..fb809063593 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -42,6 +42,12 @@ #ifndef __GFP_NOFAIL #define __GFP_NOFAIL ((gfp_t)0) #endif +#ifndef __GFP_MOVABLE +#define __GFP_MOVABLE ((gfp_t)0) +#endif +#ifndef __GFP_FS +#define __GFP_FS ((gfp_t)0) +#endif #ifndef GFP_NOIO #define GFP_NOIO ((gfp_t)0) #endif