Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758606AbYHBSQg (ORCPT ); Sat, 2 Aug 2008 14:16:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758086AbYHBSQ0 (ORCPT ); Sat, 2 Aug 2008 14:16:26 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:49930 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754286AbYHBSQZ (ORCPT ); Sat, 2 Aug 2008 14:16:25 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Message-ID: <4894A46D.10607@s5r6.in-berlin.de> Date: Sat, 02 Aug 2008 20:16:13 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080722 SeaMonkey/1.1.11 MIME-Version: 1.0 To: Julia Lawall CC: ben.collins@ubuntu.com, linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 3/10] drivers/ieee1394: Use DIV_ROUND_UP References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 671 Lines: 18 Julia Lawall wrote: > -#define bytes_to_quads(_b) (((_b) + sizeof(u32) - 1) / sizeof(u32)) > +#define bytes_to_quads(_b) DIV_ROUND_UP(_b, sizeof(u32)) ... > - return (dg_size + adj_max_payload - 1) / adj_max_payload; > + return DIV_ROUND_UP(dg_size, adj_max_payload); I cut the changelog down to the necessary and committed it to linux1394-2.6.git. Thanks, -- Stefan Richter -=====-==--- =--- ---=- http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/