3 drivers/net/ixp4xx/ixp4xx_qmgr.c | 8 ++++----
4 1 file changed, 4 insertions(+), 4 deletions(-)
6 --- linux-ixp4xx.orig/drivers/net/ixp4xx/ixp4xx_qmgr.c 2006-10-15 18:52:35.000000000 +0200
7 +++ linux-ixp4xx/drivers/net/ixp4xx/ixp4xx_qmgr.c 2006-10-15 18:54:32.000000000 +0200
8 @@ -107,7 +107,7 @@ static int get_free_qspace(struct qm_qmg
12 -static inline int log2(int x)
13 +static inline int _log2(int x)
17 @@ -127,7 +127,7 @@ static inline int log2(int x)
19 static int conf_q_regs(struct qm_queue *queue)
21 - int bsize = log2(queue->len/16);
22 + int bsize = _log2(queue->len/16);
23 int baddr = queue->addr + IX_QMGR_QCFG_SIZE;
25 /* +2, because baddr is in words and not in bytes */
26 @@ -141,8 +141,8 @@ void queue_set_watermarks(struct qm_queu
28 /* calculate the register values
29 * 0->0, 1->1, 2->2, 4->3, 8->4 16->5...*/
30 - ne = log2(ne<<1) & 0x7;
31 - nf = log2(nf<<1) & 0x7;
32 + ne = _log2(ne<<1) & 0x7;
33 + nf = _log2(nf<<1) & 0x7;
35 /* Mask out old watermarks */
36 val = queue_read_cfg_reg(queue) & ~0xfc000000;