mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [linux-chenxing:mstar_v5_14_rebase 123/352] drivers/spi/spi-msc313.c:154:6: warning: no previous prototype for 'msc313_spi_set_cs'
Date: Tue, 20 Jul 2021 02:53:43 +0800	[thread overview]
Message-ID: <202107200239.OmyXALqD-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2035 bytes --]

tree:   git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head:   651efd0e52f225e60faa8b30f9768021e2104d3c
commit: e39640d415b9c96ba82e287dadb7b73138058c76 [123/352] ARM: mstar: MSC313 SPI driver
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.0
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://github.com/linux-chenxing/linux/commit/e39640d415b9c96ba82e287dadb7b73138058c76
        git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
        git fetch --no-tags linux-chenxing mstar_v5_14_rebase
        git checkout e39640d415b9c96ba82e287dadb7b73138058c76
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/spi/spi-msc313.c:154:6: warning: no previous prototype for 'msc313_spi_set_cs' [-Wmissing-prototypes]
     154 | void msc313_spi_set_cs(struct spi_device *spi, bool enable){
         |      ^~~~~~~~~~~~~~~~~
   drivers/spi/spi-msc313.c: In function 'msc313_spi_remove':
   drivers/spi/spi-msc313.c:322:21: warning: unused variable 'spi' [-Wunused-variable]
     322 |  struct msc313_spi *spi = spi_master_get_devdata(master);
         |                     ^~~


vim +/msc313_spi_set_cs +154 drivers/spi/spi-msc313.c

   153	
 > 154	void msc313_spi_set_cs(struct spi_device *spi, bool enable){
   155		struct msc313_spi *mspi = spi_master_get_devdata(spi->master);
   156		if(enable)
   157			regmap_update_bits(mspi->regmap, REG_CS, CS_MASK, CS_MASK);
   158		else
   159			regmap_update_bits(mspi->regmap, REG_CS, CS_MASK, 0);
   160	}
   161	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 78731 bytes --]

                 reply	other threads:[~2021-07-19 19:34 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=202107200239.OmyXALqD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@0x0f.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®