All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:715:21: warning: unused function 'mksstat_init_record'
Date: Wed, 18 Jan 2023 21:23:54 +0800	[thread overview]
Message-ID: <202301182109.EQrmq5XP-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "gcc: unused function warning for stub function"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Martin Krastev <krastevm@vmware.com>
CC: Zack Rusin <zackr@vmware.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c1649ec55708ae42091a2f1bca1ab49ecd722d55
commit: 9f808288ba88ac2a9582118343d4ca7e3d95dd43 drm/vmwgfx: Fix build issues in mksGuestStats discovered by the kernel test robot
date:   1 year, 7 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 1 year, 7 months ago
config: i386-buildonly-randconfig-r003-20230116 (https://download.01.org/0day-ci/archive/20230118/202301182109.EQrmq5XP-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=9f808288ba88ac2a9582118343d4ca7e3d95dd43
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 9f808288ba88ac2a9582118343d4ca7e3d95dd43
        # 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=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash 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:715: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 +715 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c

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

:::::: The code at line 715 was first introduced by commit
:::::: 7a7a933edd6c3a6d5d64e08093f2d564104cefcd drm/vmwgfx: Introduce VMware mks-guest-stats

:::::: TO: Martin Krastev <krastevm@vmware.com>
:::::: CC: Zack Rusin <zackr@vmware.com>

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

                 reply	other threads:[~2023-01-18 13:24 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=202301182109.EQrmq5XP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.