Re: [iio:testing 72/75] drivers/iio/industrialio-core.c:168:16: error: redefinition of 'iio_get_debugfs_dentry'

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

 



On Tue, 2020-06-30 at 06:57 +0800, kernel test robot wrote:
> [External]
> 
> tree:   
> https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git__;!!A3Ni8CS0y2Y!sYkbKlFXTv7ToFPc6J4XbUqA7ipgAi_Nt1EUFQwp15HjyEiTNUh3-Ms9uF7gvGp5bbyYUQ$
>   testing
> head:   fd1e8bb8eb47fe6c5c8fc29b83b595b8cfbf3dc7
> commit: d634f6b9cc37b15b7b8a457abb37cd7872e5a897 [72/75] iio: core: move
> debugfs data on the private iio dev info
> config: sparc64-randconfig-c021-20200629 (attached as .config)
> compiler: sparc64-linux-gcc (GCC) 9.3.0
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> 
> All errors (new ones prefixed by >>):
> 

Oh right.
This can happen if CONFIG_DEBUG_FS is undefined and CONFIG_IIO is defined.
Will do a V2 for this.


> > > drivers/iio/industrialio-core.c:168:16: error: redefinition of
> > > 'iio_get_debugfs_dentry'
>      168 | struct dentry *iio_get_debugfs_dentry(struct iio_dev
> *indio_dev)
>          |                ^~~~~~~~~~~~~~~~~~~~~~
>    In file included from drivers/iio/industrialio-core.c:27:
>    include/linux/iio/iio.h:724:30: note: previous definition of
> 'iio_get_debugfs_dentry' was here
>      724 | static inline struct dentry *iio_get_debugfs_dentry(struct
> iio_dev *indio_dev)
>          |                              ^~~~~~~~~~~~~~~~~~~~~~
>    drivers/iio/industrialio-core.c: In function 'iio_get_debugfs_dentry':
> > > drivers/iio/industrialio-core.c:171:23: error: 'struct
> > > iio_dev_opaque' has no member named 'debugfs_dentry'
>      171 |  return iio_dev_opaque->debugfs_dentry;
>          |                       ^~
>    drivers/iio/industrialio-core.c:172:1: warning: control reaches end of
> non-void function [-Wreturn-type]
>      172 | }
>          | ^
> 
> vim +/iio_get_debugfs_dentry +168 drivers/iio/industrialio-core.c
> 
>    167	
>  > 168	struct dentry *iio_get_debugfs_dentry(struct iio_dev
> *indio_dev)
>    169	{
>    170		struct iio_dev_opaque *iio_dev_opaque =
> to_iio_dev_opaque(indio_dev);
>  > 171		return iio_dev_opaque->debugfs_dentry;
>    172	}
>    173	EXPORT_SYMBOL_GPL(iio_get_debugfs_dentry);
>    174	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://urldefense.com/v3/__https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org__;!!A3Ni8CS0y2Y!sYkbKlFXTv7ToFPc6J4XbUqA7ipgAi_Nt1EUFQwp15HjyEiTNUh3-Ms9uF7gvGox2MgJEw$ 




[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