From patchwork Wed Jan 21 22:08: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: 1733 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=1769033380; bh=y9nSUGcgIeG8sp01Nnqkjncop2NpMFmFzgBHVsvpfBk=; 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=pvuvHHrBx09+qD+TB4oLOEGY/ncERFge8lVtvt+9Vl/HFJDnD8kg1ti0g8ApHw1O4 BF/4zEFeKW1i9JKyoEwUpQEpGFpgYs0Vxx5wbE+xsISHDeU3/KU34LfluQ3enb3HXc XTlR1l6+Hq49TXROngDwpUZh1W0MgoCkkqZ6dwYBLGcuGFABpl+VqC0yydcnC6stBm o/Pm6SKNODB7meCTy1BZnOL+C27VOVs0pvuLPOe3fFdVG73ZOiRyG4H9J4LC1t52V8 gYpmHlVi6dybiN/bV5Uy4jCScC6/P0sEeHVOY6SNyH7lc5eXBbctJQ31rRR15sJpNE awM5F4qYIQ3kQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E154069605 for ; Wed, 21 Jan 2026 15:09:40 -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 cQLS3NL517aS for ; Wed, 21 Jan 2026 15:09:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033380; bh=y9nSUGcgIeG8sp01Nnqkjncop2NpMFmFzgBHVsvpfBk=; 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=pvuvHHrBx09+qD+TB4oLOEGY/ncERFge8lVtvt+9Vl/HFJDnD8kg1ti0g8ApHw1O4 BF/4zEFeKW1i9JKyoEwUpQEpGFpgYs0Vxx5wbE+xsISHDeU3/KU34LfluQ3enb3HXc XTlR1l6+Hq49TXROngDwpUZh1W0MgoCkkqZ6dwYBLGcuGFABpl+VqC0yydcnC6stBm o/Pm6SKNODB7meCTy1BZnOL+C27VOVs0pvuLPOe3fFdVG73ZOiRyG4H9J4LC1t52V8 gYpmHlVi6dybiN/bV5Uy4jCScC6/P0sEeHVOY6SNyH7lc5eXBbctJQ31rRR15sJpNE awM5F4qYIQ3kQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D104369601 for ; Wed, 21 Jan 2026 15:09:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033378; bh=mFU8VWVDJFrNMwNmddI/aQgLM1eVIIySnGqQjbGyDag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FaAJRHtl7G8WO77LZzOJXRJvNtetuHxKzifhv9O4yJ8dQUb4HVE0tIkcv6QtcEx2v TQBiHAMOrcZpKJHomveK/WVQKNNeCXCnpYFN4SasiNmM3HlIBsY3+L+mqwBu3mqY0Q usOB7GbxlIQLaOgooghJYAwnLPzO6ITavS8luFguPLKeI0ALoJqLBUUMwMyPSec/mp +RFqxFJdp0qMaLeXL8G6xEK1jgL8nR8uPedLQW29FxXhmjcDtD3EUBroy1CLYxPA4D K6vH09lESs9c5YYyzqwGwR/3Qyr5Q/9EKLuTAnnmLmDa0QjcRgtlJOssKu/QwZJN5f rgcOyBch1fBJA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BC9CC695F7; Wed, 21 Jan 2026 15:09:38 -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 EIwt__ZtXghv; Wed, 21 Jan 2026 15:09:38 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033372; bh=wxOSfvVM5M2wq7R8m9xw9/pLmybb0kiV1GGL66/xexU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=keMpFbr9Q46iDV7fKDqKAbiw22X8Jgd7h4K7ukjalZbfsBB3B2JUmAFBS3mVsANWH bDJbENsfuPN7fAydCGgYggP0VsYJRNNDWLHYg6ehqH55I+fWGnfpIR3Zb2xrzE7Hea YWu83Yxuk1hkU3lMJ0JWzIHOgQwgzJTzAH+na6mMXMqb988d2MCNO3e8ErAWrh9ze6 ccia4xoyJG59gEj1K562OAHbmU2Si7DrplYKeNfgkau/XpGW19NnaTxbvGKFDBOP06 MyzDiVe/w6qm8wQoM9m7GkFjhsFagXQai8nrEsE5tciRv3jUocwTzICamoE+FQ6T4U q5Wa0/jm2OFsQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id B4A20695FB; Wed, 21 Jan 2026 15:09:32 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 15:08:20 -0700 Message-ID: <20260121220857.2137568-8-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: 45RXD4AQKOPM6UUXE7XUOPC3U72QCSV3 X-Message-ID-Hash: 45RXD4AQKOPM6UUXE7XUOPC3U72QCSV3 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 07/33] ext4l: Move seq_ functions to linux/seq_file.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 seq_file operation stubs and declarations from ext4_uboot.h to include/linux/seq_file.h where they belong. This includes: - seq_open(), seq_release() stubs - seq_read(), seq_lseek() declarations Co-developed-by: Claude (Anthropic) Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 9 --------- include/linux/seq_file.h | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 0cddc46cf98..278351a9fef 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -616,17 +616,8 @@ struct disk_partition *ext4l_get_partition(void); /* JBD2 journal.c stubs */ int bmap(struct inode *inode, sector_t *block); -/* seq_file operations for /proc - stubs */ -#define seq_open(f, ops) ({ (void)(f); (void)(ops); 0; }) -#define seq_release(i, f) ({ (void)(i); (void)(f); 0; }) - -/* proc_ops - use linux/proc_fs.h */ #include -/* seq_read and seq_lseek declarations (defined in stub.c) */ -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); - /* Block device operations for journal.c */ #define truncate_inode_pages_range(m, s, e) \ do { (void)(m); (void)(s); (void)(e); } while (0) diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index c10da3e4f98..6afe754745c 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -29,4 +29,12 @@ struct seq_operations { #define seq_puts(m, s) do { (void)(m); (void)(s); } while (0) #define seq_putc(m, c) do { (void)(m); (void)(c); } while (0) +/* seq_file operations - stubs */ +#define seq_open(f, ops) ({ (void)(f); (void)(ops); 0; }) +#define seq_release(i, f) ({ (void)(i); (void)(f); 0; }) + +/* seq_read and seq_lseek - implemented in ext4l/stub.c */ +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); + #endif /* _LINUX_SEQ_FILE_H */