Skip to content

Commit

Permalink
kbuild: move bounds.h to include/generated
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
sravnborg authored and michal42 committed Dec 12, 2009
1 parent 9367858 commit 01fc0ac
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ include/linux/autoconf.h
include/linux/compile.h
include/linux/version.h
include/linux/utsrelease.h
include/linux/bounds.h
include/generated

# stgit generated dirs
Expand Down
2 changes: 1 addition & 1 deletion Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#####
# 1) Generate bounds.h

bounds-file := include/linux/bounds.h
bounds-file := include/generated/bounds.h

always := $(bounds-file)
targets := $(bounds-file) kernel/bounds.s
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ MRPROPER_DIRS += include/config include2 usr/include include/generated
MRPROPER_FILES += .config .config.old include/asm .version .old_version \
include/linux/autoconf.h include/linux/version.h \
include/linux/utsrelease.h \
include/linux/bounds.h include/asm*/asm-offsets.h \
include/asm*/asm-offsets.h \
Module.symvers Module.markers tags TAGS cscope*

# clean - Delete most, but leave enough to build external modules
Expand Down
2 changes: 1 addition & 1 deletion include/linux/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/seqlock.h>
#include <linux/nodemask.h>
#include <linux/pageblock-flags.h>
#include <linux/bounds.h>
#include <generated/bounds.h>
#include <asm/atomic.h>
#include <asm/page.h>

Expand Down
2 changes: 1 addition & 1 deletion include/linux/page-flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <linux/types.h>
#ifndef __GENERATING_BOUNDS_H
#include <linux/mm_types.h>
#include <linux/bounds.h>
#include <generated/bounds.h>
#endif /* !__GENERATING_BOUNDS_H */

/*
Expand Down
2 changes: 1 addition & 1 deletion kernel/bounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

void foo(void)
{
/* The enum constants to put into include/linux/bounds.h */
/* The enum constants to put into include/generated/bounds.h */
DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
/* End of constants */
Expand Down

0 comments on commit 01fc0ac

Please sign in to comment.