Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Fix up implicit sched.h users

They are getting it through device.h --> module.h path, but we want
to clean that up. This is a sample of what will happen if we don't:

pseries/iommu.c: In function 'tce_build_pSeriesLP':
pseries/iommu.c:136: error: implicit declaration of function 'show_stack'

pseries/eeh.c: In function 'eeh_token_to_phys':
pseries/eeh.c:359: error: 'init_mm' undeclared (first use in this function)

pseries/eeh_event.c: In function 'eeh_event_handler':
pseries/eeh_event.c:63: error: implicit declaration of function 'daemonize'
pseries/eeh_event.c:64: error: implicit declaration of function 'set_current_state'
pseries/eeh_event.c:64: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
pseries/eeh_event.c:64: error: (Each undeclared identifier is reported only once
pseries/eeh_event.c:64: error: for each function it appears in.)
pseries/eeh_event.c: In function 'eeh_thread_launcher':
pseries/eeh_event.c:109: error: 'CLONE_KERNEL' undeclared (first use in this function)

hotplug-cpu.c: In function 'pseries_mach_cpu_die':
hotplug-cpu.c:115: error: implicit declaration of function 'idle_task_exit'

kernel/swsusp_64.c: In function 'do_after_copyback':
kernel/swsusp_64.c:17: error: implicit declaration of function 'touch_softlockup_watchdog'

cell/spufs/context.c: In function 'alloc_spu_context':
cell/spufs/context.c:60: error: implicit declaration of function 'get_task_mm'
cell/spufs/context.c:60: warning: assignment makes pointer from integer without a cast
cell/spufs/context.c: In function 'spu_forget':
cell/spufs/context.c:127: error: implicit declaration of function 'mmput'

pasemi/dma_lib.c: In function 'pasemi_dma_stop_chan':
pasemi/dma_lib.c:332: error: implicit declaration of function 'cond_resched'

sysdev/fsl_lbc.c: In function 'fsl_lbc_ctrl_irq':
sysdev/fsl_lbc.c:247: error: 'TASK_NORMAL' undeclared (first use in this function)

Add in sched.h so these get the definitions they are looking for.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

+8
+1
arch/powerpc/kernel/swsusp_64.c
··· 9 9 #include <asm/system.h> 10 10 #include <asm/iommu.h> 11 11 #include <linux/irq.h> 12 + #include <linux/sched.h> 12 13 #include <linux/interrupt.h> 13 14 14 15 void do_after_copyback(void)
+1
arch/powerpc/platforms/cell/spufs/context.c
··· 25 25 #include <linux/module.h> 26 26 #include <linux/slab.h> 27 27 #include <linux/atomic.h> 28 + #include <linux/sched.h> 28 29 #include <asm/spu.h> 29 30 #include <asm/spu_csa.h> 30 31 #include "spufs.h"
+1
arch/powerpc/platforms/pasemi/dma_lib.c
··· 23 23 #include <linux/pci.h> 24 24 #include <linux/slab.h> 25 25 #include <linux/of.h> 26 + #include <linux/sched.h> 26 27 27 28 #include <asm/pasemi_dma.h> 28 29
+1
arch/powerpc/platforms/pseries/eeh.c
··· 22 22 */ 23 23 24 24 #include <linux/delay.h> 25 + #include <linux/sched.h> /* for init_mm */ 25 26 #include <linux/init.h> 26 27 #include <linux/list.h> 27 28 #include <linux/pci.h>
+1
arch/powerpc/platforms/pseries/eeh_event.c
··· 21 21 #include <linux/delay.h> 22 22 #include <linux/list.h> 23 23 #include <linux/mutex.h> 24 + #include <linux/sched.h> 24 25 #include <linux/pci.h> 25 26 #include <linux/slab.h> 26 27 #include <linux/workqueue.h>
+1
arch/powerpc/platforms/pseries/hotplug-cpu.c
··· 21 21 #include <linux/kernel.h> 22 22 #include <linux/interrupt.h> 23 23 #include <linux/delay.h> 24 + #include <linux/sched.h> /* for idle_task_exit */ 24 25 #include <linux/cpu.h> 25 26 #include <asm/system.h> 26 27 #include <asm/prom.h>
+1
arch/powerpc/platforms/pseries/iommu.c
··· 29 29 #include <linux/slab.h> 30 30 #include <linux/mm.h> 31 31 #include <linux/spinlock.h> 32 + #include <linux/sched.h> /* for show_stack */ 32 33 #include <linux/string.h> 33 34 #include <linux/pci.h> 34 35 #include <linux/dma-mapping.h>
+1
arch/powerpc/sysdev/fsl_lbc.c
··· 23 23 #include <linux/io.h> 24 24 #include <linux/of.h> 25 25 #include <linux/slab.h> 26 + #include <linux/sched.h> 26 27 #include <linux/platform_device.h> 27 28 #include <linux/interrupt.h> 28 29 #include <linux/mod_devicetable.h>