X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Flinux%2Fkernel.h;h=6e248c572b189c2c7d0ba6b6ea8387f0e9d05a5d;hb=cc457b0fa2e45555b354d7107cabf9c9adc89183;hp=fdd20058cbb96ac635fb774b11c1bcbae0e6fe81;hpb=a12945b3b8cd4d483e5e8f2a1adb6576badf1d4d;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/include/linux/kernel.h b/datapath/linux/compat/include/linux/kernel.h index fdd20058c..6e248c572 100644 --- a/datapath/linux/compat/include/linux/kernel.h +++ b/datapath/linux/compat/include/linux/kernel.h @@ -87,4 +87,13 @@ #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) #endif +#ifndef rounddown +#define rounddown(x, y) ( \ +{ \ + typeof(x) __x = (x); \ + __x - (__x % (y)); \ +} \ +) +#endif + #endif /* linux/kernel.h */