mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Include linux/uaccess.h compat changes.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@154 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
parent
86de8532a9
commit
322640b7b5
@ -570,9 +570,17 @@ AC_DEFUN([SPL_AC_TIMESPEC_SUB], [
|
||||
])
|
||||
|
||||
dnl #
|
||||
dnl # 2.6,26 API change
|
||||
dnl # 2.6.26 API change
|
||||
dnl # Definition of struct fdtable relocated to linux/fdtable.h
|
||||
dnl #
|
||||
AC_DEFUN([SPL_AC_FDTABLE_HEADER], [
|
||||
SPL_CHECK_HEADER([linux/fdtable.h], [FDTABLE], [], [])
|
||||
])
|
||||
|
||||
dnl #
|
||||
dnl # 2.6.18 API change
|
||||
dnl # Added linux/uaccess.h
|
||||
dnl #
|
||||
AC_DEFUN([SPL_AC_UACCESS_HEADER], [
|
||||
SPL_CHECK_HEADER([linux/uaccess.h], [UACCESS], [], [])
|
||||
])
|
||||
|
@ -58,6 +58,7 @@ SPL_AC_SET_NORMALIZED_TIMESPEC_EXPORT
|
||||
SPL_AC_SET_NORMALIZED_TIMESPEC_INLINE
|
||||
SPL_AC_TIMESPEC_SUB
|
||||
SPL_AC_FDTABLE_HEADER
|
||||
SPL_AC_UACCESS_HEADER
|
||||
|
||||
TOPDIR=`/bin/pwd`
|
||||
|
||||
|
11
include/linux/uaccess_compat.h
Normal file
11
include/linux/uaccess_compat.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef _SPL_UACCESS_COMPAT_H
|
||||
#define _SPL_UACCESS_COMPAT_H
|
||||
|
||||
#ifdef HAVE_UACCESS_HEADER
|
||||
#include <linux/uaccess.h>
|
||||
#else
|
||||
#include <asm/uaccess.h>
|
||||
#endif
|
||||
|
||||
#endif /* _SPL_UACCESS_COMPAT_H */
|
||||
|
@ -29,7 +29,6 @@
|
||||
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/kmod.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <linux/sysctl.h>
|
||||
#include <linux/seq_file.h>
|
||||
|
@ -9,6 +9,12 @@ extern "C" {
|
||||
#include <sys/sysmacros.h>
|
||||
#include "spl_config.h"
|
||||
|
||||
#include <linux/uaccess_compat.h>
|
||||
#include <linux/file_compat.h>
|
||||
#include <linux/list_compat.h>
|
||||
#include <linux/time_compat.h>
|
||||
#include <linux/bitops_compat.h>
|
||||
|
||||
#ifndef HAVE_UINTPTR_T
|
||||
typedef unsigned long uintptr_t;
|
||||
#endif
|
||||
|
@ -34,7 +34,6 @@ extern "C" {
|
||||
#include <linux/module.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include <linux/fcntl.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/buffer_head.h>
|
||||
#include <linux/dcache.h>
|
||||
#include <linux/namei.h>
|
||||
|
@ -63,11 +63,6 @@
|
||||
#include <sys/atomic.h>
|
||||
#include <linux/cdev.h>
|
||||
|
||||
#include <linux/file_compat.h>
|
||||
#include <linux/list_compat.h>
|
||||
#include <linux/time_compat.h>
|
||||
#include <linux/bitops_compat.h>
|
||||
|
||||
#include "spl-device.h"
|
||||
#include "splat-ctl.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user