From 6481328c1c996172aa3333fc27f1b0d046e99eb0 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 16 May 2023 09:59:15 -0400 Subject: [PATCH] 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 --- libcfs/include/libcfs/libcfs_private.h | 8 -------- 1 file changed, 8 deletions(-) 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 -- 1.8.3.1