From 462a088c474832b19ff2730de1e6bea66d399c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 15 Oct 2022 23:01:29 +0200 Subject: Add Turris kernel (includes patches from OpenWrt) --- ...bus-Export-symbols-for-public-API-window-.patch | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/patches-linux-5.15/0005-bus-mvebu-mbus-Export-symbols-for-public-API-window-.patch (limited to 'pkgs/patches-linux-5.15/0005-bus-mvebu-mbus-Export-symbols-for-public-API-window-.patch') diff --git a/pkgs/patches-linux-5.15/0005-bus-mvebu-mbus-Export-symbols-for-public-API-window-.patch b/pkgs/patches-linux-5.15/0005-bus-mvebu-mbus-Export-symbols-for-public-API-window-.patch new file mode 100644 index 0000000..87a7e9b --- /dev/null +++ b/pkgs/patches-linux-5.15/0005-bus-mvebu-mbus-Export-symbols-for-public-API-window-.patch @@ -0,0 +1,63 @@ +From c472757ed4c9b9f3383301842b06f83b1444d743 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pali=20Roh=C3=A1r?= +Date: Sun, 31 Oct 2021 22:50:14 +0100 +Subject: [PATCH 05/90] bus: mvebu-mbus: Export symbols for public API window + functions +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This would allow to compile pci-mvebu.c driver as module. + +Signed-off-by: Pali Rohár +--- + drivers/bus/mvebu-mbus.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c +index ea0424922de7..db612045616f 100644 +--- a/drivers/bus/mvebu-mbus.c ++++ b/drivers/bus/mvebu-mbus.c +@@ -914,6 +914,7 @@ int mvebu_mbus_add_window_remap_by_id(unsigned int target, + + return mvebu_mbus_alloc_window(s, base, size, remap, target, attribute); + } ++EXPORT_SYMBOL_GPL(mvebu_mbus_add_window_remap_by_id); + + int mvebu_mbus_add_window_by_id(unsigned int target, unsigned int attribute, + phys_addr_t base, size_t size) +@@ -921,6 +922,7 @@ int mvebu_mbus_add_window_by_id(unsigned int target, unsigned int attribute, + return mvebu_mbus_add_window_remap_by_id(target, attribute, base, + size, MVEBU_MBUS_NO_REMAP); + } ++EXPORT_SYMBOL_GPL(mvebu_mbus_add_window_by_id); + + int mvebu_mbus_del_window(phys_addr_t base, size_t size) + { +@@ -933,6 +935,7 @@ int mvebu_mbus_del_window(phys_addr_t base, size_t size) + mvebu_mbus_disable_window(&mbus_state, win); + return 0; + } ++EXPORT_SYMBOL_GPL(mvebu_mbus_del_window); + + void mvebu_mbus_get_pcie_mem_aperture(struct resource *res) + { +@@ -940,6 +943,7 @@ void mvebu_mbus_get_pcie_mem_aperture(struct resource *res) + return; + *res = mbus_state.pcie_mem_aperture; + } ++EXPORT_SYMBOL_GPL(mvebu_mbus_get_pcie_mem_aperture); + + void mvebu_mbus_get_pcie_io_aperture(struct resource *res) + { +@@ -947,6 +951,7 @@ void mvebu_mbus_get_pcie_io_aperture(struct resource *res) + return; + *res = mbus_state.pcie_io_aperture; + } ++EXPORT_SYMBOL_GPL(mvebu_mbus_get_pcie_io_aperture); + + int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr) + { +-- +2.34.1 + -- cgit v1.2.3