linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org
Subject: [linusw-nomadik:ux500-janice-v5.18-rc1 18/21] drivers/input/misc/isa1200.c:171:6: warning: no previous prototype for function 'isa1200_start'
Date: Wed, 6 Apr 2022 16:09:49 +0800	[thread overview]
Message-ID: <202204061654.b8z1eMrm-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-janice-v5.18-rc1
head:   7d27ddbe075c07508ab045a63d23aeca798514ee
commit: 0baaba96c1a1116b9fc698a263657cb9b6ab8198 [18/21] Input: isa1200 - new driver for Immersion ISA1200
config: hexagon-randconfig-r025-20220406 (https://download.01.org/0day-ci/archive/20220406/202204061654.b8z1eMrm-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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/linusw/linux-nomadik.git/commit/?id=0baaba96c1a1116b9fc698a263657cb9b6ab8198
        git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
        git fetch --no-tags linusw-nomadik ux500-janice-v5.18-rc1
        git checkout 0baaba96c1a1116b9fc698a263657cb9b6ab8198
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/input/misc/

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/input/misc/isa1200.c:171:6: warning: no previous prototype for function 'isa1200_start' [-Wmissing-prototypes]
   void isa1200_start(struct isa1200 *isa)
        ^
   drivers/input/misc/isa1200.c:171:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void isa1200_start(struct isa1200 *isa)
   ^
   static 
>> drivers/input/misc/isa1200.c:228:6: warning: no previous prototype for function 'isa1200_stop' [-Wmissing-prototypes]
   void isa1200_stop(struct isa1200 *isa)
        ^
   drivers/input/misc/isa1200.c:228:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void isa1200_stop(struct isa1200 *isa)
   ^
   static 
   2 warnings generated.


vim +/isa1200_start +171 drivers/input/misc/isa1200.c

   170	
 > 171	void isa1200_start(struct isa1200 *isa)
   172	{
   173		const struct isa1200_config *cfg = isa->conf;
   174		u8 hctrl0;
   175		u8 hctrl1;
   176		u8 hctrl3;
   177	
   178		clk_prepare_enable(isa->clk);
   179		gpiod_set_value(isa->hen, 1);
   180		gpiod_set_value(isa->len, 1);
   181	
   182		udelay(200);
   183	
   184		regmap_write(isa->map, ISA1200_SCTRL, cfg->ldo_voltage);
   185	
   186		if (!cfg->pwm_in) {
   187			hctrl0 = ISA1200_HCTRL0_PWM_GEN_MODE;
   188			hctrl1 = ISA1200_HCTRL1_EXT_CLOCK;
   189		} else {
   190			hctrl0 = ISA1200_HCTRL0_PWM_INPUT_MODE;
   191			hctrl1 = 0;
   192		}
   193		hctrl0 |= cfg->clkdiv;
   194		hctrl1 |= ISA1200_HCTRL1_DAC_INVERT;
   195		if (cfg->erm)
   196			hctrl1 |= ISA1200_HCTRL1_ERM;
   197	
   198		regmap_write(isa->map, ISA1200_HCTRL0, hctrl0);
   199		regmap_write(isa->map, ISA1200_HCTRL1, hctrl1);
   200	
   201		/* Make sure to de-assert software reset */
   202		regmap_write(isa->map, ISA1200_HCTRL2, 0x00);
   203	
   204		/* PLL divisor */
   205		hctrl3 = ISA1200_HCTRL3_DEFAULT;
   206		hctrl3 |= (cfg->plldiv << ISA1200_HCTRL3_PLLDIV_SHIFT);
   207		regmap_write(isa->map, ISA1200_HCTRL3, hctrl3);
   208	
   209		/* Frequency */
   210		regmap_write(isa->map, ISA1200_HCTRL4, cfg->freq);
   211		/* Duty cycle */
   212		regmap_write(isa->map, ISA1200_HCTRL5, cfg->duty);
   213		/* Period */
   214		regmap_write(isa->map, ISA1200_HCTRL6, cfg->period);
   215	
   216		/* Turn on PWM generation in BIT(7) */
   217		hctrl0 |= ISA1200_HCTRL0_PWM_GEN_ENABLE;
   218		regmap_write(isa->map, ISA1200_HCTRL0, hctrl0);
   219	
   220		/*
   221		 * This is done in the vendor tree with the commment
   222		 * "Duty 0x64 == nForce 90", and no force feedback happens
   223		 * unless we do this.
   224		 */
   225		regmap_write(isa->map, ISA1200_HCTRL5, 0x64);
   226	}
   227	
 > 228	void isa1200_stop(struct isa1200 *isa)
   229	{
   230		regmap_write(isa->map, ISA1200_HCTRL0, 0);
   231		gpiod_set_value(isa->len, 0);
   232		gpiod_set_value(isa->hen, 0);
   233		clk_disable_unprepare(isa->clk);
   234	}
   235	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2022-04-06  8:11 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=202204061654.b8z1eMrm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=llvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).