[lustre-devel] [PATCH 1/5] staging: lustre: Fix inclusion of local headers

Greg KH gregkh at linuxfoundation.org
Sun May 20 05:41:58 PDT 2018


On Wed, May 16, 2018 at 08:26:36PM +0200, Sabin Mihai Rapan wrote:
> This patch fixes the checkpatch.pl error:
> 
> ERROR:UAPI_INCLUDE: No #include in ...include/uapi/... should use a uapi/ path
> prefix
> 
> Signed-off-by: Sabin Mihai Rapan <sabin.rapan at gmail.com>
> ---
>  drivers/staging/lustre/include/uapi/linux/lnet/lnet-dlc.h     | 4 ++--
>  drivers/staging/lustre/include/uapi/linux/lnet/lnetctl.h      | 2 +-
>  drivers/staging/lustre/include/uapi/linux/lnet/nidstr.h       | 2 +-
>  drivers/staging/lustre/include/uapi/linux/lustre/lustre_cfg.h | 2 +-
>  drivers/staging/lustre/include/uapi/linux/lustre/lustre_fid.h | 2 +-
>  drivers/staging/lustre/include/uapi/linux/lustre/lustre_idl.h | 4 ++--
>  .../staging/lustre/include/uapi/linux/lustre/lustre_ioctl.h   | 2 +-
>  .../staging/lustre/include/uapi/linux/lustre/lustre_ostid.h   | 2 +-
>  .../staging/lustre/include/uapi/linux/lustre/lustre_user.h    | 2 +-
>  9 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/staging/lustre/include/uapi/linux/lnet/lnet-dlc.h b/drivers/staging/lustre/include/uapi/linux/lnet/lnet-dlc.h
> index c1619f411d81..1530ac26b449 100644
> --- a/drivers/staging/lustre/include/uapi/linux/lnet/lnet-dlc.h
> +++ b/drivers/staging/lustre/include/uapi/linux/lnet/lnet-dlc.h
> @@ -29,8 +29,8 @@
>  #ifndef LNET_DLC_H
>  #define LNET_DLC_H
>  
> -#include <uapi/linux/lnet/libcfs_ioctl.h>
> -#include <uapi/linux/lnet/lnet-types.h>
> +#include "libcfs_ioctl.h"
> +#include "lnet-types.h"

Ick, no, please leave as-is, the uapi "rules" are a bit different for
staging drivers.

thanks,

greg k-h


More information about the lustre-devel mailing list