Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46893
b: refs/heads/master
c: 2366fb1
h: refs/heads/master
i:
  46891: 4b9b75e
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Paul Mackerras committed Feb 8, 2007
1 parent 362fcc4 commit eb8df7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3839a5943977674d224cca541fd0914b942aa466
refs/heads/master: 2366fb16abcd8dea96820d3cb4f1de3a868d268c
3 changes: 2 additions & 1 deletion trunk/arch/ppc/lib/rheap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/slab.h>

Expand Down Expand Up @@ -654,7 +655,7 @@ void rh_dump(rh_info_t * info)
int maxnr;
int i, nr;

maxnr = sizeof(st) / sizeof(st[0]);
maxnr = ARRAY_SIZE(st);

printk(KERN_INFO
"info @0x%p (%d slots empty / %d max)\n",
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ppc/syslib/m8xx_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static struct mtd_partition mpc8xxads_partitions[] = {
}
};

#define mpc8xxads_part_num (sizeof (mpc8xxads_partitions) / sizeof (mpc8xxads_partitions[0]))
#define mpc8xxads_part_num ARRAY_SIZE(mpc8xxads_partitions)

#endif

Expand Down
7 changes: 3 additions & 4 deletions trunk/arch/ppc/xmon/ppc-opc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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. */

Expand Down Expand Up @@ -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);

0 comments on commit eb8df7c

Please sign in to comment.