From: Jorge Boncompte Date: Mon, 31 Dec 2007 07:20:08 +0000 (-0800) Subject: [ATM]: [he] fixing compilation when you define USE_RBPS_POOL/USE_RBPL_POOL X-Git-Tag: v2.6.25-rc1~1162^2~904 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d1f8db40bf72ae8bdc62bbf479d5cdf9cb9f921;p=linux-2.6 [ATM]: [he] fixing compilation when you define USE_RBPS_POOL/USE_RBPL_POOL Signed-off-by: Jorge Boncompte Signed-off-by: Chas Williams Signed-off-by: David S. Miller --- diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 325344bb3a..2e3395b7e8 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c @@ -1637,6 +1637,8 @@ he_stop(struct he_dev *he_dev) if (he_dev->rbpl_base) { #ifdef USE_RBPL_POOL + int i; + for (i = 0; i < CONFIG_RBPL_SIZE; ++i) { void *cpuaddr = he_dev->rbpl_virt[i].virt; dma_addr_t dma_handle = he_dev->rbpl_base[i].phys; @@ -1659,6 +1661,8 @@ he_stop(struct he_dev *he_dev) #ifdef USE_RBPS if (he_dev->rbps_base) { #ifdef USE_RBPS_POOL + int i; + for (i = 0; i < CONFIG_RBPS_SIZE; ++i) { void *cpuaddr = he_dev->rbps_virt[i].virt; dma_addr_t dma_handle = he_dev->rbps_base[i].phys;