[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20091117.010241.44239459.davem@davemloft.net>
Date: Tue, 17 Nov 2009 01:02:41 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: rmody@...cade.com
Cc: netdev@...r.kernel.org, adapter_linux_open_src_team@...cade.com
Subject: Re: Subject: [PATCH 3/6] bna: Brocade 10Gb Ethernet device driver
From: Rasesh Mody <rmody@...cade.com>
Date: Tue, 17 Nov 2009 00:30:55 -0800
> + return BFA_ROUNDUP(sizeof(struct bfa_cee_attr), BFA_DMA_ALIGN_SZ);
There is never a reason to invent your own infrastructure. We
have perfectly fine working ROUNDUP() et al. interfaces available
in the Linux kernel.
Please use them (see linux/kernel.h:DIV_ROUND_UP() and friends).
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists