From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEEFA317141; Mon, 13 Apr 2026 16:54:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776099240; cv=none; b=KObPFoRzFSLbIsNMrCWtP5ydSSrWlfijV8vkTZVjEFI8rLwy3OINkn5+9pR4uIb0i7pXfce31x08F+nhxT/jGRoQ3sIsDSiRe9NGS1LgiTxPORg+WPZ7f7qtl9CY+oXO2pVefYbhgGxxJrTGVpWRdPsaubWlaMojH2MbrtaUNow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776099240; c=relaxed/simple; bh=RGIohWyXK4dLFWFBE9J7aKQB1EMhApzi6F5hqR79syA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kCNomMp7bWT4Lj38+0OBwz5TEkbCoQiyax6GNiPSBA6KbqLwheT1NuPk6TOfR58itXl9A2iddIuEXuzENRn8JAuNT/9CLBR/kleEplQufm2fYfm3xa5KcfRNZ3y0SOtDANoIRsAsVWQYyIzxFb8mXO/8LVy1zEjMMxvGSSVCY8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g6w0z+Cr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="g6w0z+Cr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B14CC2BCB0; Mon, 13 Apr 2026 16:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776099240; bh=RGIohWyXK4dLFWFBE9J7aKQB1EMhApzi6F5hqR79syA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g6w0z+CrBDDjTXbKGSpy0hQte6gwEoVR3kpnZJipq2b2hl4ZjasxAuCJ0skyy3BIR WeXVyQ11xKMvP8jEubBLwffHSkvVEdAoDer4ruFCjJQm6EZ63XLCbeoVbHyk8NVX35 EoKvLIuWSxs2pBmUKMsFJUOE7TUq5hLTpC92TFaU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Miguel Ojeda , Marek Szyprowski , Sasha Levin Subject: [PATCH 5.10 264/491] dma-mapping: add missing `inline` for `dma_free_attrs` Date: Mon, 13 Apr 2026 17:58:29 +0200 Message-ID: <20260413155828.935472516@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260413155819.042779211@linuxfoundation.org> References: <20260413155819.042779211@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miguel Ojeda [ Upstream commit 2cdaff22ed26f1e619aa2b43f27bb84f2c6ef8f8 ] Under an UML build for an upcoming series [1], I got `-Wstatic-in-inline` for `dma_free_attrs`: BINDGEN rust/bindings/bindings_generated.rs - due to target missing In file included from rust/helpers/helpers.c:59: rust/helpers/dma.c:17:2: warning: static function 'dma_free_attrs' is used in an inline function with external linkage [-Wstatic-in-inline] 17 | dma_free_attrs(dev, size, cpu_addr, dma_handle, attrs); | ^ rust/helpers/dma.c:12:1: note: use 'static' to give inline function 'rust_helper_dma_free_attrs' internal linkage 12 | __rust_helper void rust_helper_dma_free_attrs(struct device *dev, size_t size, | ^ | static The issue is that `dma_free_attrs` was not marked `inline` when it was introduced alongside the rest of the stubs. Thus mark it. Fixes: ed6ccf10f24b ("dma-mapping: properly stub out the DMA API for !CONFIG_HAS_DMA") Closes: https://lore.kernel.org/rust-for-linux/20260322194616.89847-1-ojeda@kernel.org/ [1] Signed-off-by: Miguel Ojeda Signed-off-by: Marek Szyprowski Link: https://lore.kernel.org/r/20260325015548.70912-1-ojeda@kernel.org Signed-off-by: Sasha Levin --- include/linux/dma-mapping.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index fb48f8ba5dcc8..d79acecd50dfe 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -200,8 +200,8 @@ static inline void *dma_alloc_attrs(struct device *dev, size_t size, { return NULL; } -static void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, - dma_addr_t dma_handle, unsigned long attrs) +static inline void dma_free_attrs(struct device *dev, size_t size, + void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) { } static inline void *dmam_alloc_attrs(struct device *dev, size_t size, -- 2.51.0