From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796327088; b=Kc9IMQ5nuQXU7JE5QbmcgNRRmoFVaCOLT7Vvtu4s22lAVKlYu6wTOFgsa0xOqVPXhReE WedqWUz/axbic0wRzRHLYPweMVgCGvKnnzXVWRaTPDgNPko79V3cIUtnK+qwMVml9Srsf LsuiFU11MLVzSocRPwrr6J3lYybxKqyHQ1+6d9ncL3jm4FUymzOsHMbEpaqEbX75u4KhY PrWKdUshj3J92sH5caGkLgif1PkzrZEXNovJKweVaHI9uSj18cxhXkjtZCbQUg7i6QjKT RdD4aYXi3WYcLO60NBPlzNoeDyfBEUwsHCicIGhS89klMqkBVXDh8OQvuJHR66vXlIg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796327088; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=0so9wy5bcMsYsZqPwCK+VGHOpTfQ10aYprZnoBQRi1Y=; b=FaH/QSaxQ7UITIGs/5zuYnM3yqmm2CZaQ+KlXtU1gySPlx3l1wKjH/LlhJnnUe5V40YY QqkKqAdwPOhdi1qV6L0c1gKZ5l7x7aIQsG3AZRpopgRxBP94I07ENamdQHc1nK1YViWul rwL5GhbwRWAfZxui0HrX34qRdMwFJhd2KkLZtfBy/Uw3Gx+VyuRrql5oqB7CFudxbOrW8 CSpbM5EyDBgUjW8sT/tesSVTiKGvWwromgX1bLylPQk/BpoUMA/NJQ3pwOwRdR56LBArq sS+Iljj+wwgzdb8rNkgcyZ8XZE8dBV8Ebt2nJTLU8yvUE559+iT3psKLXru6tqw5FRQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VdbT8DO0; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFEFC606A32D for ; Thu, 3 Dec 2026 19:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VdbT8DO0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7BC61F000C2; Thu, 3 Dec 2026 19:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796327087; bh=0so9wy5bcMsYsZqPwCK+VGHOpTfQ10aYprZnoBQRi1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VdbT8DO0j+im5xu0+VTNDt+4FO06LROhtfmOz5NOoK+zksBmBDTwbaRWtD0Ml7Yub cf8Ob5m6UklD4oH0vSnmt42eLVfJ/irjcu44YDpVSNp9Ji4xQMYT1F9eiZrytcuZFH P5ItcjLJMKdWtkWJeI0Agsupr+cuBUA5QmT51ds0IS6qiqUzT0MDhHmTCF+4vaeskO YwZRIy8CJZ6+IN/g1bpwyCVpE/Q/JRxzsQQ0DXoB6v9HLLXyRJG3aSUJ4UjeJ1QJa+ +HXkqmyZ3+t2tQDnZMk5Rr5jMInub41G7FYvuuiaMqJ2vSMiE1zj7KUfasuwHlDB2H sJMwkdS75z15Q== From: Sasha Levin To: stable@vger.kernel.org Cc: Christoph Hellwig , Chunhui He , Robin Murphy , Sasha Levin Subject: [PATCH 6.1.y 1/3] dma-pool: remove a __maybe_unused label in atomic_pool_expand Date: Thu, 3 Dec 2026 14:44:43 -0500 Message-ID: <20261203194433.674726-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026120206-preacher-willow-783b@gregkh> References: <2026120206-preacher-willow-783b@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Christoph Hellwig [ Upstream commit 765aa6b3a462ed69ddcb1c41a6f7f93b8abb7d43 ] Move the #endif a line so that free_page label is only seen by the compile pass when actually used. Signed-off-by: Christoph Hellwig Reviewed-by: Chunhui He Reviewed-by: Robin Murphy Stable-dep-of: ca010d38da7b ("dma-pool: release CMA pages on atomic_pool_expand() error path") Signed-off-by: Sasha Levin --- kernel/dma/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/dma/pool.c b/kernel/dma/pool.c index 8fc6e3b8f8372..3037a260ad36d 100644 --- a/kernel/dma/pool.c +++ b/kernel/dma/pool.c @@ -135,9 +135,9 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, remove_mapping: #ifdef CONFIG_DMA_DIRECT_REMAP dma_common_free_remap(addr, pool_size); -#endif -free_page: __maybe_unused +free_page: __free_pages(page, order); +#endif out: return ret; } -- 2.53.0