Re: [PATCH v3 05/38] tools: define ROUNDUP() in tools/include/xen-tools/libs.h

2020-08-27 Thread Wei Liu
On Sun, Aug 23, 2020 at 11:34:46AM +0200, Juergen Gross wrote: > Today there are multiple copies of the ROUNDUP() macro in various > sources and headers. Define it once in tools/include/xen-tools/libs.h. > > Using xen-tools/libs.h enables removing copies of MIN() and MAX(), too. > > Signed-off-by

[PATCH v3 05/38] tools: define ROUNDUP() in tools/include/xen-tools/libs.h

2020-08-23 Thread Juergen Gross
Today there are multiple copies of the ROUNDUP() macro in various sources and headers. Define it once in tools/include/xen-tools/libs.h. Using xen-tools/libs.h enables removing copies of MIN() and MAX(), too. Signed-off-by: Juergen Gross --- tools/console/daemon/io.c| 6 +- tools/in