From patchwork Wed Jan 21 22:08:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1756 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=1769033471; bh=HeB3Cu/Qsp6GG6hanhwOiM09Q2TvANGPtU+OFfjsKM4=; 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=lkkix0S/DXBEiC02Q2LCefj7VDaZAzw/lEfTKDu7KClNHyGTQYU66aBSDJSxvRhQe 7lBTKU3NFPSedGsP2lWz+497c+Rhw/nhxJYrs4LlGscB6897GHoLU3GwcTuDf5dR3c P8oX+u2Eg47fxOZa41nQzUryOPSCUYHYp4biI3OI+LWmM+1/yQn1ZADRTav0KraZig PY3RGs5Mu/1DRX02c0Ervnk55pA0yejBvHQTtf17puKYpg3ytzFHVsqwoZ3k2hjd5y onr6MU7L+giAUXmHXYoiCbNlnqJkqRz47PAx9M+hFO7WEVHDVqZjOQDt07iiWKqcOm WO/tc7L9jN1LQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C00F269601 for ; Wed, 21 Jan 2026 15:11:11 -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 rYLE3H_51V1B for ; Wed, 21 Jan 2026 15:11:11 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033471; bh=HeB3Cu/Qsp6GG6hanhwOiM09Q2TvANGPtU+OFfjsKM4=; 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=lkkix0S/DXBEiC02Q2LCefj7VDaZAzw/lEfTKDu7KClNHyGTQYU66aBSDJSxvRhQe 7lBTKU3NFPSedGsP2lWz+497c+Rhw/nhxJYrs4LlGscB6897GHoLU3GwcTuDf5dR3c P8oX+u2Eg47fxOZa41nQzUryOPSCUYHYp4biI3OI+LWmM+1/yQn1ZADRTav0KraZig PY3RGs5Mu/1DRX02c0Ervnk55pA0yejBvHQTtf17puKYpg3ytzFHVsqwoZ3k2hjd5y onr6MU7L+giAUXmHXYoiCbNlnqJkqRz47PAx9M+hFO7WEVHDVqZjOQDt07iiWKqcOm WO/tc7L9jN1LQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ABD9E695F7 for ; Wed, 21 Jan 2026 15:11:11 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033468; bh=c5rjPkEXQi6WC8NwjWNFJCednsGn5GnRZ3jEnSZmJyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R/yheWlLoI8GX+5Td/j3mKTuhkcoGR771nW5bujbhw18vpFzd/T7eZJ3DvApe8jqr SNfTtB2dm4Tlyc7Cb2S9XV9BV44DPzomNpeuJU7pe96Iw2za7Af4ElB0xVgUKfUFas uTwuAFuq2nSPQBd1QuddAAMsjtkeyXWYwYwVvvL96xJvqUkxDLslXsldzVL3w0LzNF 90YPoK7t9iVMkRvVIVxUqjBc0kTKxtTnHynTyZqDKajOSdo90BvhIMOraUHsV6Ee5z 6hJxc5uwTpAkhr5OVAyax6yBIq+MF1FoOEXhN6pryjD7wgK1M8wSRATpQYAC8/ZHfL TRBbPtMg7RC1Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B0776695F7; Wed, 21 Jan 2026 15:11:08 -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 g-iTsWlxoDMm; Wed, 21 Jan 2026 15:11:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033463; bh=MorQlXKJcr1KZUuzZpgVoI3aVUxCczdQjDUdifU619Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hKTi3ZHjrTdxYM1/HE+x/gcLHLixFk8FY+PMxNOQ7W/1RUigdeIMRqnU018/QmMMS /B6Esdkk49ttJlMGV3VWbZPxY8IIWTuqkQgnFilBZddyLWyPoMQB7pyKH4SQgiAUw9 gQOcbUC5fOcjlFKxNy91Vlpm4sDectIC6vaCokaWjWw7Sya5mVVGCHhweyRconnFMu dMOl1nRAsqAKqjm++GOGsUhvGmFIXd6cVuopzPDZdXFkDfi05QKfPNay1s+5nvaEIp IijZTVLwGh8622DBzaOcWhZtA3sLFY14gL50tz8f6olhDUu3o6e3CHSYepYRUdrv2/ qIwD3Jkd2NqbQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7FE3D695F2; Wed, 21 Jan 2026 15:11:03 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 15:08:43 -0700 Message-ID: <20260121220857.2137568-31-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: MKPWLX2AQLJ6MSL6U67MFXO736HYG3RH X-Message-ID-Hash: MKPWLX2AQLJ6MSL6U67MFXO736HYG3RH 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 30/33] ext4l: Move O_SYNC, S_NOQUOTA and kfree_link to headers 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 definitions to their canonical Linux kernel locations: - O_SYNC and S_NOQUOTA to linux/fs.h - kfree_link to linux/namei.h Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 ----- include/linux/fs.h | 4 ++++ include/linux/namei.h | 3 +++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index a7c7abf30b8..11d1d8b0d48 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -94,9 +94,6 @@ #include #define EXT4_FIEMAP_EXTENT_HOLE 0x08000000 -#define O_SYNC 0 -#define S_NOQUOTA 0 - #ifndef PAGE_SHIFT #define PAGE_SHIFT 12 #endif @@ -210,8 +207,6 @@ struct path; #include -#define kfree_link kfree - /* * Additional stubs for super.c */ diff --git a/include/linux/fs.h b/include/linux/fs.h index 69178235141..0d6da467026 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -387,6 +387,10 @@ static inline void inode_init_once(struct inode *inode) #define S_ENCRYPTED 64 /* Encrypted */ #define S_CASEFOLD 128 /* Case-folded */ #define S_VERITY 256 /* Verity enabled */ +#define S_NOQUOTA 0 /* No quota (stub) */ + +/* Open flags - stubs for U-Boot */ +#define O_SYNC 0 /* Permission mode constants */ #define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) diff --git a/include/linux/namei.h b/include/linux/namei.h index 10ea86dc49d..0b9000e8472 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -31,4 +31,7 @@ static inline void nd_terminate_link(void *name, loff_t len, int maxlen) ((char *)name)[min_t(loff_t, len, maxlen)] = '\0'; } +/* kfree_link - free a symlink target allocated with kmalloc */ +#define kfree_link kfree + #endif /* _LINUX_NAMEI_H */