Skip to content

Commit

Permalink
score: add missing #includes
Browse files Browse the repository at this point in the history
Files that define a global function should #include the
header with its declaration to make sure that the prototypes
do not diverge.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed Jun 27, 2009
1 parent e831a9c commit 9fb24cc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/score/include/asm/ucontext.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/ucontext.h>
1 change: 1 addition & 0 deletions arch/score/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <linux/moduleloader.h>
#include <linux/module.h>
#include <linux/vmalloc.h>

Expand Down
3 changes: 3 additions & 0 deletions arch/score/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
*/

#include <linux/module.h>
#include <linux/reboot.h>
#include <linux/elfcore.h>
#include <linux/pm.h>

void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);
Expand Down
4 changes: 3 additions & 1 deletion arch/score/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#include <linux/signal.h>
#include <linux/unistd.h>
#include <linux/uaccess.h>
#include <asm-generic/ucontext.h>

#include <asm/syscalls.h>
#include <asm/ucontext.h>

#include <asm/cacheflush.h>

Expand Down
2 changes: 2 additions & 0 deletions arch/score/kernel/sys_score.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include <linux/mman.h>
#include <linux/module.h>
#include <linux/unistd.h>
#include <linux/syscalls.h>
#include <asm/syscalls.h>

unsigned long shm_align_mask = PAGE_SIZE - 1;
EXPORT_SYMBOL(shm_align_mask);
Expand Down

0 comments on commit 9fb24cc

Please sign in to comment.