Commit 30bfc478 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: uapi: use __ALIGN_KERNEL for lustre_ioctl.h

Replace cfs_size_round() standard __ALIGN_KERNEL macro. This
removes the dependency of libcfs.h which is a kernel only
header.
Signed-off-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401
Reviewed-on: https://review.whamcloud.com/24568Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: default avatarBen Evans <bevans@cray.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 325da967
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
#ifndef LUSTRE_IOCTL_H_ #ifndef LUSTRE_IOCTL_H_
#define LUSTRE_IOCTL_H_ #define LUSTRE_IOCTL_H_
#include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
#include "../../../linux/libcfs/libcfs.h"
#include "../../../../lustre/include/lustre/lustre_idl.h" #include "../../../../lustre/include/lustre/lustre_idl.h"
#ifdef __KERNEL__ #ifdef __KERNEL__
...@@ -121,12 +121,12 @@ struct obd_ioctl_hdr { ...@@ -121,12 +121,12 @@ struct obd_ioctl_hdr {
static inline __u32 obd_ioctl_packlen(struct obd_ioctl_data *data) static inline __u32 obd_ioctl_packlen(struct obd_ioctl_data *data)
{ {
__u32 len = cfs_size_round(sizeof(*data)); __u32 len = __ALIGN_KERNEL(sizeof(*data), 8);
len += cfs_size_round(data->ioc_inllen1); len += __ALIGN_KERNEL(data->ioc_inllen1, 8);
len += cfs_size_round(data->ioc_inllen2); len += __ALIGN_KERNEL(data->ioc_inllen2, 8);
len += cfs_size_round(data->ioc_inllen3); len += __ALIGN_KERNEL(data->ioc_inllen3, 8);
len += cfs_size_round(data->ioc_inllen4); len += __ALIGN_KERNEL(data->ioc_inllen4, 8);
return len; return len;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment