Skip to content

Commit 4904384

Browse files
Martin Krastevzackr
authored andcommitted
drm/vmwgfx: Drop mksstat_init_record fn as currently unused
This internal helper handles a type of mksstat event counter which is currently unused. Remove the routine to avoid compile warnings. Reported-by: kernel test robot <[email protected]> Signed-off-by: Martin Krastev <[email protected]> Reviewed-by: Maaz Mombasawala <[email protected]> Reviewed-by: Zack Rusin <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b8aa529 commit 4904384

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_msg.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -702,32 +702,6 @@ static inline void hypervisor_ppn_remove(PPN64 pfn)
702702
/* Header to the text description of mksGuestStat instance descriptor */
703703
#define MKSSTAT_KERNEL_DESCRIPTION "vmwgfx"
704704

705-
/**
706-
* mksstat_init_record: Initializes an MKSGuestStatCounter-based record
707-
* for the respective mksGuestStat index.
708-
*
709-
* @stat_idx: Index of the MKSGuestStatCounter-based mksGuestStat record.
710-
* @pstat: Pointer to array of MKSGuestStatCounterTime.
711-
* @pinfo: Pointer to array of MKSGuestStatInfoEntry.
712-
* @pstrs: Pointer to current end of the name/description sequence.
713-
* Return: Pointer to the new end of the names/description sequence.
714-
*/
715-
716-
static inline char *mksstat_init_record(mksstat_kern_stats_t stat_idx,
717-
MKSGuestStatCounterTime *pstat, MKSGuestStatInfoEntry *pinfo, char *pstrs)
718-
{
719-
char *const pstrd = pstrs + strlen(mksstat_kern_name_desc[stat_idx][0]) + 1;
720-
strcpy(pstrs, mksstat_kern_name_desc[stat_idx][0]);
721-
strcpy(pstrd, mksstat_kern_name_desc[stat_idx][1]);
722-
723-
pinfo[stat_idx].name.s = pstrs;
724-
pinfo[stat_idx].description.s = pstrd;
725-
pinfo[stat_idx].flags = MKS_GUEST_STAT_FLAG_NONE;
726-
pinfo[stat_idx].stat.counter = (MKSGuestStatCounter *)&pstat[stat_idx];
727-
728-
return pstrd + strlen(mksstat_kern_name_desc[stat_idx][1]) + 1;
729-
}
730-
731705
/**
732706
* mksstat_init_record_time: Initializes an MKSGuestStatCounterTime-based record
733707
* for the respective mksGuestStat index.

0 commit comments

Comments
 (0)