From patchwork Tue Dec 16 21:18:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 920 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=1765919925; bh=m+BJogq6Wj9a3ClHewNuMI+NMZH7GTurJAUYIdcv4iw=; 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=jq/4UcrA073nTB12Z6GQkLmDpzfTauh5EzmJPTPtO1My2e2RFgHrBNNzDQ2vXozaN XQKljrvErQ8Vx+084MIXijSOMwadqAyFq1XCYU5+ln5I1sP9rkJ6NbpEgYklhPdCTT qESh7WJnCtr+C2bBsko2iIaIKk+lCVqWHfxcrZEK2pXWMQFGGzXz6BpjNuXKDBUnYp 3gGxGu+v6MRvX8x2Y+WBLXF4HBj74XCGDJERfSUHGdLVa2yHaHFlESeNxkwIN2SfW7 Zd6iVzyELRHwy/qIrivd4PMOGQXjc4QL9CVexwnSR60o40w8ezUBVd+oMtwgjpDKOi kf/14YrcjuFfg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CECF168B95 for ; Tue, 16 Dec 2025 14:18:45 -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 9mTjBqqCtxI9 for ; Tue, 16 Dec 2025 14:18:45 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919924; bh=m+BJogq6Wj9a3ClHewNuMI+NMZH7GTurJAUYIdcv4iw=; 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=uW/A1pL+NqoWgD+AwWAoCovM0C0wIckB7c+iN9nrrqWOLTUy9C1I2qTO+whqAR0RF R5GpgrhiyREo768GX/LORxl+yhKOLMKGPEpnyujm/0cvoZLOCBhE2OKhx3GuBDtRF+ h8/smpq+MC1/aB/Ino1L5pyQQeGpGYRgyAx7Fh7Xqx1XI5uU436/i3u154oCGKy5wP Pys7jmBy21lzU+D4NGoPWcNGJIIV7ARFSmXs3WZlNA2acL4oG/wRir910WxyP6y+bl FO8sV4tnIW/TDDItCm1Qj559FFcFiTAvtfAA+FywOA5Vx77k7KdH+gLGfp7hg+W+/D DRjobmJe44Orw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6420568B9F for ; Tue, 16 Dec 2025 14:18:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919920; bh=Dbq9P3k0076xMhYJOYs0WvgLrhcM8rmJtPp0YuV2Kac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PhZmU+qWfLekp9WJ7llaiA2zWXKoIfn5Y8hOaMLQmJFV31n9p1umP5RzsQq9pJOuO QGKxk1TSrbD125CvUpUD9xSgWBJvO/9qvOYau7/VxfoVaG+QMDSzyf9UmOCE4cHHZq RUaXN6cgm5gxgXVIHyE520+d4W534VNjFCMokQmflcBxvV3EV4y76EIkAdRf8o4g/3 BvvFKq7CyPHhjJkjwnyETK3WYTBG+Wcd1Y9V9MKpKm9+hwdKdnk5eEzyqJmSkKzhr2 jfc53qwSxonfE16dqDLGOd8QjGQPlaormc1WkCnGCFAQNYcPjvjZNj8AoOFL9vqWvi 2p/0IOp9NWJpg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 97D0B68AD5; Tue, 16 Dec 2025 14:18: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 10026) with ESMTP id CP2L2k0um-ic; Tue, 16 Dec 2025 14:18:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919920; bh=DFn9ruJA90713/nH1HfrfEcY2nKnQQ2WSgPlLpjD+JM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dPt6CQD+GxWQsnun1pbIoDO/m7+PmH1lknmQFWdzT1kH93tozS4c2XSjfdw/8G39l ip0jcawbKl9rLfhgeE+lReFag1UgzFLfw5j517QqQrEKLKRbWTX3xosI1vZHylPHhF MbFney9vF1Lf+/bAkOFp3toIEa1WQXKT4YZiL8nb8kI8i7eKiNqVgbB3tz0kZWR3rE 6ETr7j4YSZnSXFyOATEVV/e7YU2RvGPvmNkz8s8ld70mV6NzUYo6ciYKdNBy7oxNNM Z+2pXR+Ns2Aey1NUltCJT9CLKD9uWTB0SffNsX1qLGV669cgRZ/FJi9ozdFrJi2eK0 DfPaMMq6o7RSA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 16496689CD; Tue, 16 Dec 2025 14:18:40 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 16 Dec 2025 14:18:06 -0700 Message-ID: <20251216211817.4131167-6-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251216211817.4131167-1-sjg@u-boot.org> References: <20251216211817.4131167-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3GQN3NTEANCOOFSEQP3MEOTM6EDURIQR X-Message-ID-Hash: 3GQN3NTEANCOOFSEQP3MEOTM6EDURIQR 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 05/11] ext4l: Extract freezer.h declarations into their own file 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 Create include/linux/freezer.h with stub definitions for process freezer functions used during suspend/hibernate. U-Boot doesn't support process freezing, so these are no-ops. Update compat.h to include freezer.h and remove duplicate definitions. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- include/linux/compat.h | 3 +-- include/linux/freezer.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 include/linux/freezer.h diff --git a/include/linux/compat.h b/include/linux/compat.h index d66ca200602..190c3820a14 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -228,8 +229,6 @@ typedef unsigned long blkcnt_t; #define dump_stack(...) do { } while (0) #define task_pid_nr(x) 0 -#define set_freezable(...) do { } while (0) -#define try_to_freeze(...) 0 #define set_current_state(...) do { } while (0) #define kthread_should_stop(...) 0 diff --git a/include/linux/freezer.h b/include/linux/freezer.h new file mode 100644 index 00000000000..be38266beeb --- /dev/null +++ b/include/linux/freezer.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Freezer declarations + * + * Stub definitions for Linux kernel freezer (suspend/hibernate). + * U-Boot doesn't support process freezing. + */ +#ifndef _LINUX_FREEZER_H +#define _LINUX_FREEZER_H + +#define set_freezable() do { } while (0) +#define try_to_freeze() 0 +#define freezing(task) 0 +#define frozen(task) 0 +#define freezable_schedule() do { } while (0) +#define freezable_schedule_timeout(t) 0 + +#endif /* _LINUX_FREEZER_H */