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: [rmk-arm:clearfog 30/113] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: warning: '_mv88e6xxx_pvt_read' defined but not used
Date: Thu, 19 Jan 2023 09:47:40 +0800	[thread overview]
Message-ID: <202301190945.FYJ35idd-lkp@intel.com> (raw)

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

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Russell King <rmk+kernel@armlinux.org.uk>

Hi Russell,

First bad commit (maybe != root cause):

tree:   git://git.armlinux.org.uk/~rmk/linux-arm clearfog
head:   1a836e3b4d162d37b94f04eeda458d91bf2a50f7
commit: 32ae8731c815b8ff45d924fdde9d83ea75d8966d [30/113] net: dsa: mv88e6xxx: debugfs hacks to fix the compile
:::::: branch date: 14 hours ago
:::::: commit date: 5 weeks ago
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230119/202301190945.FYJ35idd-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
        git fetch --no-tags rmk-arm clearfog
        git checkout 32ae8731c815b8ff45d924fdde9d83ea75d8966d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/

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 >>):

   In file included from drivers/net/dsa/mv88e6xxx/chip.c:3676:
>> drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: warning: '_mv88e6xxx_pvt_read' defined but not used [-Wunused-function]
      52 | static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
         |            ^~~~~~~~~~~~~~~~~~~


vim +/_mv88e6xxx_pvt_read +52 drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c

34805366786a19d Vivien Didelot 2015-10-22  51  
34805366786a19d Vivien Didelot 2015-10-22 @52  static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
34805366786a19d Vivien Didelot 2015-10-22  53  			       int src_port, u16 *data)
34805366786a19d Vivien Didelot 2015-10-22  54  {
34805366786a19d Vivien Didelot 2015-10-22  55  	int ret;
34805366786a19d Vivien Didelot 2015-10-22  56  
34805366786a19d Vivien Didelot 2015-10-22  57  	ret = _mv88e6xxx_pvt_wait(chip);
34805366786a19d Vivien Didelot 2015-10-22  58  	if (ret < 0)
34805366786a19d Vivien Didelot 2015-10-22  59  		return ret;
34805366786a19d Vivien Didelot 2015-10-22  60  
34805366786a19d Vivien Didelot 2015-10-22  61  	ret = _mv88e6xxx_pvt_cmd(chip, src_dev, src_port,
34805366786a19d Vivien Didelot 2015-10-22  62  				GLOBAL2_PVT_ADDR_OP_READ);
34805366786a19d Vivien Didelot 2015-10-22  63  	if (ret < 0)
34805366786a19d Vivien Didelot 2015-10-22  64  		return ret;
34805366786a19d Vivien Didelot 2015-10-22  65  
34805366786a19d Vivien Didelot 2015-10-22  66  	return mv88e6xxx_g2_read(chip, GLOBAL2_PVT_DATA, data);
34805366786a19d Vivien Didelot 2015-10-22  67  }
34805366786a19d Vivien Didelot 2015-10-22  68  

:::::: The code at line 52 was first introduced by commit
:::::: 34805366786a19df154fa78df536503f6ef508d1 net: dsa: mv88e6xxx: add debugfs interface

:::::: TO: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
:::::: CC: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

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

                 reply	other threads:[~2023-01-19  1:48 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=202301190945.FYJ35idd-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.