]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - zfs/config/kernel-kobj-name-len.m4
UBUNTU: SAUCE: s390/topology: don't inline cpu_to_node
[mirror_ubuntu-bionic-kernel.git] / zfs / config / kernel-kobj-name-len.m4
1 dnl #
2 dnl # 2.6.27 API change,
3 dnl # kobject KOBJ_NAME_LEN static limit removed. All users of this
4 dnl # constant were removed prior to 2.6.27, but to be on the safe
5 dnl # side this check ensures the constant is undefined.
6 dnl #
7 AC_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 ])