mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
wifi: guard 6.1.x code
Needed for drivers still implemented using Linux 5.x.x. Issue #4813
This commit is contained in:
parent
7b146e0563
commit
e0d6e2e5a7
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user