linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Samuel Holland <samuel@sholland.org>
Cc: Marc Zyngier <maz@kernel.org>,
	kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [arm-platforms:irq/irqchip-next 6/15] drivers/irqchip/irq-sun6i-r.c:215:79: sparse: sparse: Using plain integer as NULL pointer
Date: Tue, 16 Feb 2021 02:38:04 +0800	[thread overview]
Message-ID: <202102160259.No84R9sc-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irqchip-next
head:   a890caeb2ba40ca183969230e204ab144f258357
commit: 4e34614636b31747b190488240a95647c227021f [6/15] irqchip/sun6i-r: Use a stacked irqchip driver
config: arm64-randconfig-s032-20210215 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-215-g0fb77bb6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=4e34614636b31747b190488240a95647c227021f
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms irq/irqchip-next
        git checkout 4e34614636b31747b190488240a95647c227021f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64 

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


"sparse warnings: (new ones prefixed by >>)"
>> drivers/irqchip/irq-sun6i-r.c:215:79: sparse: sparse: Using plain integer as NULL pointer

vim +215 drivers/irqchip/irq-sun6i-r.c

   184	
   185	static int sun6i_r_intc_domain_alloc(struct irq_domain *domain,
   186					     unsigned int virq,
   187					     unsigned int nr_irqs, void *arg)
   188	{
   189		struct irq_fwspec *fwspec = arg;
   190		struct irq_fwspec gic_fwspec;
   191		unsigned long hwirq;
   192		unsigned int type;
   193		int i, ret;
   194	
   195		ret = sun6i_r_intc_domain_translate(domain, fwspec, &hwirq, &type);
   196		if (ret)
   197			return ret;
   198		if (hwirq + nr_irqs > SUN6I_NR_MUX_BITS)
   199			return -EINVAL;
   200	
   201		/* Construct a GIC-compatible fwspec from this fwspec. */
   202		gic_fwspec = (struct irq_fwspec) {
   203			.fwnode      = domain->parent->fwnode,
   204			.param_count = 3,
   205			.param       = { GIC_SPI, hwirq, type },
   206		};
   207	
   208		ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &gic_fwspec);
   209		if (ret)
   210			return ret;
   211	
   212		for (i = 0; i < nr_irqs; ++i, ++hwirq, ++virq) {
   213			if (hwirq == nmi_hwirq) {
   214				irq_domain_set_hwirq_and_chip(domain, virq, hwirq,
 > 215							      &sun6i_r_intc_nmi_chip, 0);
   216				irq_set_handler(virq, handle_fasteoi_ack_irq);
   217			} else {
   218				/* Only the NMI is currently supported. */
   219				return -EINVAL;
   220			}
   221		}
   222	
   223		return 0;
   224	}
   225	

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

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

                 reply	other threads:[~2021-02-15 18:40 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=202102160259.No84R9sc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.org \
    --cc=samuel@sholland.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;
as well as URLs for NNTP newsgroup(s).