From: Marc Dionne Date: Tue, 14 Aug 2012 23:37:00 +0000 (-0400) Subject: Linux: include kthread.h before afs includes X-Git-Tag: upstream/1.8.0_pre1^2~2077 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8b6926e43f31a30a95e5883fd4b9e72924b3371d;p=packages%2Fo%2Fopenafs.git Linux: include kthread.h before afs includes We need to include kthread.h before the afs standard includes to avoid clashing with the printf -> printk mapping. Change-Id: I965916515bd14a5a08b0f280cf8e7f9935d8aa50 Reviewed-on: http://gerrit.openafs.org/7988 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index aebc56728..31ea253a5 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -10,6 +10,9 @@ #include #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"