mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Martin Krastev <krastevm@vmware.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-kernel@vger.kernel.org, Zack Rusin <zackr@vmware.com>
Subject: drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:713:21: warning: unused function 'mksstat_init_record'
Date: Fri, 20 Jan 2023 18:54:24 +0800	[thread overview]
Message-ID: <202301201858.yiiu0sKz-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d368967cb1039b5c4cccb62b5a4b9468c50cd143
commit: 7a7a933edd6c3a6d5d64e08093f2d564104cefcd drm/vmwgfx: Introduce VMware mks-guest-stats
date:   1 year, 7 months ago
config: x86_64-randconfig-a001-20230116 (https://download.01.org/0day-ci/archive/20230120/202301201858.yiiu0sKz-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7a7a933edd6c3a6d5d64e08093f2d564104cefcd
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7a7a933edd6c3a6d5d64e08093f2d564104cefcd
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/gma500/ drivers/gpu/drm/vmwgfx/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:713:21: warning: unused function 'mksstat_init_record' [-Wunused-function]
   static inline char *mksstat_init_record(mksstat_kern_stats_t stat_idx,
                       ^
   1 warning generated.


vim +/mksstat_init_record +713 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c

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

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-01-20 10:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202301201858.yiiu0sKz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=krastevm@vmware.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=zackr@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®