Re: [PATCH 1/1] device property: Add fwnode_irq_get_by_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Puranjay,

I love your patch! Yet something to improve:

[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on v5.15 next-20211106]
[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/Puranjay-Mohan/device-property-Adding-fwnode_irq_get_by_name/20211107-014150
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 27e0bcd02990f7291adb0f111e300f06c495d509
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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/b3dc64f4a6e40482f1d4313e5cb664a60cf5eb13
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Puranjay-Mohan/device-property-Adding-fwnode_irq_get_by_name/20211107-014150
        git checkout b3dc64f4a6e40482f1d4313e5cb664a60cf5eb13
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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

All errors (new ones prefixed by >>):

>> drivers/base/property.c:1032:5: error: no previous prototype for 'fwnode_irq_get_by_name' [-Werror=missing-prototypes]
    1032 | int fwnode_irq_get_by_name(const struct fwnode_handle *fwnode, const char *name)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/fwnode_irq_get_by_name +1032 drivers/base/property.c

  1023	
  1024	/**
  1025	 * fwnode_irq_get_by_name - Get IRQ directly from its name.
  1026	 * @fwnode:    Pointer to the firmware node
  1027	 * @name:      IRQ Name
  1028	 *
  1029	 * Returns Linux IRQ number on success. Other values are determined
  1030	 * accordingly to acpi_/of_ irq_get() operation.
  1031	 */
> 1032	int fwnode_irq_get_by_name(const struct fwnode_handle *fwnode, const char *name)
  1033	{
  1034		int index;
  1035	
  1036		if (unlikely(!name))
  1037			return -EINVAL;
  1038	
  1039		index = of_property_match_string(to_of_node(fwnode), "interrupt-names",
  1040						 name);
  1041		if (index < 0)
  1042			return index;
  1043	
  1044		return fwnode_irq_get(fwnode, index);
  1045	}
  1046	EXPORT_SYMBOL(fwnode_irq_get_by_name);
  1047	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux