From patchwork Wed Jan 14 22:56:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1504 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=1768431457; bh=8DfRT+wh4nhXvEAL1mobSzR0IiAoZRyXpGkfzfgRQ+k=; 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=DK4sRJ/0ZoxQfBuQzGlxVcrIycUzNmhqrKatfD/4ncGyX3jAkVBj7b9Kym30pcNW1 WAhhp3qPWykJ5Kbohx0RQvyWTFIlj1cWdFnbGEuiIq9DAFP9DUAKELVfQ9ZReTrOZc P0MPITDAhi7jPmbSVCUlz3MUZoAXVM96mqV4Z4cbLG9dSu/nqDM3PJQxRd2y8wjruw oLSf5Ab2OB22vJUsm5xCcGA1ZsEXyztD+d2AbxgAYPFGQvuZFBZc3Pf7T6P7DdjvDt BC4asOMfcdDV909QM7eukP2iae/FSKF/9OffyPnb9akBjKt71p/O3zGEDPLnTBpZd+ n6UWHRv8q4kyQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BEF6269345 for ; Wed, 14 Jan 2026 15:57:37 -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 qHApqRUEXYFe for ; Wed, 14 Jan 2026 15:57:37 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431456; bh=8DfRT+wh4nhXvEAL1mobSzR0IiAoZRyXpGkfzfgRQ+k=; 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=rnV9YOY9PcpQtxl3TptX8p4lTTce++QX7y2GjQOi8+t2skManFy0f+Bc5DlfvmHjI qAEcKdUy2lrm09hhnTqgQsY+gM7yPmtFMFyBOxee4SqDpu7UBM3yqjtZSkLtfriFBJ JNefO4N7y3UDDqJbVSV6sNVr55mKEacMi68Zi+8EnxZUfxFMspTtdNw9KGcKaZ66YS MRBr8qwVSUY4zQAGf5JOTmlbBUjNG7l7Dct8I3g13TSR5kV2wUM7kzntsXKelC/bfV HIy6Mb7nae4gN5YfOrgp3oaLv5pvtrLhY9QSDVlcMvqVZkmjmAMCRl798ssAFMw3yT 1eV5Fhm1zuymg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BCB566934D for ; Wed, 14 Jan 2026 15:57:36 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431454; bh=2++yIrpXUoVtIR/Miz77y4/KEDln11pqnnp2UvVmvtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zc2g2Czgzfx+dW8A0+Seed5dbcJbwlobcTXteq+FjWjRRDShsvnGbJrP8TOrf7BcW dvoaHC4tTlqwr4GRvigryHzcq1qR0Kxm6HrhZCA6hxCGBG6pfxGhL7vc+DkksCTIjY 5gHpj4tQf+QH8KYoPNB6QL2NdRQ8bWQZTG4iWzbJD/s8phOQ89wSKzSQCYpVhPEEX6 42bHaL13oJWQSsz1kLQ0XNU0KZaqJkO88jaY1HGOuC7OYNA1+RK5GweiyPZupj8vpn jBXZr0tEENEYHODWh622tbC69Rfgm7Dx76E5NDGwgQsyWD8ROM3nhwn7Wb/vypPuUP TXHZeya/YM+Xw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ABEBA69342; Wed, 14 Jan 2026 15:57:34 -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 TKJwyJeouSc0; Wed, 14 Jan 2026 15:57:34 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431454; bh=Te62FQx1yfPJl8d3UpJZzinwF/VZwUz1glval4A8ZIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HtknHdqxysRC8hD7FvBorWj3DQQ9WguFPs+MpWQBUpn45ucTqTYeZEvNPGI64DE84 mdV43UQ7NRwHbxux0VUTWb+PNcHMbD41KiVgpDdRfgSKeA0LDtXnd/ggpvicB7cssi VfKqfIZyBRMThhyQPPF9ZT3OvWeKDxaluWU30D7cfqxVLkTH3xVpgIc3yCuhBw+X9v hufr1qRQAlEM3h1FzU3huXZ4bgPhQ3sNJuf/vM2c0nBByypU3BWduN3ERW4M+y13Tg XN19zBabUmq3DliV75U4Oq/iCt/AKjQTDtHY1GMJ3F/lBGCnWJaYJl4nKeTBpLCEzK shvABMhtmm8bA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F2BB7692EF; Wed, 14 Jan 2026 15:57:33 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:56:00 -0700 Message-ID: <20260114225635.3407989-11-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: 2ZJAJZ4YISJTP4DW7EMG77PBTGWRNRL6 X-Message-ID-Hash: 2ZJAJZ4YISJTP4DW7EMG77PBTGWRNRL6 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 10/34] ext4l: Convert dquot_suspend from function to macro 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 Replace the dquot_suspend() function in stub.c with a macro in ext4_uboot.h The function just returned 0, which is the same as what the macro does. This is consistent with the other quota stubs like dquot_resume which are already macros. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 4 ++-- fs/ext4l/stub.c | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 16b0512781f..0edcb4533b7 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -2303,8 +2303,8 @@ void *bdev_file_open_by_dev(dev_t dev, int flags, void *holder, /* Filesystem sync - declaration for stub.c */ int sync_filesystem(void *sb); -/* Quota - declaration for stub.c */ -int dquot_suspend(void *sb, int flags); +/* Quota - declarations for stub.c */ +#define dquot_suspend(sb, type) ({ (void)(sb); (void)(type); 0; }) int dquot_alloc_space_nodirty(struct inode *inode, loff_t size); void dquot_free_space_nodirty(struct inode *inode, loff_t size); int dquot_alloc_block(struct inode *inode, loff_t nr); diff --git a/fs/ext4l/stub.c b/fs/ext4l/stub.c index 6e16af2dc24..378ee76b8b5 100644 --- a/fs/ext4l/stub.c +++ b/fs/ext4l/stub.c @@ -444,11 +444,7 @@ int sync_filesystem(void *sb) return 0; } -/* Quota */ -int dquot_suspend(void *sb, int flags) -{ - return 0; -} +/* dquot_suspend is now a macro in ext4_uboot.h */ /* MMP daemon - now in mmp.c */