wifi: guard 6.1.x code

Needed for drivers still implemented using Linux 5.x.x.

Issue #4813
This commit is contained in:
Josef Söntgen 2023-04-03 14:59:43 +02:00 committed by Christian Helmuth
parent 7b146e0563
commit e0d6e2e5a7

View File

@ -12,7 +12,7 @@
*/ */
#include <lx_emul.h> #include <lx_emul.h>
#include <linux/slab.h> #include <linux/version.h>
#include <lx_emul/random.h> #include <lx_emul/random.h>
#include <lx_emul/alloc.h> #include <lx_emul/alloc.h>
@ -437,6 +437,7 @@ void __put_page(struct page * page)
} }
#if LINUX_VERSION_CODE > KERNEL_VERSION(6,1,0)
#include <linux/mm.h> #include <linux/mm.h>
void __folio_put(struct folio * folio) void __folio_put(struct folio * folio)
@ -444,6 +445,7 @@ void __folio_put(struct folio * folio)
__free_pages(&folio->page, 0); __free_pages(&folio->page, 0);
kfree(folio); kfree(folio);
} }
#endif
#include <linux/prandom.h> #include <linux/prandom.h>