From: Greg KH <gregkh@suse.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Haiyang Zhang <haiyangz@microsoft.com>,
Hank Janssen <hjanssen@microsoft.com>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging/hv/osd: don't reimplement ALIGN macro
Date: Tue, 18 Jan 2011 21:37:15 -0800 [thread overview]
Message-ID: <20110119053715.GA26304@suse.de> (raw)
In-Reply-To: <1295365151-9527-1-git-send-email-u.kleine-koenig@pengutronix.de>
On Tue, Jan 18, 2011 at 04:39:11PM +0100, Uwe Kleine-König wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/staging/hv/osd.h | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/hv/osd.h b/drivers/staging/hv/osd.h
> index ce064e8..61ae54c 100644
> --- a/drivers/staging/hv/osd.h
> +++ b/drivers/staging/hv/osd.h
> @@ -28,10 +28,9 @@
> #include <linux/workqueue.h>
>
> /* Defines */
> -#define ALIGN_UP(value, align) (((value) & (align-1)) ? \
> - (((value) + (align-1)) & ~(align-1)) : \
> - (value))
> +#define ALIGN_UP(value, align) ALIGN((value), (align))
How about dropping ALIGN_UP entirely and just using the built-in ALIGN()
macro instead?
> #define ALIGN_DOWN(value, align) ((value) & ~(align-1))
Any chance to get rid of this as well with the ALIGN() macro, or is that
really not possible?
thanks,
greg k-h
next prev parent reply other threads:[~2011-01-19 6:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 15:39 [PATCH] staging/hv/osd: don't reimplement ALIGN macro Uwe Kleine-König
2011-01-19 5:37 ` Greg KH [this message]
2011-01-19 8:54 ` Uwe Kleine-König
2011-01-19 12:43 ` Jiri Slaby
2011-01-19 13:07 ` Uwe Kleine-König
2011-01-20 5:01 ` Greg KH
2011-01-20 8:32 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110119053715.GA26304@suse.de \
--to=gregkh@suse.de \
--cc=devel@driverdev.osuosl.org \
--cc=haiyangz@microsoft.com \
--cc=hjanssen@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.