backport-4.7.c fails due to missing rhashtable.h for target < 3.17

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
playing around with backports,
unfortunately the backport code for 4.7 fails to compile if the target kernel is < 3.18.

make allyesconfig
make 
...
  CC [M]  /home/peter/linux-3-backport/compat/backport-4.7.o
In file included from /home/peter/linux-3-backport/backport-include/linux/rhashtable.h:3:0,
                 from /home/peter/linux-3-backport/compat/backport-4.7.c:14:
/home/peter/linux-3-backport/include/linux/rhashtable.h:3:35: fatal error: linux/rhashtable.h: No such file or directory.
compilation terminated.


The linux/rhashtable was introduced in 3.17,

The backport-4.7 has however
#include <linux/export.h>
#include <linux/list.h>
#include <linux/rcupdate.h>
#include <linux/rhashtable.h>
#include <linux/slab.h>
#include <linux/spinlock.h>

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)



Does the rhashtable.h need to be include-guarded somehow ? (e.g. moving the if LINUX_VERSION_CODE up and maybe even changing it to 3.17?).

Or do we have to add rhashtable.h to the copy-list?

Thanks,
Peter
--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux