[linux-next:master 4356/4407] drivers/usb/cdns3/cdns3-plat.c:178: warning: expecting prototype for cdns3_remove(). Prototype was for cdns3_plat_remove() instead

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b4bb878f3eb3e604ebfe83bbc17eb7af8d99cbf4
commit: d350e60c2200e04bc2f4a1c5143bedbe0c9e0367 [4356/4407] Merge remote-tracking branch 'usb-chipidea-next/for-usb-next'
config: powerpc-randconfig-r021-20210119 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 22b68440e1647e16b5ee24b924986207173c02d1)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d350e60c2200e04bc2f4a1c5143bedbe0c9e0367
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout d350e60c2200e04bc2f4a1c5143bedbe0c9e0367
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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

All warnings (new ones prefixed by >>):

>> drivers/usb/cdns3/cdns3-plat.c:178: warning: expecting prototype for cdns3_remove(). Prototype was for cdns3_plat_remove() instead
--
>> drivers/usb/cdns3/core.c:342: warning: expecting prototype for cdsn3_role_get(). Prototype was for cdns_role_get() instead
>> drivers/usb/cdns3/core.c:428: warning: expecting prototype for cdns_probe(). Prototype was for cdns_init() instead
--
>> drivers/usb/cdns3/cdns3-ep0.c:690: warning: expecting prototype for cdns3_gadget_ep0_queue Transfer data on endpoint zero(). Prototype was for cdns3_gadget_ep0_queue() instead
>> drivers/usb/cdns3/cdns3-ep0.c:781: warning: expecting prototype for cdns3_gadget_ep_set_wedge Set wedge on selected endpoint(). Prototype was for cdns3_gadget_ep_set_wedge() instead
>> drivers/usb/cdns3/cdns3-ep0.c:876: warning: expecting prototype for cdns3_init_ep0 Initializes software endpoint 0 of gadget(). Prototype was for cdns3_init_ep0() instead
--
>> drivers/usb/cdns3/cdns3-gadget.c:162: warning: expecting prototype for select_ep(). Prototype was for cdns3_select_ep() instead
>> drivers/usb/cdns3/cdns3-gadget.c:509: warning: expecting prototype for cdns3_wa2_descmiss_copy_data copy data from internal requests to(). Prototype was for cdns3_wa2_descmiss_copy_data() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2029: warning: expecting prototype for cdns3_ep_config Configure hardware endpoint(). Prototype was for cdns3_ep_config() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2233: warning: expecting prototype for cdns3_gadget_ep_alloc_request Allocates request(). Prototype was for cdns3_gadget_ep_alloc_request() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2254: warning: expecting prototype for cdns3_gadget_ep_free_request Free memory occupied by request(). Prototype was for cdns3_gadget_ep_free_request() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2273: warning: expecting prototype for cdns3_gadget_ep_enable Enable endpoint(). Prototype was for cdns3_gadget_ep_enable() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2406: warning: expecting prototype for cdns3_gadget_ep_disable Disable endpoint(). Prototype was for cdns3_gadget_ep_disable() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2500: warning: expecting prototype for cdns3_gadget_ep_queue Transfer data on endpoint(). Prototype was for __cdns3_gadget_ep_queue() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2598: warning: expecting prototype for cdns3_gadget_ep_dequeue Remove request from transfer queue(). Prototype was for cdns3_gadget_ep_dequeue() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2662: warning: expecting prototype for __cdns3_gadget_ep_set_halt Sets stall on selected endpoint(). Prototype was for __cdns3_gadget_ep_set_halt() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2683: warning: expecting prototype for __cdns3_gadget_ep_clear_halt Clears stall on selected endpoint(). Prototype was for __cdns3_gadget_ep_clear_halt() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2730: warning: expecting prototype for clears stall on selected endpoint(). Prototype was for cdns3_gadget_ep_set_halt() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2775: warning: expecting prototype for cdns3_gadget_get_frame Returns number of actual ITP frame(). Prototype was for cdns3_gadget_get_frame() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2886: warning: expecting prototype for cdns3_gadget_udc_start Gadget start(). Prototype was for cdns3_gadget_udc_start() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2930: warning: expecting prototype for cdns3_gadget_udc_stop Stops gadget(). Prototype was for cdns3_gadget_udc_stop() instead
>> drivers/usb/cdns3/cdns3-gadget.c:2993: warning: expecting prototype for cdns3_init_eps Initializes software endpoints of gadget(). Prototype was for cdns3_init_eps() instead


vim +178 drivers/usb/cdns3/cdns3-plat.c

f738957277bad824 Pawel Laszczak 2020-12-07  170  
f738957277bad824 Pawel Laszczak 2020-12-07  171  /**
f738957277bad824 Pawel Laszczak 2020-12-07  172   * cdns3_remove - unbind drd driver and clean up
f738957277bad824 Pawel Laszczak 2020-12-07  173   * @pdev: Pointer to Linux platform device
f738957277bad824 Pawel Laszczak 2020-12-07  174   *
f738957277bad824 Pawel Laszczak 2020-12-07  175   * Returns 0 on success otherwise negative errno
f738957277bad824 Pawel Laszczak 2020-12-07  176   */
f738957277bad824 Pawel Laszczak 2020-12-07  177  static int cdns3_plat_remove(struct platform_device *pdev)
f738957277bad824 Pawel Laszczak 2020-12-07 @178  {
0b490046d8d7c035 Pawel Laszczak 2020-12-07  179  	struct cdns *cdns = platform_get_drvdata(pdev);
f738957277bad824 Pawel Laszczak 2020-12-07  180  	struct device *dev = cdns->dev;
f738957277bad824 Pawel Laszczak 2020-12-07  181  
f738957277bad824 Pawel Laszczak 2020-12-07  182  	pm_runtime_get_sync(dev);
f738957277bad824 Pawel Laszczak 2020-12-07  183  	pm_runtime_disable(dev);
f738957277bad824 Pawel Laszczak 2020-12-07  184  	pm_runtime_put_noidle(dev);
0b490046d8d7c035 Pawel Laszczak 2020-12-07  185  	cdns_remove(cdns);
f738957277bad824 Pawel Laszczak 2020-12-07  186  	set_phy_power_off(cdns);
f738957277bad824 Pawel Laszczak 2020-12-07  187  	phy_exit(cdns->usb2_phy);
f738957277bad824 Pawel Laszczak 2020-12-07  188  	phy_exit(cdns->usb3_phy);
f738957277bad824 Pawel Laszczak 2020-12-07  189  	return 0;
f738957277bad824 Pawel Laszczak 2020-12-07  190  }
f738957277bad824 Pawel Laszczak 2020-12-07  191  

:::::: The code at line 178 was first introduced by commit
:::::: f738957277bad824b422399a214b630d7832f884 usb: cdns3: Split core.c into cdns3-plat and core.c file

:::::: TO: Pawel Laszczak <pawell@xxxxxxxxxxx>
:::::: CC: Peter Chen <peter.chen@xxxxxxx>

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux