Skip to content

Commit

Permalink
Revert "numademo: fix error on 32bit system"
Browse files Browse the repository at this point in the history
Revert due to #135 -- cannot break API for programs

This reverts commit a7c4bc7.
  • Loading branch information
Andi Kleen committed Sep 16, 2022
1 parent 01a39cb commit 5a99c6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libnuma.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,10 +830,10 @@ long long numa_node_size64(int node, long long *freep)

make_internal_alias(numa_node_size64);

long long numa_node_size(int node, long long *freep)
long numa_node_size(int node, long *freep)
{
long long f2;
long long sz = numa_node_size64_int(node, &f2);
long sz = numa_node_size64_int(node, &f2);
if (freep)
*freep = f2;
return sz;
Expand Down
2 changes: 1 addition & 1 deletion numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ int numa_preferred(void);

/* Return node size and free memory */
long long numa_node_size64(int node, long long *freep);
long long numa_node_size(int node, long long *freep);
long numa_node_size(int node, long *freep);

int numa_pagesize(void);

Expand Down
4 changes: 2 additions & 2 deletions numademo.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ static int numnodes;
static int get_node_list(void)
{
int a, got_nodes = 0;
long long free_node_sizes;
int max_node;
int max_node;
long free_node_sizes;

numnodes = numa_num_configured_nodes();
node_to_use = (int *)malloc(numnodes * sizeof(int));
Expand Down

0 comments on commit 5a99c6d

Please sign in to comment.