missing __KERNEL__ ifdef in include/linux/device.h
Subsystems (2)
PATCH 1/1 missing __KERNEL__ ifdef in include/linux/device.h
Hello
device.h should be protected with __KERNEL__ because it uses __KERNEL__ protected structures. Userspace applications including if_arp.h such as iproute2 will fail because it finally includes device.h as well.
- thomas
Index: include/linux/device.h
===================================================================
RCS file: /cvs/tgr/linux-25/include/linux/device.h,v retrieving revision 1.1.1.2
linux/device.h +1 -1
@@ -8,7 +8,7 @@* See Documentation/driver-model/ for more information. */ -#ifndef _DEVICE_H_ +#if defined __KERNEL__ && !defined _DEVICE_H_#define _DEVICE_H_#include <linux/config.h>