| Message ID | 20251231223008.3251711-13-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1767220282; bh=MJuyMakNpjZA5uW76FcJEjqcpHVNPFrpTTICMW4t3V0=; 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=CZXf73y4sR6aWmchWBeP8g4/SHfFl8DlvAfmODRpdMfdtlHs1pDciKbIn2XPv9QdU bk3dhtW7IO2aXQQ3598fyMPixqpRQyUMLAsx4KWWv1ITKGnzBgdF07wzh9OU1nJhOU qxjYITebABvcxEkE7K7iUuS4nWBZaTJG5v71BLVIs6zgp4wZPH5WcRy+UKobqh3bec Qlw5s5RU+uK7ukY7/LB+jnOlTwq/ipykD18Yq+LIRDI8PCPEOIHbQn+OUTW075hZo9 ZYizyFQM72ynPv1rwtTMz5V2Dqy2jImhlE7iPFEyruwNl/EZKrs/v1lF+dGKP34WaF 5VCbRt8iainCA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 061FC68F65 for <u-boot-concept@u-boot.org>; Wed, 31 Dec 2025 15:31:22 -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 ek5PhVjNdkJA for <u-boot-concept@u-boot.org>; Wed, 31 Dec 2025 15:31:21 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767220281; bh=MJuyMakNpjZA5uW76FcJEjqcpHVNPFrpTTICMW4t3V0=; 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=vkvY3Qu4fUbJjlqLjsCvKgp+I33GfD8hi1pCa1mw5yKW+gKbMUncEMb8518lYUfsI y3ELQ0nFymumKLsf221ZWtYXu8mMpR2KSE/YXNxujj0vHWU83+MKMpIMlfq0OO6Ptj mRIGldm/F59To8/4IWQNXlVpfPsLR7Gq4YqIvbp8QN4DnL6sHsW5Ky8RB8IMTzAe3g HXlIvHlJShQq1H1qV2Z9+XPpmIi2KeTmRcIDKVajdiyY0+NX1NLhf24DwYdCnofPgp wt7FoQ8p8EyUL6NMqFjjJ1oymrEnhsMSDMJbXoiLYXxSm+DJQKIfChAtWwtWcqttrz KgalY8y77gNYg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E579068FCB for <u-boot-concept@u-boot.org>; Wed, 31 Dec 2025 15:31:21 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767220280; bh=XzzR7Wy1g8pKNXsGI3Pq7JPMRXrjcUxV2fReENeIBjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ytavq6PokJFYBpHFyTUknS+JufNQGqZhaDZBuii3am53VkeFRlH2KQDwzHQIIoPlq rwXpw6ob47shOi7m2HDFW5epOR8N4PlaDFXtx38HHKOgvF8BmBIqviBZVPrdeLHz9A UBZZBOPHx0/cAsbuWQQCM16JPYqXceVUssDv3+D7STdcgi0dwpAR8HTnlz+Vs/lU9d CVttQ2rSDxqcV9q1SKx5HAP8+gI8Xo1SuwT0PlmZlmjrkGeO+8ek1Ng+uAp7RSaNj3 qmI1y2Y9j/qn7mrLpixG0z2HVDNYxiup76F3blXKsQBSm3YW6UFq/pXtbm7a3SyfqB hO9S4w0TnHjkQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4D15A68C5D; Wed, 31 Dec 2025 15:31:20 -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 hbBvMAZTHUsx; Wed, 31 Dec 2025 15:31:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767220276; bh=QCfT4vLI2kxS1BLen1r8F84/GBlJZP4S3qhbmJbUNvg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s23dvhiO5J2IKcwppBghdmgBZw0I9rCT3NtIFwgfQjAY/k/e6D1UUzQkOQsN9cGYk Xv4cSSw/MXf4agE+YvyHr6qayBRjZ6Dj0065x8W715Hu81Pg3rxeKy58qcyELJTUEq OrD2YxIVbIHRUB0BKVKE1LuLZmm/ZIL+9uxVyZl8tAkhXHBX/TOk6K+Ovm3fMcBaxQ NlYGPDUKl0Qg+Jvzp0WgT2vfL4Keq38PPktKId+bVUyBe38/PjMmxy7wiN4IA8sLHl r/tZgKKiKWEW9Y/rv7EfChUbbSIcKCU2KJriWe8C4Hb0BiXuzi3ZYe+pUOOEP/PQmh U/crvKcga98dg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E3DE368F61; Wed, 31 Dec 2025 15:31:15 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 31 Dec 2025 15:29:45 -0700 Message-ID: <20251231223008.3251711-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251231223008.3251711-1-sjg@u-boot.org> References: <20251231223008.3251711-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 5QCXZUJUVLRPNSO7ESTXCDCHPZ4EYXGD X-Message-ID-Hash: 5QCXZUJUVLRPNSO7ESTXCDCHPZ4EYXGD 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: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <simon.glass@canonical.com>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 12/26] ext4l: Remove duplicate atomic_add declarations List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/5QCXZUJUVLRPNSO7ESTXCDCHPZ4EYXGD/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
ext4l: Add write support (part L)
|
|
Commit Message
Simon Glass
Dec. 31, 2025, 10:29 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> The atomic_add() and atomic64_add() functions are now provided by asm-generic/atomic.h so remove the duplicate declarations from ext4_uboot.h and the implementation from stub.c Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 4 ---- fs/ext4l/stub.c | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index abe54e67aa4..df26c02b54d 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -2310,10 +2310,6 @@ void *kvzalloc(size_t size, gfp_t flags); #define kvmalloc(size, flags) kvzalloc(size, flags) unsigned long roundup_pow_of_two(unsigned long n); -/* Atomic operations - declarations for stub.c */ -void atomic_add(int val, atomic_t *v); -void atomic64_add(s64 val, atomic64_t *v); - /* Power of 2 check - declaration for stub.c */ int is_power_of_2(unsigned long n); diff --git a/fs/ext4l/stub.c b/fs/ext4l/stub.c index f072cb5713f..d328c6821a9 100644 --- a/fs/ext4l/stub.c +++ b/fs/ext4l/stub.c @@ -617,13 +617,7 @@ int percpu_init_rwsem(struct percpu_rw_semaphore *sem) return 0; } -/* Atomic operations */ -void atomic_add(int val, atomic_t *v) -{ - v->counter += val; -} - -/* atomic64_add is now a macro in ext4_uboot.h */ +/* atomic_add and atomic64_add are now in asm-generic/atomic.h */ /* Discard */ unsigned int bdev_max_discard_sectors(struct block_device *bdev)