| Message ID | 20251227204318.886983-5-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=1766868251; bh=kVHKJnSh6QXLzQzo0Td85fUBx4tUxl0qBEkDZktYkbw=; 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=Czkb2oPItbeCwu5QoSSVa0+f4UIxaiqj2J/1YfxLYP9nmiibxSAZctXCpncseRv3+ fkBjrMK6atsy7GL6NOJp98LgEBzfWQWNw7NIMaPjs6vGEz4Id7xoOGuH+mgtICgCjh CWOkWkcVUPmprep8LBPrVXNJEZ/63rN2+Nal4wHWDC+iuYnVe13Tpz9CbHVlnAkqfG cUzEiO5lnlrun4ZXc1cgU2X+tM+dzGZhpxy+jKbAcKLUX3u2eZxNv84P43RuvslULv EXIhNfwRxoeE8MD66TIBDbLUCxPKbL0vIIq/obUlqL+FeN+950L3bjbAI3spR4uVEq UeorE/4Nk0oaA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 93AD665079 for <u-boot-concept@u-boot.org>; Sat, 27 Dec 2025 13:44: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 Asdez1j1Gh_B for <u-boot-concept@u-boot.org>; Sat, 27 Dec 2025 13:44:11 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766868251; bh=kVHKJnSh6QXLzQzo0Td85fUBx4tUxl0qBEkDZktYkbw=; 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=Czkb2oPItbeCwu5QoSSVa0+f4UIxaiqj2J/1YfxLYP9nmiibxSAZctXCpncseRv3+ fkBjrMK6atsy7GL6NOJp98LgEBzfWQWNw7NIMaPjs6vGEz4Id7xoOGuH+mgtICgCjh CWOkWkcVUPmprep8LBPrVXNJEZ/63rN2+Nal4wHWDC+iuYnVe13Tpz9CbHVlnAkqfG cUzEiO5lnlrun4ZXc1cgU2X+tM+dzGZhpxy+jKbAcKLUX3u2eZxNv84P43RuvslULv EXIhNfwRxoeE8MD66TIBDbLUCxPKbL0vIIq/obUlqL+FeN+950L3bjbAI3spR4uVEq UeorE/4Nk0oaA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8331064E49 for <u-boot-concept@u-boot.org>; Sat, 27 Dec 2025 13:44:11 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766868249; bh=58jTiyUotq5hVyAiQ5JbXRTr8i4799TZVMtAS6VvtTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gfZbEGX1BK+i5mPXucifJzAgv11TVloozeJQZSCZSunUOAJ2l04oxPK52S7Z3/xs4 G2E5yxClusJJ4oBXnbAgKRNw/hLFMYdrmNEuGuM/XdxUOw70/vYvksSrCuqglPjSuS eCgRNnAZV3iKDFqSVlZrETLbFc2OizUn4BJnA2iG5RC1zIPGmhNZWgulfwindn45g4 a+85WVNM36El/hgn582t9mTWJC1UFFbmkYsNu7ECXcxk/7RmENJYB94KyN4yQWBE4z tvpCn3/YgKwP0udh6lY76TMQ60Eii4f0VdgykIET2ffdBho4Dr2Bkymuw0el/XdC2N ho4nOzSKpuHBg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4C48964E44; Sat, 27 Dec 2025 13:44:09 -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 S_Rlritl9Xdt; Sat, 27 Dec 2025 13:44:09 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766868245; bh=4xps/UFYrR3ERCW3A/N2Kf8g5YVxHnLw0vPNiuXj8UI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=igbWKzdjWJDUYt6ONJdhV+AjT1D6nBHdtCA1lJBPh2wfoj+Zgqgd7Zuir9ML5VZEQ my6n8AHzQVtRby3NFPKYvMKvZtO5W8QSafXblt9atQU43bpND5l5/oiTQ8e8NTgW2A 3sf51OD+eLuUOiIGMwOFDg7r1JOQGKDnTx7MSRPiq8M/iJsZ/yzNyEGco3KeSMRTCW MesyzQrpKBXkl9dKEF2nrQuEwlyh/44aWXo+e8JqmnhlrOVbGY8pJNXyh6UTxXw1ci /4iEKtLa7vJlFKoMEY4l6bOSaA1uEdvgBVhlZB+x44cmNEFddLjAJ1wn9a77Ss85Ya 7nlyy4/iXwEQw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E55AA64E1F; Sat, 27 Dec 2025 13:44:04 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sat, 27 Dec 2025 13:42:59 -0700 Message-ID: <20251227204318.886983-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251227204318.886983-1-sjg@u-boot.org> References: <20251227204318.886983-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: PG2FA2HKJEEFXMBRSV5H3WNRW7OKSS3O X-Message-ID-Hash: PG2FA2HKJEEFXMBRSV5H3WNRW7OKSS3O 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 Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/16] sandbox: Convert IRQ macros to static inline functions 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/PG2FA2HKJEEFXMBRSV5H3WNRW7OKSS3O/> 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 |
fs: ext4l: Complete read-only filesystem support (Part I)
|
|
Commit Message
Simon Glass
Dec. 27, 2025, 8:42 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Convert the local_irq_* macros to static inline functions to avoid "unused variable 'flags'" warnings when building with the atomic operations from asm-generic/atomic.h. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- arch/sandbox/include/asm/system.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/sandbox/include/asm/system.h b/arch/sandbox/include/asm/system.h index 7933b6292e2..438e2f65dc8 100644 --- a/arch/sandbox/include/asm/system.h +++ b/arch/sandbox/include/asm/system.h @@ -7,10 +7,10 @@ #define __ASM_SANDBOX_SYSTEM_H /* Define this as nops for sandbox architecture */ -#define local_irq_save(x) -#define local_irq_enable() -#define local_irq_disable() -#define local_save_flags(x) -#define local_irq_restore(x) +#define local_irq_save(x) ((x) = 0) +#define local_irq_enable() do { } while (0) +#define local_irq_disable() do { } while (0) +#define local_save_flags(x) ((x) = 0) +#define local_irq_restore(x) do { (void)(x); } while (0) #endif