From: Bean Huo Date: Sun, 8 Jan 2023 22:40:56 +0000 (+0100) Subject: scsi: core: Fix invisible definition compilation warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f3e57da528127febae7eb03d9c87408d572b0fd8;p=linux.git scsi: core: Fix invisible definition compilation warning In 'include/ufs/ufshcd.h' file, 'enum dma_data_direction' will be used, which is defined in linux/dma-direction.h, however, this header file is not included in ufshcd.h, thus causing the following compilation warning: "warning: ‘enum dma_data_direction’ declared inside parameter list will not be visible outside of this definition or declaration" Fix this warning by including 'linux/dma-direction.h'. Fixes: 6ff265fc5ef6 ("scsi: ufs: core: bsg: Add advanced RPMB support in ufs_bsg") Reported-by: Xiaosen He Reported-by: Bart Van Assche Signed-off-by: Bean Huo Reviewed-by: Bart Van Assche Signed-off-by: Martin K. Petersen --- diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h index ff138927676be..fc7373a1a15e5 100644 --- a/include/ufs/ufshcd.h +++ b/include/ufs/ufshcd.h @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include