Message ID | 3be2b10b0037406374a415fda2318cbf95a67546.1470555003.git.felix.janda@posteo.de (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
> +extern int xfs_assert_largefile[sizeof(off_t)-8]; Please add a comment on why we have this declaration, otherwise this looks fine to me: Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/include/xfs.h b/include/xfs.h index 7bed957..37c95fe 100644 --- a/include/xfs.h +++ b/include/xfs.h @@ -47,6 +47,8 @@ # error unknown platform... have fun porting! #endif +extern int xfs_assert_largefile[sizeof(off_t)-8]; + /* * sparse kernel source annotations */
Since our interfaces depend on the consistent use of a 64bit offset type, we force downstreams to use transparent LFS (_FILE_OFFSET_BITS=64), so that it becomes impossible for them to use 32bit interfaces. Signed-off-by: Felix Janda <felix.janda@posteo.de> --- include/xfs.h | 2 ++ 1 file changed, 2 insertions(+)