aligned_{u64,be64,le64} defined in #ifdef __KERNEL__

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Gruenbacher
Date: Sunday, August 29, 2010 - 6:26 pm

On Saturday 28 August 2010 01:51:53 Eric Paris wrote:

This looks like an error in include/linux/types.h.  The aligned types should 
probably not be defined inside #ifdef __KERNEL__.

The following other headers expose aligned 64-bit types to user space as well; 
copying the netfilter list:

	include/linux/if_ppp.h
	include/linux/netfilter/nfnetlink_queue.h
	include/linux/netfilter/nfnetlink_log.h
	include/linux/netfilter/xt_quota.h
	include/linux/netfilter/xt_connbytes.h

Otherwise, the definition of those types is really simple, and this would do 
in include/linux/fanotify.h until include/linux/types.h is fixed:

	#ifndef aligned_u64
	# define aligned_u64 __u64 __attribute__((aligned(8)))
	#endif

Thanks,
Andreas
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
aligned_{u64,be64,le64} defined in #ifdef __KERNEL__, Andreas Gruenbacher, (Sun Aug 29, 6:26 pm)
Re: aligned_{u64,be64,le64} defined in #ifdef __KERNEL__, Andreas Gruenbacher, (Mon Aug 30, 3:58 am)
Re: aligned_{u64,be64,le64} defined in #ifdef __KERNEL__, Jan Engelhardt, (Mon Aug 30, 6:02 am)
Re: aligned_{u64,be64,le64} defined in #ifdef __KERNEL__, Jan Engelhardt, (Tue Oct 5, 11:05 pm)