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 DE9CC346E7F; Tue, 31 Mar 2026 16:50:05 +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=1774975805; cv=none; b=gItCHgQgVd+uZlSVd+tx0l7M0yKrykdyNGJ4aQUh6zZ4Rx+brRlwErAL3ZlYJLwfZMOOW1Sn/liZSRdo/4hVYmLaOEWusc6UTSMdfxgB9DNeMf5i/fHAAI4E0Nxdnell1qnTk6v0g1oav3ZukrGUJZQXBISJCWDHcal+PbqQJ6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975805; c=relaxed/simple; bh=SYqOShVyo3m7OrLbTfeHjMUVY82BLIKigfcekDAqhoM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nKF6YpuE86HwHVBziUtW8sjOXh2ol8uqrhGDAKc/s0SD/rx+Tsm3QnajhXTVij/91H6F8cUmGNfRNQAIYcZMR7QBSP5ain41mIT/n8q0M+yXG9LXR7U8opVB8q3nWDqI59rQox8eFPfJD/MdqVta3yddJhqLGANmYUaDuelXL8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JDJEjIie; 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="JDJEjIie" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74606C19423; Tue, 31 Mar 2026 16:50:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774975805; bh=SYqOShVyo3m7OrLbTfeHjMUVY82BLIKigfcekDAqhoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JDJEjIie0aSBT8KpYu5jIg/grqec2zrolDzo2bcPnLEhhA9phlU8fraVcqluV9E5A OaVI0m7cUkEtqiqu2m7bzuKCsvtwsglUU+l9QGSeZT8V6KFF8I0yhhtZHw3fvVeNWJ bWUh74AF85zUbwzk5u0RcBgRcRaOQ5xJwjCRpjIY= 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 6.12 093/244] dma-mapping: add missing `inline` for `dma_free_attrs` Date: Tue, 31 Mar 2026 18:20:43 +0200 Message-ID: <20260331161745.110957567@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161741.651718120@linuxfoundation.org> References: <20260331161741.651718120@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-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 22b9099927fad..ac7803e3fa613 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -195,8 +195,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