|
@@ -21,6 +21,7 @@
|
|
|
02110-1301, USA. */
|
|
|
|
|
|
#include <linux/stddef.h>
|
|
|
+#include <linux/kernel.h>
|
|
|
#include "nonstdio.h"
|
|
|
#include "ppc.h"
|
|
|
|
|
@@ -4932,8 +4933,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. */
|
|
|
|
|
@@ -4989,5 +4989,4 @@ const struct powerpc_macro powerpc_macros[] = {
|
|
|
{ "clrlslwi.",4, PPCCOM, "rlwinm. %0,%1,%3,(%2)-(%3),31-(%3)" },
|
|
|
};
|
|
|
|
|
|
-const int powerpc_num_macros =
|
|
|
- sizeof (powerpc_macros) / sizeof (powerpc_macros[0]);
|
|
|
+const int powerpc_num_macros = ARRAY_SIZE(powerpc_macros);
|