[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 1/5] xen: move round_pg{up, down} to pfn.h



>>> On 03.03.17 at 10:41, <wei.liu2@xxxxxxxxxx> wrote:
> --- a/xen/include/xen/pfn.h
> +++ b/xen/include/xen/pfn.h
> @@ -6,4 +6,7 @@
>  #define PFN_DOWN(x)   ((x) >> PAGE_SHIFT)
>  #define PFN_UP(x)     (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
>  
> +#define round_pgup(_p)    (((_p)+(PAGE_SIZE-1))&PAGE_MASK)
> +#define round_pgdown(_p)  ((_p)&PAGE_MASK)

With blanks around binary operators added and leading underscores
removed I think this could go in right away, i.e.
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.