mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
Update fthd_ddr.c for Linux Kernel 6.13+ (#304)
* Update fthd_ddr.c
Shipped in linux kernel 6.13, <linux/random.h> no longer includes <linux/prandom.h>. This file depended on that nested include, and this commit changes the include to use that header directly.
Without this, module compilation fails trying to use prandom_seed_state() which is in longer included.
5b3fdc9f2f
* Update fthd_ddr.c to include linux/random.h in kernels <= 6.12
This commit is contained in:
@@ -17,7 +17,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/version.h>
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)
|
||||||
|
#include <linux/prandom.h>
|
||||||
|
#else
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "fthd_drv.h"
|
#include "fthd_drv.h"
|
||||||
#include "fthd_hw.h"
|
#include "fthd_hw.h"
|
||||||
#include "fthd_ddr.h"
|
#include "fthd_ddr.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user