From: James Simmons Date: Tue, 16 May 2023 13:59:15 +0000 (-0400) Subject: LU-9859 libcfs: remove cfs_size_round() X-Git-Tag: 2.15.58~99 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6481328c1c996172aa3333fc27f1b0d046e99eb0;p=fs%2Flustre-release.git LU-9859 libcfs: remove cfs_size_round() Now that everyone is moved to round_up() we can safely remove the macro cfs_size_round(). Test-Parameters: trivial Change-Id: If8e1aff5e89007eeb38c5810c68282d51e37f019 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51009 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/libcfs/include/libcfs/libcfs_private.h b/libcfs/include/libcfs/libcfs_private.h index 9b80be4..0cd7774 100644 --- a/libcfs/include/libcfs/libcfs_private.h +++ b/libcfs/include/libcfs/libcfs_private.h @@ -259,12 +259,4 @@ int libcfs_debug_mark_buffer(const char *text); /* logical equivalence */ #define equi(a, b) (!!(a) == !!(b)) -#ifndef HAVE_CFS_SIZE_ROUND -static inline size_t cfs_size_round(size_t val) -{ - return round_up(val, 8); -} -#define HAVE_CFS_SIZE_ROUND -#endif - #endif