All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marc Zyngier <maz@kernel.org>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [arm-platforms:irq/generic_handle_domain_irq-core 22/28] kernel/irq/irqdomain.c:889: warning: expecting prototype for irq_resolve_mapping(). Prototype was for __irq_resolve_mapping() instead
Date: Sun, 6 Jun 2021 22:22:10 +0800	[thread overview]
Message-ID: <202106062205.JD9vm3lo-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/generic_handle_domain_irq-core
head:   dcb10b426d70fa739927103bec8ae544180fc073
commit: c24b101789faab2e325b6d48171524f5337a72cf [22/28] irqdomain: Introduce irq_resolve_mapping()
config: nios2-randconfig-r016-20210606 (attached as .config)
compiler: nios2-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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=c24b101789faab2e325b6d48171524f5337a72cf
        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/generic_handle_domain_irq-core
        git checkout c24b101789faab2e325b6d48171524f5337a72cf
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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

   kernel/irq/irqdomain.c:114: warning: Function parameter or member 'fwnode' not described in 'irq_domain_free_fwnode'
>> kernel/irq/irqdomain.c:889: warning: expecting prototype for irq_resolve_mapping(). Prototype was for __irq_resolve_mapping() instead
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'd' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'ctrlr' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'intspec' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'intsize' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'out_type' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'd' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'ctrlr' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'intspec' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'intsize' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'out_type' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'd' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'ctrlr' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'intspec' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'intsize' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'out_type' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'd' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'fwspec' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'out_type' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'd' not described in 'irq_domain_translate_twocell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'fwspec' not described in 'irq_domain_translate_twocell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_translate_twocell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'out_type' not described in 'irq_domain_translate_twocell'


vim +889 kernel/irq/irqdomain.c

cc79ca691c292e Grant Likely 2012-02-16  877  
cc79ca691c292e Grant Likely 2012-02-16  878  /**
c24b101789faab Marc Zyngier 2021-05-04  879   * irq_resolve_mapping() - Find a linux irq from a hw irq number.
68700650e71b6b Grant Likely 2012-02-14  880   * @domain: domain owning this hardware interrupt
68700650e71b6b Grant Likely 2012-02-14  881   * @hwirq: hardware irq number in that domain space
c24b101789faab Marc Zyngier 2021-05-04  882   * @irq: optional pointer to return the Linux irq if required
c24b101789faab Marc Zyngier 2021-05-04  883   *
c24b101789faab Marc Zyngier 2021-05-04  884   * Returns the interrupt descriptor.
cc79ca691c292e Grant Likely 2012-02-16  885   */
c24b101789faab Marc Zyngier 2021-05-04  886  struct irq_desc *__irq_resolve_mapping(struct irq_domain *domain,
c24b101789faab Marc Zyngier 2021-05-04  887  				       irq_hw_number_t hwirq,
c24b101789faab Marc Zyngier 2021-05-04  888  				       unsigned int *irq)
cc79ca691c292e Grant Likely 2012-02-16 @889  {
c24b101789faab Marc Zyngier 2021-05-04  890  	struct irq_desc *desc = NULL;
4c0946c47463de Grant Likely 2012-06-03  891  	struct irq_data *data;
cc79ca691c292e Grant Likely 2012-02-16  892  
a359f757965aaf Ingo Molnar  2021-03-22  893  	/* Look for default domain if necessary */
68700650e71b6b Grant Likely 2012-02-14  894  	if (domain == NULL)
68700650e71b6b Grant Likely 2012-02-14  895  		domain = irq_default_domain;
68700650e71b6b Grant Likely 2012-02-14  896  	if (domain == NULL)
c24b101789faab Marc Zyngier 2021-05-04  897  		return desc;
cc79ca691c292e Grant Likely 2012-02-16  898  
bf139be006048b Marc Zyngier 2018-09-10  899  	if (irq_domain_is_nomap(domain)) {
bf139be006048b Marc Zyngier 2018-09-10  900  		if (hwirq < domain->revmap_size) {
f8264e34965aaf Jiang Liu    2014-11-06  901  			data = irq_domain_get_irq_data(domain, hwirq);
f8264e34965aaf Jiang Liu    2014-11-06  902  			if (data && data->hwirq == hwirq)
c24b101789faab Marc Zyngier 2021-05-04  903  				desc = irq_data_to_desc(data);
4c0946c47463de Grant Likely 2012-06-03  904  		}
4c0946c47463de Grant Likely 2012-06-03  905  
c24b101789faab Marc Zyngier 2021-05-04  906  		return desc;
bf139be006048b Marc Zyngier 2018-09-10  907  	}
bf139be006048b Marc Zyngier 2018-09-10  908  
e0f5b5fa10f5bf Marc Zyngier 2021-04-05  909  	rcu_read_lock();
d3dcb436f61593 Grant Likely 2013-06-10  910  	/* Check if the hwirq is in the linear revmap. */
d3dcb436f61593 Grant Likely 2013-06-10  911  	if (hwirq < domain->revmap_size)
e0f5b5fa10f5bf Marc Zyngier 2021-04-05  912  		data = rcu_dereference(domain->revmap[hwirq]);
e0f5b5fa10f5bf Marc Zyngier 2021-04-05  913  	else
1aa0dd94ca07df Grant Likely 2013-06-08  914  		data = radix_tree_lookup(&domain->revmap_tree, hwirq);
c24b101789faab Marc Zyngier 2021-05-04  915  
c24b101789faab Marc Zyngier 2021-05-04  916  	if (likely(data)) {
c24b101789faab Marc Zyngier 2021-05-04  917  		desc = irq_data_to_desc(data);
c24b101789faab Marc Zyngier 2021-05-04  918  		if (irq)
c24b101789faab Marc Zyngier 2021-05-04  919  			*irq = data->irq;
c24b101789faab Marc Zyngier 2021-05-04  920  	}
c24b101789faab Marc Zyngier 2021-05-04  921  
cef5075c8c238f Grant Likely 2012-07-11  922  	rcu_read_unlock();
c24b101789faab Marc Zyngier 2021-05-04  923  	return desc;
cc79ca691c292e Grant Likely 2012-02-16  924  }
c24b101789faab Marc Zyngier 2021-05-04  925  EXPORT_SYMBOL_GPL(__irq_resolve_mapping);
cc79ca691c292e Grant Likely 2012-02-16  926  

:::::: The code at line 889 was first introduced by commit
:::::: cc79ca691c292e9fd44f589c7940b9654e22f2f6 irq_domain: Move irq_domain code from powerpc to kernel/irq

:::::: TO: Grant Likely <grant.likely@secretlab.ca>
:::::: CC: Grant Likely <grant.likely@secretlab.ca>

---
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: 34073 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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arm-platforms:irq/generic_handle_domain_irq-core 22/28] kernel/irq/irqdomain.c:889: warning: expecting prototype for irq_resolve_mapping(). Prototype was for __irq_resolve_mapping() instead
Date: Sun, 06 Jun 2021 22:22:10 +0800	[thread overview]
Message-ID: <202106062205.JD9vm3lo-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/generic_handle_domain_irq-core
head:   dcb10b426d70fa739927103bec8ae544180fc073
commit: c24b101789faab2e325b6d48171524f5337a72cf [22/28] irqdomain: Introduce irq_resolve_mapping()
config: nios2-randconfig-r016-20210606 (attached as .config)
compiler: nios2-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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=c24b101789faab2e325b6d48171524f5337a72cf
        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/generic_handle_domain_irq-core
        git checkout c24b101789faab2e325b6d48171524f5337a72cf
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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

   kernel/irq/irqdomain.c:114: warning: Function parameter or member 'fwnode' not described in 'irq_domain_free_fwnode'
>> kernel/irq/irqdomain.c:889: warning: expecting prototype for irq_resolve_mapping(). Prototype was for __irq_resolve_mapping() instead
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'd' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'ctrlr' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'intspec' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'intsize' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:936: warning: Function parameter or member 'out_type' not described in 'irq_domain_xlate_onecell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'd' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'ctrlr' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'intspec' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'intsize' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:955: warning: Function parameter or member 'out_type' not described in 'irq_domain_xlate_twocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'd' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'ctrlr' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'intspec' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'intsize' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:978: warning: Function parameter or member 'out_type' not described in 'irq_domain_xlate_onetwocell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'd' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'fwspec' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1003: warning: Function parameter or member 'out_type' not described in 'irq_domain_translate_onecell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'd' not described in 'irq_domain_translate_twocell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'fwspec' not described in 'irq_domain_translate_twocell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'out_hwirq' not described in 'irq_domain_translate_twocell'
   kernel/irq/irqdomain.c:1024: warning: Function parameter or member 'out_type' not described in 'irq_domain_translate_twocell'


vim +889 kernel/irq/irqdomain.c

cc79ca691c292e Grant Likely 2012-02-16  877  
cc79ca691c292e Grant Likely 2012-02-16  878  /**
c24b101789faab Marc Zyngier 2021-05-04  879   * irq_resolve_mapping() - Find a linux irq from a hw irq number.
68700650e71b6b Grant Likely 2012-02-14  880   * @domain: domain owning this hardware interrupt
68700650e71b6b Grant Likely 2012-02-14  881   * @hwirq: hardware irq number in that domain space
c24b101789faab Marc Zyngier 2021-05-04  882   * @irq: optional pointer to return the Linux irq if required
c24b101789faab Marc Zyngier 2021-05-04  883   *
c24b101789faab Marc Zyngier 2021-05-04  884   * Returns the interrupt descriptor.
cc79ca691c292e Grant Likely 2012-02-16  885   */
c24b101789faab Marc Zyngier 2021-05-04  886  struct irq_desc *__irq_resolve_mapping(struct irq_domain *domain,
c24b101789faab Marc Zyngier 2021-05-04  887  				       irq_hw_number_t hwirq,
c24b101789faab Marc Zyngier 2021-05-04  888  				       unsigned int *irq)
cc79ca691c292e Grant Likely 2012-02-16 @889  {
c24b101789faab Marc Zyngier 2021-05-04  890  	struct irq_desc *desc = NULL;
4c0946c47463de Grant Likely 2012-06-03  891  	struct irq_data *data;
cc79ca691c292e Grant Likely 2012-02-16  892  
a359f757965aaf Ingo Molnar  2021-03-22  893  	/* Look for default domain if necessary */
68700650e71b6b Grant Likely 2012-02-14  894  	if (domain == NULL)
68700650e71b6b Grant Likely 2012-02-14  895  		domain = irq_default_domain;
68700650e71b6b Grant Likely 2012-02-14  896  	if (domain == NULL)
c24b101789faab Marc Zyngier 2021-05-04  897  		return desc;
cc79ca691c292e Grant Likely 2012-02-16  898  
bf139be006048b Marc Zyngier 2018-09-10  899  	if (irq_domain_is_nomap(domain)) {
bf139be006048b Marc Zyngier 2018-09-10  900  		if (hwirq < domain->revmap_size) {
f8264e34965aaf Jiang Liu    2014-11-06  901  			data = irq_domain_get_irq_data(domain, hwirq);
f8264e34965aaf Jiang Liu    2014-11-06  902  			if (data && data->hwirq == hwirq)
c24b101789faab Marc Zyngier 2021-05-04  903  				desc = irq_data_to_desc(data);
4c0946c47463de Grant Likely 2012-06-03  904  		}
4c0946c47463de Grant Likely 2012-06-03  905  
c24b101789faab Marc Zyngier 2021-05-04  906  		return desc;
bf139be006048b Marc Zyngier 2018-09-10  907  	}
bf139be006048b Marc Zyngier 2018-09-10  908  
e0f5b5fa10f5bf Marc Zyngier 2021-04-05  909  	rcu_read_lock();
d3dcb436f61593 Grant Likely 2013-06-10  910  	/* Check if the hwirq is in the linear revmap. */
d3dcb436f61593 Grant Likely 2013-06-10  911  	if (hwirq < domain->revmap_size)
e0f5b5fa10f5bf Marc Zyngier 2021-04-05  912  		data = rcu_dereference(domain->revmap[hwirq]);
e0f5b5fa10f5bf Marc Zyngier 2021-04-05  913  	else
1aa0dd94ca07df Grant Likely 2013-06-08  914  		data = radix_tree_lookup(&domain->revmap_tree, hwirq);
c24b101789faab Marc Zyngier 2021-05-04  915  
c24b101789faab Marc Zyngier 2021-05-04  916  	if (likely(data)) {
c24b101789faab Marc Zyngier 2021-05-04  917  		desc = irq_data_to_desc(data);
c24b101789faab Marc Zyngier 2021-05-04  918  		if (irq)
c24b101789faab Marc Zyngier 2021-05-04  919  			*irq = data->irq;
c24b101789faab Marc Zyngier 2021-05-04  920  	}
c24b101789faab Marc Zyngier 2021-05-04  921  
cef5075c8c238f Grant Likely 2012-07-11  922  	rcu_read_unlock();
c24b101789faab Marc Zyngier 2021-05-04  923  	return desc;
cc79ca691c292e Grant Likely 2012-02-16  924  }
c24b101789faab Marc Zyngier 2021-05-04  925  EXPORT_SYMBOL_GPL(__irq_resolve_mapping);
cc79ca691c292e Grant Likely 2012-02-16  926  

:::::: The code at line 889 was first introduced by commit
:::::: cc79ca691c292e9fd44f589c7940b9654e22f2f6 irq_domain: Move irq_domain code from powerpc to kernel/irq

:::::: TO: Grant Likely <grant.likely@secretlab.ca>
:::::: CC: Grant Likely <grant.likely@secretlab.ca>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34073 bytes --]

             reply	other threads:[~2021-06-06 14:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-06 14:22 kernel test robot [this message]
2021-06-06 14:22 ` [arm-platforms:irq/generic_handle_domain_irq-core 22/28] kernel/irq/irqdomain.c:889: warning: expecting prototype for irq_resolve_mapping(). Prototype was for __irq_resolve_mapping() instead kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-06-06 14:22 kernel test robot
2021-06-06 14:22 ` kernel test robot

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=202106062205.JD9vm3lo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.