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:
Jak Tiano
2025-03-03 14:49:20 -05:00
committed by GitHub
parent 45b9a2cbeb
commit 499004489f

View File

@@ -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"