> Cc: ferruh.yi...@intel.com; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] net/enic: move macro to the correct file
>
> 14/01/2020 01:24, John Daley:
> > +#define min_t(type, x, y) ({\
> > + type __min1 = (x); \
> > + type __min2
14/01/2020 01:24, John Daley:
> +#define min_t(type, x, y) ({\
> + type __min1 = (x); \
> + type __min2 = (y); \
> + __min1 < __min2 ? __min1 : __min2; })
> +
> +#define max_t(type, x, y) ({\
> + type
On 1/14/2020 12:24 AM, John Daley wrote:
> Move a macro from a widely included header file to a header file
> used only by the one caller of the macro.
>
> Signed-off-by: John Daley
> Reviewed-by: Hyong Youb Kim
Applied to dpdk-next-net/master, thanks.
Move a macro from a widely included header file to a header file
used only by the one caller of the macro.
Signed-off-by: John Daley
Reviewed-by: Hyong Youb Kim
---
drivers/net/enic/enic_compat.h | 10 --
drivers/net/enic/enic_res.h| 11 ++-
2 files changed, 10 insertions(+)
4 matches
Mail list logo