From patchwork Sat Apr 18 00:39:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 2220 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=1776472838; bh=Ndfh0xojBQ7sUT4slGKHfPOZSMDHBGTxIkLUCi+5WRs=; 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=G0fHEQU0vtsGWr0KLQGXREbhUqhCJ3LGcJZhXdIW9t9B+HLxyd/ijL8SgQrsNsKqN HrwPDGDfMuqLYoha1UlyO1qRNr9EQkkKohtlArzKSQNOV+5nwz52zCh5Q+jIg38sCl F9ROC8hVX26JuEx7skNiccZkpHfuwhTaFStg69VI= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1C14A6A53B for ; Fri, 17 Apr 2026 18:40:38 -0600 (MDT) 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 gFNRU0UTh3D3 for ; Fri, 17 Apr 2026 18:40:38 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776472838; bh=Ndfh0xojBQ7sUT4slGKHfPOZSMDHBGTxIkLUCi+5WRs=; 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=G0fHEQU0vtsGWr0KLQGXREbhUqhCJ3LGcJZhXdIW9t9B+HLxyd/ijL8SgQrsNsKqN HrwPDGDfMuqLYoha1UlyO1qRNr9EQkkKohtlArzKSQNOV+5nwz52zCh5Q+jIg38sCl F9ROC8hVX26JuEx7skNiccZkpHfuwhTaFStg69VI= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0C7F26A539 for ; Fri, 17 Apr 2026 18:40:38 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776472836; bh=dtzDqdvYFCpIN/DKVTAO40USXV3ow6x11S1FIzx2wtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zb37EBKqtphYkLo5CTTAh0egg6fKJRbP9+xF4dlN8hoHaJvEhkywzs3IUBc3QRL3a 6IcT6FU+2nadizoWguPMFKO9gGe+AKzgic189mtVCON42b5NrG13HIby16n/H1ejpn TKAKZjDzTpveVzxW8UuMWO3naKT+q2WwSJjiZ6lw= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C44246A538; Fri, 17 Apr 2026 18:40:36 -0600 (MDT) 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 YnEEs597LLfE; Fri, 17 Apr 2026 18:40:36 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776472831; bh=XXMkrSBDLiIkUVlRZwjDdeflKulJKOnf25b/PF0IkwI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E19uynb0LTj2E00xI3KoHZy2DuanntinkzyZM0WOYCEAaDa6/jKDoHspEX84kBHjb ChT2qv/TlJ/c/cWyAjnmgmAQLqigxntNlFQCoXbMh5prlSMviefGZKGxBg7BeUl7MT /NE52AS+PYcoL8Nfeh6cMzCGoworRnwfGQ/hPbOM= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7A2B46A542; Fri, 17 Apr 2026 18:40:31 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 17 Apr 2026 18:39:57 -0600 Message-ID: <20260418004014.1889749-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260418004014.1889749-1-sjg@u-boot.org> References: <20260418004014.1889749-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: BGHZGJJG77LJEWBEWQQ4JZSO6NOWOXKH X-Message-ID-Hash: BGHZGJJG77LJEWBEWQQ4JZSO6NOWOXKH 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 03/10] fs: Use asm/atomic.h in linux_fs and ext4l 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 fs/linux_fs.c and fs/ext4l/support.c pull in directly, bypassing the per-arch implementation. On x86 the generic inline functions reference local_irq_save() and local_irq_restore(), which are not declared, so the files fail to build once the header is actually used. Switch these two remaining users in fs/ to , so each architecture's per-arch atomic header wins. Architectures without one fall through to asm-generic transparently. Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 2 +- fs/linux_fs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 1d83ac43ccc..b79848f6a57 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -75,7 +75,7 @@ #define no_printk(fmt, ...) ({ 0; }) /* More Linux headers (alphabetical) */ -#include +#include #include #include #include diff --git a/fs/linux_fs.c b/fs/linux_fs.c index 2237c567a9f..581df65432a 100644 --- a/fs/linux_fs.c +++ b/fs/linux_fs.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #if IS_ENABLED(CONFIG_FS_EXT4L) #include "../fs/ext4l/ext4_uboot.h"