From: kernel test robot <lkp@intel.com>
To: Anson Huang <Anson.Huang@nxp.com>
Cc: kbuild-all@lists.01.org, linux-gpio@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Jacky Bai <ping.bai@nxp.com>, Dong Aisheng <aisheng.dong@nxp.com>
Subject: [pinctrl:devel 6/11] drivers/pinctrl/freescale/pinctrl-imx8ulp.c:228:35: warning: 'pin_reg' is used uninitialized in this function
Date: Sat, 24 Jul 2021 04:00:45 +0800 [thread overview]
Message-ID: <202107240440.z3DVdOv6-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2021-07-23 20:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 20:00 kernel test robot [this message]
2021-07-26 2:57 ` [pinctrl:devel 6/11] drivers/pinctrl/freescale/pinctrl-imx8ulp.c:228:35: warning: 'pin_reg' is used uninitialized in this function Aisheng Dong
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=202107240440.z3DVdOv6-lkp@intel.com \
--to=lkp@intel.com \
--cc=Anson.Huang@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=kbuild-all@lists.01.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=ping.bai@nxp.com \
/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).