[dpdk-dev] [PATCH] bnx2x: fix undeclared PAGE_SIZE build error

2015-07-29 Thread Tony Lu
>-Original Message- >From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] >Sent: Tuesday, July 28, 2015 5:18 PM >To: Zhigang Lu >Cc: dev at dpdk.org >Subject: Re: [dpdk-dev] [PATCH] bnx2x: fix undeclared PAGE_SIZE build error > >2015-07-28 16:48, Zhigang L

[dpdk-dev] [PATCH] bnx2x: fix undeclared PAGE_SIZE build error

2015-07-28 Thread Zhigang Lu
This patch fixes a build error caused by undeclared PAGE_SIZE when compiling for non-X86 arches. On some arches, PAGE_SIZE is not fixed so that header files do not define it. A better way to get it is via sysconf(3) or getpagesize(2). Fixes: 540a211084a7 ("bnx2x: driver core") == Build drivers/n

[dpdk-dev] [PATCH] bnx2x: fix undeclared PAGE_SIZE build error

2015-07-28 Thread Thomas Monjalon
2015-07-28 16:48, Zhigang Lu: > This patch fixes a build error caused by undeclared PAGE_SIZE when > compiling for non-X86 arches. On some arches, PAGE_SIZE is not fixed > so that header files do not define it. A better way to get it is > via sysconf(3) or getpagesize(2). > > Fixes: 540a211084a7