[svn-commits] sruffell: linux/trunk r9989 - /linux/trunk/include/dahdi/kernel.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 28 10:55:43 CDT 2011


Author: sruffell
Date: Tue Jun 28 10:55:38 2011
New Revision: 9989

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9989
Log:
kernel.h: Define __packed if not already defined.

Linux kernel v2.6.22 introduced the __packed macro to allow the gcc specific
__attribute__((packed)) extension to be overridden if required and
checkpatch.pl will complain if you don't use it.

For some strange reason gcc doesn't complain when you use non-existant
decorators.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Signed-off-by: Russ Meyerriecks <rmeyerriecks at digium.com>

Modified:
    linux/trunk/include/dahdi/kernel.h

Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=9989&r1=9988&r2=9989
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Tue Jun 28 10:55:38 2011
@@ -1326,6 +1326,11 @@
 	(signal_pending((p)) && sigismember(&(p)->pending.signal, SIGKILL))
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
+
+#ifndef __packed                                                                                         
+#define __packed  __attribute__((packed))                                                                
+#endif 
+
 #include <linux/ctype.h>
 /* A define of 'clamp_val' happened to be added in the patch
  * linux-2.6-sata-prep-work-for-rhel5-3.patch kernel-2.6.spec that also




More information about the svn-commits mailing list