linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Russ Weight <russell.h.weight@intel.com>,
	mdf@kernel.org, linux-fpga@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, trix@redhat.com, lgoncalv@redhat.com,
	yilun.xu@intel.com, hao.wu@intel.com, matthew.gerlach@intel.com,
	richard.gong@intel.com, Russ Weight <russell.h.weight@intel.com>
Subject: Re: [PATCH v1 3/3] fpga: region: Use standard dev_release for class driver
Date: Sun, 23 May 2021 07:31:34 +0800	[thread overview]
Message-ID: <202105230754.bpf9v405-lkp@intel.com> (raw)
In-Reply-To: <20210521010359.635717-4-russell.h.weight@intel.com>

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

Hi Russ,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.13-rc2 next-20210521]
[cannot apply to xlnx/master]
[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/Russ-Weight/fpga-Use-standard-class-dev_release-function/20210522-205631
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dd860052c99b1e088352bdd4fb7aef46f8d2ef47
config: arm64-randconfig-p001-20210522 (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/2bd6e6762866ff1b80bea0d0d8377bcf9d2253ce
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Russ-Weight/fpga-Use-standard-class-dev_release-function/20210522-205631
        git checkout 2bd6e6762866ff1b80bea0d0d8377bcf9d2253ce
        # 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/fpga/fpga-region.c:193: warning: expecting prototype for fpga_region_create(). Prototype was for fpga_region_register() instead


vim +193 drivers/fpga/fpga-region.c

41a8b2c56470b7 Wu Hao      2018-06-30  181  
9f368977b4589e Alan Tull   2018-05-16  182  /**
9f368977b4589e Alan Tull   2018-05-16  183   * fpga_region_create - alloc and init a struct fpga_region
9f368977b4589e Alan Tull   2018-05-16  184   * @dev: device parent
9f368977b4589e Alan Tull   2018-05-16  185   * @mgr: manager that programs this region
9f368977b4589e Alan Tull   2018-05-16  186   * @get_bridges: optional function to get bridges to a list
9f368977b4589e Alan Tull   2018-05-16  187   *
2bd6e6762866ff Russ Weight 2021-05-20  188   * Returns a struct fpga_region pointer on success, or ERR_PTR() on error.
9f368977b4589e Alan Tull   2018-05-16  189   */
2bd6e6762866ff Russ Weight 2021-05-20  190  struct fpga_region *
2bd6e6762866ff Russ Weight 2021-05-20  191  fpga_region_register(struct device *dev, struct fpga_manager *mgr,
9f368977b4589e Alan Tull   2018-05-16  192  		     int (*get_bridges)(struct fpga_region *))
0fa20cdfcc1f68 Alan Tull   2016-11-01 @193  {
9f368977b4589e Alan Tull   2018-05-16  194  	struct fpga_region *region;
0fa20cdfcc1f68 Alan Tull   2016-11-01  195  	int id, ret = 0;
0fa20cdfcc1f68 Alan Tull   2016-11-01  196  
9f368977b4589e Alan Tull   2018-05-16  197  	region = kzalloc(sizeof(*region), GFP_KERNEL);
9f368977b4589e Alan Tull   2018-05-16  198  	if (!region)
2bd6e6762866ff Russ Weight 2021-05-20  199  		return ERR_PTR(-ENOMEM);
9f368977b4589e Alan Tull   2018-05-16  200  
0fa20cdfcc1f68 Alan Tull   2016-11-01  201  	id = ida_simple_get(&fpga_region_ida, 0, 0, GFP_KERNEL);
52a3a7ccce07e7 Alan Tull   2017-11-15  202  	if (id < 0)
9f368977b4589e Alan Tull   2018-05-16  203  		goto err_free;
0fa20cdfcc1f68 Alan Tull   2016-11-01  204  
9f368977b4589e Alan Tull   2018-05-16  205  	region->mgr = mgr;
9f368977b4589e Alan Tull   2018-05-16  206  	region->get_bridges = get_bridges;
0fa20cdfcc1f68 Alan Tull   2016-11-01  207  	mutex_init(&region->mutex);
0fa20cdfcc1f68 Alan Tull   2016-11-01  208  	INIT_LIST_HEAD(&region->bridge_list);
9f368977b4589e Alan Tull   2018-05-16  209  
0fa20cdfcc1f68 Alan Tull   2016-11-01  210  	region->dev.class = fpga_region_class;
0fa20cdfcc1f68 Alan Tull   2016-11-01  211  	region->dev.parent = dev;
52a3a7ccce07e7 Alan Tull   2017-11-15  212  	region->dev.of_node = dev->of_node;
0fa20cdfcc1f68 Alan Tull   2016-11-01  213  	region->dev.id = id;
0fa20cdfcc1f68 Alan Tull   2016-11-01  214  
0fa20cdfcc1f68 Alan Tull   2016-11-01  215  	ret = dev_set_name(&region->dev, "region%d", id);
0fa20cdfcc1f68 Alan Tull   2016-11-01  216  	if (ret)
0fa20cdfcc1f68 Alan Tull   2016-11-01  217  		goto err_remove;
0fa20cdfcc1f68 Alan Tull   2016-11-01  218  
2bd6e6762866ff Russ Weight 2021-05-20  219  	ret = device_register(&region->dev);
2bd6e6762866ff Russ Weight 2021-05-20  220  	if (ret) {
2bd6e6762866ff Russ Weight 2021-05-20  221  		put_device(&region->dev);
2bd6e6762866ff Russ Weight 2021-05-20  222  		return ERR_PTR(ret);
2bd6e6762866ff Russ Weight 2021-05-20  223  	}
2bd6e6762866ff Russ Weight 2021-05-20  224  
9f368977b4589e Alan Tull   2018-05-16  225  	return region;
52a3a7ccce07e7 Alan Tull   2017-11-15  226  
52a3a7ccce07e7 Alan Tull   2017-11-15  227  err_remove:
52a3a7ccce07e7 Alan Tull   2017-11-15  228  	ida_simple_remove(&fpga_region_ida, id);
9f368977b4589e Alan Tull   2018-05-16  229  err_free:
9f368977b4589e Alan Tull   2018-05-16  230  	kfree(region);
9f368977b4589e Alan Tull   2018-05-16  231  
2bd6e6762866ff Russ Weight 2021-05-20  232  	return ERR_PTR(ret);
52a3a7ccce07e7 Alan Tull   2017-11-15  233  }
52a3a7ccce07e7 Alan Tull   2017-11-15  234  EXPORT_SYMBOL_GPL(fpga_region_register);
52a3a7ccce07e7 Alan Tull   2017-11-15  235  

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

      parent reply	other threads:[~2021-05-22 23:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21  1:03 [PATCH v1 0/3] fpga: Use standard class dev_release function Russ Weight
2021-05-21  1:03 ` [PATCH v1 1/3] fpga: mgr: Use standard dev_release for class driver Russ Weight
2021-05-21 15:27   ` Xu Yilun
2021-05-21 16:30     ` Moritz Fischer
2021-05-21 16:33       ` Russ Weight
2021-05-22 20:35   ` kernel test robot
2021-05-24  0:55   ` kernel test robot
2021-05-21  1:03 ` [PATCH v1 2/3] fpga: bridge: " Russ Weight
2021-05-21  1:03 ` [PATCH v1 3/3] fpga: region: " Russ Weight
2021-05-22 23:30   ` kernel test robot
2021-05-22 23:31   ` 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=202105230754.bpf9v405-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hao.wu@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=lgoncalv@redhat.com \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew.gerlach@intel.com \
    --cc=mdf@kernel.org \
    --cc=richard.gong@intel.com \
    --cc=russell.h.weight@intel.com \
    --cc=trix@redhat.com \
    --cc=yilun.xu@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).