From patchwork Wed Jan 14 22:56:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1524 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=1768431541; bh=g8eCHXcEL37jzt/zEI4G2N5wxSARTPNsqbfqWVSSt44=; 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=ZLJDJLD0xY9sUVIAIbnIx3jkdw7TMz1WVuEZJJfiiR9251FPLop/Drblyh5QSSz2g ypfZxm9QLHOgyA7CDq2/AsAsYqmrj/XkBM0dEbBIAVwDITXqWpMDrMalFwukgi/1xN 9TuReVrCpmuDAVlpOy38dvZH7QxIb5+BBaaHW48OM8UccscD+v8SAJ20SePFvg0VTO sCwmwz63vxuoE18kiMCe7z0AHTyibUjmANbCZROori3T678YKH9ODtcSR4YsEnOuIB I+UQ3R0Q+qWIzWDf0veh9QPNnSYHLfnlxsYtICbFb/87wIRIpmTBw4hUya3zcOregc uG1CQp0JNQ4Pw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EE1F26934D for ; Wed, 14 Jan 2026 15:59:01 -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 BxgZQGFhUJkK for ; Wed, 14 Jan 2026 15:59:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431541; bh=g8eCHXcEL37jzt/zEI4G2N5wxSARTPNsqbfqWVSSt44=; 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=ZLJDJLD0xY9sUVIAIbnIx3jkdw7TMz1WVuEZJJfiiR9251FPLop/Drblyh5QSSz2g ypfZxm9QLHOgyA7CDq2/AsAsYqmrj/XkBM0dEbBIAVwDITXqWpMDrMalFwukgi/1xN 9TuReVrCpmuDAVlpOy38dvZH7QxIb5+BBaaHW48OM8UccscD+v8SAJ20SePFvg0VTO sCwmwz63vxuoE18kiMCe7z0AHTyibUjmANbCZROori3T678YKH9ODtcSR4YsEnOuIB I+UQ3R0Q+qWIzWDf0veh9QPNnSYHLfnlxsYtICbFb/87wIRIpmTBw4hUya3zcOregc uG1CQp0JNQ4Pw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 353CE6935F for ; Wed, 14 Jan 2026 15:59:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431539; bh=BOAeaPj0QoY0+teb41LozmO7+TkjOvZ4DkEn4wsQa+g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fdhaCHqvDyiJkM/P2y0hmSxLAw6e68Hy4zv6WykXLHnOL6Gn0HVe2vs2zROtCk0PX 6ib9mHF/5aVOpd9gxm4LjAWDdjo7u5fWdqcFVH1e0eTYjS8XLMubDLJu0TQk7ElxWy 7IQnomlXAEOF3x8xf6yuwP08CPJwd2SH8PJPZCPaJX8KqvNW3O1V7xKGkQhc3KbSHP qUo8GluFC5dNwxPSsZ3+XFgju702VmuZtH3lSAYR0T28RKR1GTCzxgWAYseBCRikyl ERAfFU6mTPvjvdC7xBghM4JTlPKr56RQvYPqgk3WcnQEt1qYLuB85/1AfzG3c+XTdg +vSudkkgbT42Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AFE8769361; Wed, 14 Jan 2026 15:58:59 -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 wRGb5XOS1I8z; Wed, 14 Jan 2026 15:58:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431535; bh=bd3EOIbwFoflguMUzDM5PE+DG4v1kjNZrmhPWMTph9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kRJnCbEMxlzd5XbiG0LD1Whr/MYLHLKy6YRmfJIqZXvQt9AWK1Q8QNqf5u7Cn4Z9r cf1IXg1jweLeYxagLVVAqQ/D4qsDQsTByJya8ocNcksz5HwdcAWkT5aWuKUYz6a9ww 5mVVX5WXfPVJZVZGvKPCQBHFfP9QXaseyOywLbgqrQ6Ocoeig6JIJ8bv9FU+FNn8ah k9OJu8FzCrcVMgyGUVmm7Xq+h4jV/R5QX8u+tmUY7XoAmzh7sKLiHjLKr97nPf9qTW +AtQ2xpQGBdg7zYa8JCigSSgYgC+dRef6YVqQgwzw2p/mjWAOUBPsthjzV/+6i+MrV XDGfocNrPeFNg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E16EF6934D; Wed, 14 Jan 2026 15:58:54 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:56:20 -0700 Message-ID: <20260114225635.3407989-31-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260114225635.3407989-1-sjg@u-boot.org> References: <20260114225635.3407989-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 7VZI26OJVPOCQLRVB7JKMNGF574J6FB3 X-Message-ID-Hash: 7VZI26OJVPOCQLRVB7JKMNGF574J6FB3 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/34] ext4l: Move S_IRUGO to linux/fs.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 S_IRUGO permission constant to linux/fs.h alongside S_IRWXUGO. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 +---- include/linux/fs.h | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 2ed5a5d4984..5f3fcaae30b 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -2524,10 +2524,7 @@ struct proc_ops { ssize_t seq_read(struct file *f, char *b, size_t s, loff_t *p); loff_t seq_lseek(struct file *f, loff_t o, int w); -/* S_IRUGO file mode if not defined */ -#ifndef S_IRUGO -#define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH) -#endif +/* S_IRUGO is in linux/fs.h */ /* procfs stubs */ #define proc_mkdir(name, parent) ({ (void)(name); (void)(parent); (struct proc_dir_entry *)NULL; }) diff --git a/include/linux/fs.h b/include/linux/fs.h index 2b05c39e88a..25966447cf2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -186,6 +186,7 @@ static inline void inode_init_once(struct inode *inode) /* Permission mode constants */ #define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) +#define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH) /* Directory entry types */ #define DT_UNKNOWN 0