Re: [PATCH v5 3/6] reset: hide reset control arrays behind struct reset_control

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

 



Hi Philipp,

[auto build test WARNING on pza/reset/next]
[also build test WARNING on v4.12-rc3 next-20170601]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Philipp-Zabel/reset-APIs-to-manage-a-list-of-resets/20170602-062536
base:   git://git.pengutronix.de/git/pza/linux reset/next
config: x86_64-randconfig-i0-201722 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from drivers/i2c/busses/i2c-designware-platdrv.c:41:0:
   include/linux/reset.h: In function 'devm_reset_control_array_get_exclusive':
>> include/linux/reset.h:406:2: warning: return from incompatible pointer type
     return devm_reset_control_array_get(dev, false, false);
     ^
   include/linux/reset.h: In function 'devm_reset_control_array_get_shared':
   include/linux/reset.h:412:2: warning: return from incompatible pointer type
     return devm_reset_control_array_get(dev, true, false);
     ^
   include/linux/reset.h: In function 'devm_reset_control_array_get_optional_exclusive':
   include/linux/reset.h:418:2: warning: return from incompatible pointer type
     return devm_reset_control_array_get(dev, false, true);
     ^
   include/linux/reset.h: In function 'devm_reset_control_array_get_optional_shared':
   include/linux/reset.h:424:2: warning: return from incompatible pointer type
     return devm_reset_control_array_get(dev, true, true);
     ^
   include/linux/reset.h: In function 'of_reset_control_array_get_exclusive':
   include/linux/reset.h:430:2: warning: return from incompatible pointer type
     return of_reset_control_array_get(node, false, false);
     ^
   include/linux/reset.h: In function 'of_reset_control_array_get_shared':
   include/linux/reset.h:436:2: warning: return from incompatible pointer type
     return of_reset_control_array_get(node, true, false);
     ^
   include/linux/reset.h: In function 'of_reset_control_array_get_optional_exclusive':
   include/linux/reset.h:442:2: warning: return from incompatible pointer type
     return of_reset_control_array_get(node, false, true);
     ^
   include/linux/reset.h: In function 'of_reset_control_array_get_optional_shared':
   include/linux/reset.h:448:2: warning: return from incompatible pointer type
     return of_reset_control_array_get(node, true, true);
     ^

vim +406 include/linux/reset.h

a53e35db Lee Jones     2016-06-06  390  	return devm_reset_control_get_optional_exclusive(dev, id);
a53e35db Lee Jones     2016-06-06  391  
a53e35db Lee Jones     2016-06-06  392  }
a53e35db Lee Jones     2016-06-06  393  
a53e35db Lee Jones     2016-06-06  394  static inline struct reset_control *devm_reset_control_get_by_index(
a53e35db Lee Jones     2016-06-06  395  				struct device *dev, int index)
a53e35db Lee Jones     2016-06-06  396  {
a53e35db Lee Jones     2016-06-06  397  	return devm_reset_control_get_exclusive_by_index(dev, index);
a53e35db Lee Jones     2016-06-06  398  }
1b1b64c5 Vivek Gautam  2017-06-01  399  
1b1b64c5 Vivek Gautam  2017-06-01  400  /*
1b1b64c5 Vivek Gautam  2017-06-01  401   * APIs to manage a list of reset controllers
1b1b64c5 Vivek Gautam  2017-06-01  402   */
1abcb861 Philipp Zabel 2017-06-01  403  static inline struct reset_control *
1b1b64c5 Vivek Gautam  2017-06-01  404  devm_reset_control_array_get_exclusive(struct device *dev)
1b1b64c5 Vivek Gautam  2017-06-01  405  {
1b1b64c5 Vivek Gautam  2017-06-01 @406  	return devm_reset_control_array_get(dev, false, false);
1b1b64c5 Vivek Gautam  2017-06-01  407  }
1b1b64c5 Vivek Gautam  2017-06-01  408  
1abcb861 Philipp Zabel 2017-06-01  409  static inline struct reset_control *
1b1b64c5 Vivek Gautam  2017-06-01  410  devm_reset_control_array_get_shared(struct device *dev)
1b1b64c5 Vivek Gautam  2017-06-01  411  {
1b1b64c5 Vivek Gautam  2017-06-01  412  	return devm_reset_control_array_get(dev, true, false);
1b1b64c5 Vivek Gautam  2017-06-01  413  }
1b1b64c5 Vivek Gautam  2017-06-01  414  

:::::: The code at line 406 was first introduced by commit
:::::: 1b1b64c55c5f63e050938df44e1ccee33cfeee94 reset: Add APIs to manage array of resets

:::::: TO: Vivek Gautam <vivek.gautam@xxxxxxxxxxxxxx>
:::::: CC: 0day robot <fengguang.wu@xxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux