From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 981153D5254 for ; Tue, 26 May 2026 10:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779790901; cv=none; b=aGR12AFxs+Qa3lPb8Cy1mIUi3wQkzfGUrulO23C/20Ffp2sDIhu6gcjaFRhFcwVdhzdrmUzM/FHZ3n86bxT23UMGuQbfigvfJPoV9Sn/sdNVYSBEgyF3FnrBmgqi8r4yp08iTP17lL1R9Q1d1WFoU9291mGGWgLydMNLc08zvhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779790901; c=relaxed/simple; bh=rKaPrgQOuaYN5ket92XAzmRvF5FCrBAwmvoikTlRXqM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cDueMH+DVHyt4KeLRIsr3MjXgIbVp65xmKOxiSrlSi2Nt4kWVGRL5lGXDVD0RfvYeR4J6ggWzbyh2aaYEAkC0eCB0FJGmAcTwxRoE/6Y4Czgiey7yAnZYSo/QGiz/exX0NZRQyT8pppOuRR/sMeYJaMU/qWbqBLEymQUsBJZGr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iT+HtmsE; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iT+HtmsE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB3C71F000E9; Tue, 26 May 2026 10:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779790900; bh=rsGgpnBZc429OlLc+sfTkX+ix4uTLQuTZY4VW1h618s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iT+HtmsEGT9G0HHbIzt3B4MB70dCX6C0ptZcZWFsCZ23nquy8QEKR1HZyW8+8ymzD 0S7/iinPB+2fF1BQ+GZ6yBcyee4tGcrKm61/cE8zgXUOqTHoxzxTrH2NDTWGfp1pJZ GiY/JkhF/ihb0sgTzs0S/rnv3Ki66n8jtU6XvF57XkDWrvymUMplh1M/xMr/TrDoEy QRY0HV1GLryksl3nnLfVp0znku3m4KlukFFiLENipTsEM49zoHcWKCTbV4WoUjfoKK HWylIhLQ1N8Q2e6gDNOC3Z6/zciu1yq85Q8PokixL1vGBWjwiKYmb9+nrdNQqFCn7W +OmaLw4uLopbA== From: Arnd Bergmann To: Madhavan Srinivasan , Michael Ellerman , "T.J. Mercier" , Maxime Ripard , Sumit Semwal , Andrew Davis Cc: Arnd Bergmann , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] powerpc: export memory encryption helper functions Date: Tue, 26 May 2026 12:20:38 +0200 Message-Id: <20260526102113.2594501-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260526102113.2594501-1-arnd@kernel.org> References: <20260526102113.2594501-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The set_memory_encrypted/set_memory_decrypted functions are exported on x86 and arm64 but not on powerpc, which leads to a new build failure because they are now used in a loadable module: ERROR: modpost: "set_memory_encrypted" [drivers/dma-buf/heaps/system_heap.ko] undefined! ERROR: modpost: "set_memory_decrypted" [drivers/dma-buf/heaps/system_heap.ko] undefined! Export these the same way we do on the other architectures. Fixes: fd55edff8a0a ("dma-buf: heaps: system: Turn the heap into a module") Signed-off-by: Arnd Bergmann --- arch/powerpc/platforms/pseries/svm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/platforms/pseries/svm.c b/arch/powerpc/platforms/pseries/svm.c index 384c9dc1899a..ab8f8c722741 100644 --- a/arch/powerpc/platforms/pseries/svm.c +++ b/arch/powerpc/platforms/pseries/svm.c @@ -6,6 +6,7 @@ * Author: Anshuman Khandual */ +#include #include #include #include @@ -50,6 +51,7 @@ int set_memory_encrypted(unsigned long addr, int numpages) return 0; } +EXPORT_SYMBOL_GPL(set_memory_encrypted); int set_memory_decrypted(unsigned long addr, int numpages) { @@ -63,6 +65,7 @@ int set_memory_decrypted(unsigned long addr, int numpages) return 0; } +EXPORT_SYMBOL_GPL(set_memory_decrypted); /* There's one dispatch log per CPU. */ #define NR_DTL_PAGE (DISPATCH_LOG_BYTES * CONFIG_NR_CPUS / PAGE_SIZE) -- 2.39.5