linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [pinctrl:devel 6/11] drivers/pinctrl/freescale/pinctrl-imx8ulp.c:228:35: warning: 'pin_reg' is used uninitialized in this function
@ 2021-07-23 20:00 kernel test robot
  2021-07-26  2:57 ` Aisheng Dong
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-07-23 20:00 UTC (permalink / raw)
  To: Anson Huang
  Cc: kbuild-all, linux-gpio, Linus Walleij, Jacky Bai, Dong Aisheng

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   79e2311c876c276566e3fb84ba33682eb540874b
commit: 16b343e8e0ef7de5ce451427fafc9e2ea42f548f [6/11] pinctrl: imx8ulp: Add pinctrl driver support
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-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://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/commit/?id=16b343e8e0ef7de5ce451427fafc9e2ea42f548f
        git remote add pinctrl https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git
        git fetch --no-tags pinctrl devel
        git checkout 16b343e8e0ef7de5ce451427fafc9e2ea42f548f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm64 

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/pinctrl/freescale/pinctrl-imx8ulp.c: In function 'imx8ulp_pmx_gpio_set_direction':
>> drivers/pinctrl/freescale/pinctrl-imx8ulp.c:228:35: warning: 'pin_reg' is used uninitialized in this function [-Wuninitialized]
     228 |  reg = readl(ipctl->base + pin_reg->mux_reg);
         |                                   ^~


vim +/pin_reg +228 drivers/pinctrl/freescale/pinctrl-imx8ulp.c

   219	
   220	static int imx8ulp_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
   221						  struct pinctrl_gpio_range *range,
   222						  unsigned offset, bool input)
   223	{
   224		struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev);
   225		const struct imx_pin_reg *pin_reg;
   226		u32 reg;
   227	
 > 228		reg = readl(ipctl->base + pin_reg->mux_reg);
   229		if (input)
   230			reg = (reg & ~BM_OBE_ENABLED) | BM_IBE_ENABLED;
   231		else
   232			reg = (reg & ~BM_IBE_ENABLED) | BM_OBE_ENABLED;
   233		writel(reg, ipctl->base + pin_reg->mux_reg);
   234	
   235		return 0;
   236	}
   237	

---
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: 77928 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-26  2:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-23 20:00 [pinctrl:devel 6/11] drivers/pinctrl/freescale/pinctrl-imx8ulp.c:228:35: warning: 'pin_reg' is used uninitialized in this function kernel test robot
2021-07-26  2:57 ` Aisheng Dong

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