| Message ID | 20251230205157.3383926-15-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=1767127979; bh=MYohzdmgtZ3eFucAGTocZnCPIMAeKj+HUL9CnCnzrAg=; 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=P8REFfIk0P+4kQnYkYAg4AzVueOW8UJmVPw8Rl6soBJa/n9UpEDZQB7RqP3wLPXp+ R9vRCRU92PX3YwoPeNvv2teyB8nuTlZsGgqBEFTlZlCRfHepaF6hNaQWVczWGILLmu vCd36dNeFWchnMzBpxIhLjkQf2iOGByH3UxpqV/wKpzXp+ru8ji4iBq3a4EFt/uuUp 3gPfxo8nfty99Ync84QCH0vm05Ryet78HIg2w0aencVmKe54Ocvii/dRxgRSHkGugu VP6hPQXdMB5BBNsG9peHGqS1mFClf99po84EeoOJJ32BUiJaWetG9+R6TBVbl8vuuh npAWtNNbMKSSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 100C668F99 for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 13:52:59 -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 b2DvUTrQozRR for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 13:52:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127979; bh=MYohzdmgtZ3eFucAGTocZnCPIMAeKj+HUL9CnCnzrAg=; 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=P8REFfIk0P+4kQnYkYAg4AzVueOW8UJmVPw8Rl6soBJa/n9UpEDZQB7RqP3wLPXp+ R9vRCRU92PX3YwoPeNvv2teyB8nuTlZsGgqBEFTlZlCRfHepaF6hNaQWVczWGILLmu vCd36dNeFWchnMzBpxIhLjkQf2iOGByH3UxpqV/wKpzXp+ru8ji4iBq3a4EFt/uuUp 3gPfxo8nfty99Ync84QCH0vm05Ryet78HIg2w0aencVmKe54Ocvii/dRxgRSHkGugu VP6hPQXdMB5BBNsG9peHGqS1mFClf99po84EeoOJJ32BUiJaWetG9+R6TBVbl8vuuh npAWtNNbMKSSw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0068068C0D for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 13:52:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127976; bh=hzkr3ALsAkp4gtV9dNATBMj25OfIb2g5AeNT9KZ065k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tPrebfnLOVPhg0bUElmm6DUxdwDBAqpkas6oVB/WO1OSLdU3NDcWBlBDTV0KmN/oP bzi4sNgaI67D9xkIVNsTRYZg9RzDk1EjFzzG0c8GonmpKvC5TdtlhiZ4lsRcXyzdBE AGNTnOn2AelcLkfFmXy6hiw89DmPN0o7SNhWzDoM28s8fsDyTPdyQwBL3xMvhiQ1ci x2AF2C/2MTLn1XvwEGw82bMGI9FF7Jlgh4mxvSGI9JsMCrUiCxCeFeaAh5M8f7f9Ok 7dUz+ORvwYcMWLSkW6Y4h/eT5opVqiWstbyA0wW8Y2ex2pnfWORnHJAaTiCQmvktsb Cf/ptXX7YwbOA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 285A564C8A; Tue, 30 Dec 2025 13:52:56 -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 Wxh_bNdXOMQc; Tue, 30 Dec 2025 13:52:56 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127975; bh=WR01wCWroav8nzh8fve+YnOtRqOzL5saK5Zdd1vCU5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GJY9s0DR0aww4bDygh9bCC5V3cRG0Gg+wyeUxmkm9yS+3X8fi0IS5z3wPhVaI3tJ0 sY+KwQc4PLEyaCvDbO/yMe+1gSS/1QAwWQkbv2akXQbRoXH8P+RBcZNPJOQim2nfJN 84XcE8+MF3m/V4kwRB+kE1n1to0HlxTzXpnfpUzIX6F+glEVniUIe+HAPtHMUFtAKm /rXzMYe2XxZViiNVuS90ZfQUaFUDYBsqNZG3OyGBvMJ2brVNu0JQ8GfQ1ELkN6+xtL JM1l6KKgwTIyU9s5YNryRUqP7ryLgXw+bqUMZoyolBt8rHZriM6TvxeVcw4TN6+d+M ftQOvpKHQjplg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id BFE6B68F6F; Tue, 30 Dec 2025 13:52:54 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 30 Dec 2025 13:51:51 -0700 Message-ID: <20251230205157.3383926-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251230205157.3383926-1-sjg@u-boot.org> References: <20251230205157.3383926-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: YVTN2CKEDIMHG74LIYR4MJN7NR2NUXCM X-Message-ID-Hash: YVTN2CKEDIMHG74LIYR4MJN7NR2NUXCM 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 <simon.glass@canonical.com>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/14] linux: ext4l: Initialize len in ext4_ext_find_hole 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/YVTN2CKEDIMHG74LIYR4MJN7NR2NUXCM/> 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: Linux adaptation patches for ext4 write support
|
|
Commit Message
Simon Glass
Dec. 30, 2025, 8:51 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Initialize 'len' to 0 to silence a Clang warning about the potential use of an uninitialised variable. The else branch calls BUG() which never returns, but Clang cannot determine this. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/extents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4l/extents.c b/fs/ext4l/extents.c index 7690f4075db..955f587426b 100644 --- a/fs/ext4l/extents.c +++ b/fs/ext4l/extents.c @@ -2252,7 +2252,7 @@ static ext4_lblk_t ext4_ext_find_hole(struct inode *inode, { int depth = ext_depth(inode); struct ext4_extent *ex; - ext4_lblk_t len; + ext4_lblk_t len = 0; ex = path[depth].p_ext; if (ex == NULL) {