From 499004489f62a6e5669044001f7ca267d2608b55 Mon Sep 17 00:00:00 2001 From: Jak Tiano <310173+jakintosh@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:49:20 -0500 Subject: [PATCH] Update fthd_ddr.c for Linux Kernel 6.13+ (#304) * Update fthd_ddr.c Shipped in linux kernel 6.13, no longer includes . 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. https://github.com/torvalds/linux/commit/5b3fdc9f2ff10d3cee106ddaa0ee6636c7de381e * Update fthd_ddr.c to include linux/random.h in kernels <= 6.12 --- fthd_ddr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fthd_ddr.c b/fthd_ddr.c index 80fc0ce..df21537 100644 --- a/fthd_ddr.c +++ b/fthd_ddr.c @@ -17,7 +17,13 @@ * */ +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0) +#include +#else #include +#endif + #include "fthd_drv.h" #include "fthd_hw.h" #include "fthd_ddr.h"