]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux: include kthread.h before afs includes
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 14 Aug 2012 23:37:00 +0000 (19:37 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 6 Dec 2012 17:41:43 +0000 (09:41 -0800)
We need to include kthread.h before the afs standard includes
to avoid clashing with the printf -> printk mapping.

Reviewed-on: http://gerrit.openafs.org/7988
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 8b6926e43f31a30a95e5883fd4b9e72924b3371d)

Change-Id: I0dbb696e3af5172c9a72d183f2acd10107bedcf5
Reviewed-on: http://gerrit.openafs.org/8605
Reviewed-by: Paul Smeddle <paul.smeddle@gmail.com>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_call.c

index 1b615174d2823f3960fb78d53f479a75cc9c9052..4fa9690839be57fcac55f19188aa96e6fd217f78 100644 (file)
@@ -10,6 +10,9 @@
 #include <afsconfig.h>
 #include "afs/param.h"
 
+#if defined(HAVE_LINUX_KTHREAD_RUN) && !defined(UKERNEL)
+#  include "h/kthread.h"
+#endif
 
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 #include "afsincludes.h"       /* Afs-based standard headers */
@@ -25,9 +28,6 @@
 #   include "netinet/in_var.h"
 #  endif
 # endif
-# ifdef HAVE_LINUX_KTHREAD_RUN
-#  include "h/kthread.h"
-# endif
 #endif /* !defined(UKERNEL) */
 #ifdef AFS_SUN510_ENV
 #include "h/ksynch.h"