aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2019-04-09 06:59:24 +0900
committerBrian Behlendorf <[email protected]>2019-04-08 14:59:24 -0700
commit9a65234c8bbfe4e394d32172439ae0266ac59c8d (patch)
tree2a3800d2d34c2af613dc0274b1205d40dc9539ae /module
parentc375c69ecad41f68610ad1186355822e28744476 (diff)
Unbreak build on Linux kernel < 3.10
d12614521a("Fixes for procfs files backed by linked lists") uses PDE_DATA(), but since PDE_DATA() (public interface which replaced old public interface PDE()) first appeared in upstream kernel 3.10, it lacks visible local definition for kernel < 3.10. Move the local PDE_DATA() definition to a ZoL header, to unbreak build on kernel < 3.10. -- module/spl/spl-procfs-list.c: In function 'procfs_list_open': module/spl/spl-procfs-list.c:166: error: implicit declaration of function 'PDE_DATA' module/spl/spl-procfs-list.c:166: warning: assignment makes pointer from integer without a cast Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Gallagher <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes #8599
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-kstat.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/module/spl/spl-kstat.c b/module/spl/spl-kstat.c
index feff31e6c..1f67bf157 100644
--- a/module/spl/spl-kstat.c
+++ b/module/spl/spl-kstat.c
@@ -30,10 +30,6 @@
#include <sys/cmn_err.h>
#include <sys/sysmacros.h>
-#ifndef HAVE_PDE_DATA
-#define PDE_DATA(x) (PDE(x)->data)
-#endif
-
static kmutex_t kstat_module_lock;
static struct list_head kstat_module_list;
static kid_t kstat_id;