[Drbd-dev] [PATCH] Support use of HAVE_LINUX_BYTEORDER_SWABB_H for kernel versions older than 2.6.29

Lars Ellenberg lars.ellenberg at linbit.com
Thu May 7 13:14:14 CEST 2009


On Thu, May 07, 2009 at 11:16:11AM +0200, Michael Prokop wrote:
> 
> Signed-off-by: Michael Prokop <mika at grml.org>
> 
> diff --git a/drbd/linux/drbd_config.h b/drbd/linux/drbd_config.h
> index 4d323f7..ac14997 100644
> --- a/drbd/linux/drbd_config.h
> +++ b/drbd/linux/drbd_config.h
> @@ -74,7 +74,10 @@ extern const char *drbd_buildtag(void);
>  #define HAVE_LINUX_SCATTERLIST_H
>  
>  /* 2.6.29 and up no longer have swabb.h */
> -//#define HAVE_LINUX_BYTEORDER_SWABB_H
> +#include <linux/version.h>
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
> +#define HAVE_LINUX_BYTEORDER_SWABB_H
> +#endif
>  
>  /* Some vendor kernels < 2.6.7 might define msleep in one or
>   * another way .. */

Thanks. But unneccessary.
For the other settings, scripts/adjust_drbd_config_h.sh has to be run
anyways, which also takes care of this setting.

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.


More information about the drbd-dev mailing list