Patchwork taskstats: Use better ifdef for alignment

login
register
mail settings
Submitter Jeff Mahoney
Date Dec. 30, 2010, 12:12 a.m.
Message ID <4D1BCE58.4000902@suse.com>
Download mbox | patch
Permalink /patch/438641/
State New, archived
Headers show

Comments

Patch

--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -349,7 +349,7 @@  static int parse(struct nlattr *na, stru
 	return ret;
 }
 
-#ifdef CONFIG_IA64
+#if defined(CONFIG_64BIT) && !defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)
 #define TASKSTATS_NEEDS_PADDING 1
 #endif