linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: lakshmi.sowjanya.d@intel.com, linus.walleij@linaro.org
Cc: kbuild-all@lists.01.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org, andriy.shevchenko@linux.intel.com,
	lakshmi.bai.raja.subramanian@intel.com, tamal.saha@intel.com,
	lakshmi.sowjanya.d@intel.com
Subject: Re: [PATCH v2 2/2] pinctrl: Add Intel Keem Bay pinctrl driver
Date: Fri, 9 Jul 2021 21:55:57 +0800	[thread overview]
Message-ID: <202107092152.3YsBMPkX-lkp@intel.com> (raw)
In-Reply-To: <20210709063129.11651-3-lakshmi.sowjanya.d@intel.com>

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

Hi,

I love your patch! Perhaps something to improve:

[auto build test WARNING on pinctrl/devel]
[also build test WARNING on linux/master linus/master v5.13 next-20210709]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/lakshmi-sowjanya-d-intel-com/Add-pinctrl-support-for-Intel-Keem-Bay-SoC/20210709-143204
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.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/0day-ci/linux/commit/42983046a7b0389b36687ab5ab77d97749127fc7
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review lakshmi-sowjanya-d-intel-com/Add-pinctrl-support-for-Intel-Keem-Bay-SoC/20210709-143204
        git checkout 42983046a7b0389b36687ab5ab77d97749127fc7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.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/pinctrl-keembay.c: In function 'keembay_gpio_irq_handler':
>> drivers/pinctrl/pinctrl-keembay.c:1244:20: warning: variable 'trig' set but not used [-Wunused-but-set-variable]
    1244 |  unsigned int src, trig, pin, val;
         |                    ^~~~


vim +/trig +1244 drivers/pinctrl/pinctrl-keembay.c

  1238	
  1239	static void keembay_gpio_irq_handler(struct irq_desc *desc)
  1240	{
  1241		struct gpio_chip *gc = irq_desc_get_handler_data(desc);
  1242		unsigned int kmb_irq = irq_desc_get_irq(desc);
  1243		unsigned long reg, clump = 0, bit = 0;
> 1244		unsigned int src, trig, pin, val;
  1245		struct irq_chip *parent_chip;
  1246		struct keembay_pinctrl *kpc;
  1247	
  1248		/* Identify GPIO interrupt number from GIC interrupt number */
  1249		for (src = 0; src < KEEMBAY_GPIO_NUM_IRQ; src++) {
  1250			if (kmb_irq == gc->irq.parents[src])
  1251				break;
  1252		}
  1253	
  1254		if (src == KEEMBAY_GPIO_NUM_IRQ)
  1255			return;
  1256	
  1257		parent_chip = irq_desc_get_chip(desc);
  1258		kpc = gpiochip_get_data(gc);
  1259	
  1260		chained_irq_enter(parent_chip, desc);
  1261		reg = keembay_read_reg(kpc->base1 + KEEMBAY_GPIO_INT_CFG, src);
  1262		trig = kpc->irq[src].trigger;
  1263	
  1264		/*
  1265		 * Each Interrupt line can be shared by up to 4 GPIO pins. Enable bit
  1266		 * and input values were checked to identify the source of the
  1267		 * Interrupt. The checked enable bit positions are 7, 15, 23 and 31.
  1268		 */
  1269		for_each_set_clump8(bit, clump, &reg, BITS_PER_TYPE(typeof(reg))) {
  1270			pin = clump & ~KEEMBAY_GPIO_IRQ_ENABLE;
  1271			val = keembay_read_pin(kpc->base0 + KEEMBAY_GPIO_DATA_IN, pin);
  1272			kmb_irq = irq_linear_revmap(gc->irq.domain, pin);
  1273	
  1274			/* Checks if the interrupt is enabled */
  1275			if (val && (clump & KEEMBAY_GPIO_IRQ_ENABLE))
  1276				generic_handle_irq(kmb_irq);
  1277		}
  1278		chained_irq_exit(parent_chip, desc);
  1279	}
  1280	

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

      reply	other threads:[~2021-07-09 13:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09  6:31 [PATCH v2 0/2] Add pinctrl support for Intel Keem Bay SoC lakshmi.sowjanya.d
2021-07-09  6:31 ` [PATCH v2 1/2] dt-bindings: pinctrl: Add bindings for Intel Keembay pinctrl driver lakshmi.sowjanya.d
2021-07-09  6:31 ` [PATCH v2 2/2] pinctrl: Add Intel Keem Bay " lakshmi.sowjanya.d
2021-07-09 13:55   ` kernel test robot [this message]

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=202107092152.3YsBMPkX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=lakshmi.bai.raja.subramanian@intel.com \
    --cc=lakshmi.sowjanya.d@intel.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tamal.saha@intel.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).