I am trying to Build and install a Raspberry Pi RT Preempt Linux Kernel.These are the steps that I had followed:I installed the pre-compiled kernel kernel-4.4.9-rt17.tgzI downloaded Raspberry Pi kernel sources and applied the Real Time patch-4.4.9-rt17.patch.gz.(I followed this link for installation )I configured my kernel for Raspberry Pi3,Model B using :export KERNEL=kernel7make bcm2709_defconfigI configured the kernel to support Fully Preemptible Kernel (RT) usingmake -j$(nproc) menuconfigI build the kernel usingmake -j$(nproc) zImage but I  received the error:In file included from arch/arm/kernel/asm-offsets.c:14:0:./include/linux/sched.h:2040:32: error: expected identifier or ( before & tokendefine tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) ^     ./include/linux/sched.h:3679:37: note: in expansion of macro tsk_cpus_allowedstatic inline const struct cpumask *tsk_cpus_allowed(struct task_struct *p) ^ In file included from arch/arm/kernel/asm-offsets.c:14:0:./include/linux/sched.h:3687:19: error: redefinition of tsk_nr_cpus_allowed     static inline int tsk_nr_cpus_allowed(struct task_struct *p) ^ In file included from arch/arm/kernel/asm-offsets.c:14:0:  ./include/linux/sched.h:2042:19: note: previous definition of tsk_nr_cpus_allowed was hereDo you have any idea to solve this? I don't know what I am doing wrong. I would really appreciate any help.
Raspberry Pi RT Preempt Linux Kernel Build Error
linux kernel;compiling;raspberry pi;patch;real time