]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - zfs/config/kernel-kobj-name-len.m4
UBUNTU: Ubuntu-raspi2-4.10.0-1010.13
[mirror_ubuntu-zesty-kernel.git] / zfs / config / kernel-kobj-name-len.m4
CommitLineData
0bd31011
TG
1dnl #
2dnl # 2.6.27 API change,
3dnl # kobject KOBJ_NAME_LEN static limit removed. All users of this
4dnl # constant were removed prior to 2.6.27, but to be on the safe
5dnl # side this check ensures the constant is undefined.
6dnl #
7AC_DEFUN([ZFS_AC_KERNEL_KOBJ_NAME_LEN], [
8 AC_MSG_CHECKING([whether kernel defines KOBJ_NAME_LEN])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/kobject.h>
11 ],[
12 int val __attribute__ ((unused));
13 val = KOBJ_NAME_LEN;
14 ],[
15 AC_MSG_RESULT([yes])
16 AC_DEFINE(HAVE_KOBJ_NAME_LEN, 1,
17 [kernel defines KOBJ_NAME_LEN])
18 ],[
19 AC_MSG_RESULT([no])
20 ])
21])