diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-02-08 00:41:56 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-02-08 00:41:56 -0600 |
commit | 135637aa781a0480ba4ef2d3ad18fae408ace874 (patch) | |
tree | d28d3765b2cb135968b14a0fd75ef2c2b4f1e248 /arch/ppc/xmon/ppc-opc.c | |
parent | 97c5a20ae68774b4c9246c4657be0d88317f103f (diff) | |
parent | d003e7a1a569501cbe9a5ca14748177498c4893a (diff) |
Merge branch 'master' into 83xx
Diffstat (limited to 'arch/ppc/xmon/ppc-opc.c')
-rw-r--r-- | arch/ppc/xmon/ppc-opc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/ppc/xmon/ppc-opc.c b/arch/ppc/xmon/ppc-opc.c index 533a6c9973d..034313cef6e 100644 --- a/arch/ppc/xmon/ppc-opc.c +++ b/arch/ppc/xmon/ppc-opc.c @@ -19,6 +19,7 @@ along with this file; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <linux/posix_types.h> +#include <linux/kernel.h> #include "ansidecl.h" #include "ppc.h" @@ -2669,8 +2670,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { }; -const int powerpc_num_opcodes = - sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]); +const int powerpc_num_opcodes = ARRAY_SIZE(powerpc_opcodes); /* The macro table. This is only used by the assembler. */ @@ -2717,5 +2717,4 @@ const struct powerpc_macro powerpc_macros[] = { }; -const int powerpc_num_macros = - sizeof (powerpc_macros) / sizeof (powerpc_macros[0]); +const int powerpc_num_macros = ARRAY_SIZE(powerpc_macros); |