From: Michael Chan Date: Tue, 18 Mar 2014 03:19:07 +0000 (-0800) Subject: cnic,bnx2i,bnx2fc: Fix inconsistent use of page size X-Git-Tag: v3.14-rc8~3^2~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be1fefc21433f6202fcd76bdc7916e557fe80b9a;p=pandora-kernel.git cnic,bnx2i,bnx2fc: Fix inconsistent use of page size The bnx2/bnx2x rings are made up of linked pages. However there is an upper limit on the page size as some the page size settings are 16-bit in the hardware/firmware interface. In the current code, some parts use BNX2_PAGE_SIZE which has a 16K upper limit and some parts use PAGE_SIZE. On archs with >= 64K PAGE_SIZE, it generates some compile warnings. Define a new CNIC_PAGE_SZIE which has an upper limit of 16K and use it consistently in all relevant parts. Signed-off-by: Michael Chan Signed-off-by: Eddie Wai Signed-off-by: David S. Miller --- Reading git-diff-tree failed