From: Heiko Carstens Date: Fri, 18 Nov 2022 14:21:49 +0000 (+0100) Subject: s390/hypfs: remove unused info_blk_hdr__pcpus() function X-Git-Tag: v6.6.17~6031^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12a6c2c182c1160c46500d80c2f8922cd2747f41;p=platform%2Fkernel%2Flinux-rpi.git s390/hypfs: remove unused info_blk_hdr__pcpus() function Remove unused info_blk_hdr__pcpus() function: arch/s390/hypfs/hypfs_diag.c:71:21: error: unused function 'info_blk_hdr__pcpus' [-Werror,-Wunused-function] Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev --- diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index 6511d15..c3be533 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c @@ -68,14 +68,6 @@ static inline __u8 info_blk_hdr__flags(enum diag204_format type, void *hdr) return ((struct diag204_x_info_blk_hdr *)hdr)->flags; } -static inline __u16 info_blk_hdr__pcpus(enum diag204_format type, void *hdr) -{ - if (type == DIAG204_INFO_SIMPLE) - return ((struct diag204_info_blk_hdr *)hdr)->phys_cpus; - else /* DIAG204_INFO_EXT */ - return ((struct diag204_x_info_blk_hdr *)hdr)->phys_cpus; -} - /* Partition header */ static inline int part_hdr__size(enum diag204_format type)