From: bapt Date: Wed, 28 Oct 2015 11:28:46 +0000 (+0000) Subject: Remove more of the mptutil unused code X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=29a75bb3b5b1063047dab0367ba9d8244fff1b14;p=people%2Fjulieng%2Ffreebsd.git Remove more of the mptutil unused code Sponsored by: Gandi.net --- diff --git a/usr.sbin/mpsutil/mpsutil.h b/usr.sbin/mpsutil/mpsutil.h index 184238406af4..0c1a9416599b 100644 --- a/usr.sbin/mpsutil/mpsutil.h +++ b/usr.sbin/mpsutil/mpsutil.h @@ -141,37 +141,4 @@ mps_read_ioc_page(int fd, U8 PageNumber, U16 *IOCStatus) MPI2_IOC_FACTS_REPLY * mps_get_iocfacts(int fd); -#if 0 -static __inline U32 -mpt_vol_pageaddr(U8 VolumeBus, U8 VolumeID) -{ - - return (VolumeBus << 8 | VolumeID); -} - -static __inline CONFIG_PAGE_RAID_VOL_0 * -mpt_vol_info(int fd, U8 VolumeBus, U8 VolumeID, U16 *IOCStatus) -{ - - return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_RAID_VOLUME, 0, - mpt_vol_pageaddr(VolumeBus, VolumeID), IOCStatus)); -} - -static __inline CONFIG_PAGE_RAID_VOL_1 * -mpt_vol_names(int fd, U8 VolumeBus, U8 VolumeID, U16 *IOCStatus) -{ - - return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_RAID_VOLUME, 1, - mpt_vol_pageaddr(VolumeBus, VolumeID), IOCStatus)); -} - -static __inline CONFIG_PAGE_RAID_PHYS_DISK_0 * -mpt_pd_info(int fd, U8 PhysDiskNum, U16 *IOCStatus) -{ - - return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_RAID_PHYSDISK, 0, - PhysDiskNum, IOCStatus)); -} -#endif - #endif /* !__MPTUTIL_H__ */