From: Andreas Dilger Date: Fri, 14 Dec 2018 20:37:55 +0000 (-0700) Subject: LU-11783 build: remove lustre_user.h deprecation warning X-Git-Tag: 2.12.0-RC4~2 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5b468e20ecc0b77460444393d1bb41867d99899d LU-11783 build: remove lustre_user.h deprecation warning The "lustre/lustre_user.h" header has been in use for many years. The patch https://review.whamcloud.com/25246 "LU-6401 uapi: migrate remaining uapi headers to uapi directory" moved the header to "linux/lustre/lustre_user.h" and left a stub "lustre/lustre_user.h" behind that generates a compiler warning that this header is deprecated. However, no window was given between the introduction of the new header and the deprecation of the old header, which makes it harder for applications to smoothly transition to the new header location. Also, installing Lustre headers into the "linux/" directory before Lustre is actually part of the kernel may potentially cause problems. Disable the deprecation warning in the old header for several releases, until the new header location has been available for a good time and it is safe for applications to assume that it is available. Test-Parameters: trivial Fixes: 6712478e79588e73e28c7ccac3afc7ac2368a4f3 Signed-off-by: Andreas Dilger Change-Id: If5a62587e2d3627178a0f7a09c3a4c10801cab07 Reviewed-on: https://review.whamcloud.com/33872 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Ben Evans Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/include/lustre/lustre_user.h b/lustre/include/lustre/lustre_user.h index d4b7501..9d8f5eb 100644 --- a/lustre/include/lustre/lustre_user.h +++ b/lustre/include/lustre/lustre_user.h @@ -42,4 +42,7 @@ #include -#warning "Including lustre_user.h is deprecated. Include linux/lustre/lustre_user.h directly." +/* Disable warning until 2.16 or 3.0, until new header is widely available. + * This gives apps time to move to the new header without spurious warnings. +#warning "Including lustre/lustre_user.h is deprecated. Include linux/lustre/lustre_user.h instead." +*/