diff mbox series

[4/4] patches: Make dev_set_threaded() call depend on kernel 5.13

Message ID 20220406220321.3864576-4-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series [1/4] patches: Refresh on top of kernel 5.15.32 | expand

Commit Message

Hauke Mehrtens April 6, 2022, 10:03 p.m. UTC
dev_set_threaded() was added into kernel 5.12, but it is only exported
since kernel 5.13 and commit 8f64860f8b56 ("net: export dev_set_threaded
symbol")

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 patches/0101-net_device-threaded/mt76.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/patches/0101-net_device-threaded/mt76.patch b/patches/0101-net_device-threaded/mt76.patch
index 81d5180d..615d78f0 100644
--- a/patches/0101-net_device-threaded/mt76.patch
+++ b/patches/0101-net_device-threaded/mt76.patch
@@ -4,7 +4,7 @@ 
  DEFINE_DEBUGFS_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set,
  			 "0x%08llx\n");
  
-+#if LINUX_VERSION_IS_GEQ(5,12,0)
++#if LINUX_VERSION_IS_GEQ(5,13,0)
  static int
  mt76_napi_threaded_set(void *data, u64 val)
  {
@@ -20,7 +20,7 @@ 
  	debugfs_create_u8("led_pin", 0600, dir, &dev->led_pin);
  	debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg);
  	debugfs_create_file_unsafe("regval", 0600, dir, dev, fops);
-+#if LINUX_VERSION_IS_GEQ(5,12,0)
++#if LINUX_VERSION_IS_GEQ(5,13,0)
  	debugfs_create_file_unsafe("napi_threaded", 0600, dir, dev,
  				   &fops_napi_threaded);
 +#endif
@@ -33,7 +33,7 @@ 
  	init_dummy_netdev(&dev->tx_napi_dev);
  	snprintf(dev->napi_dev.name, sizeof(dev->napi_dev.name), "%s",
  		 wiphy_name(dev->hw->wiphy));
-+#if LINUX_VERSION_IS_GEQ(5,12,0)
++#if LINUX_VERSION_IS_GEQ(5,13,0)
  	dev->napi_dev.threaded = 1;
 +#endif