oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [plbossart-sound:sdw/parse-functions 8/12] sound/soc/sdca/sdca_functions.c:14:5: error: redefinition of 'sdca_alloc'
@ 2024-04-18 15:23 kernel test robot
  2024-04-30  0:21 ` Pierre-Louis Bossart
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-04-18 15:23 UTC (permalink / raw
  To: Pierre-Louis Bossart; +Cc: oe-kbuild-all

tree:   https://github.com/plbossart/sound sdw/parse-functions
head:   999b877354e492b6b1c8206962dcf1fd21c09f15
commit: e02a796a482bc2bafe64571d8fdd06fd5c0008dd [8/12] ASoC: sdca: add initial module
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20240418/202404182342.HH2xrWXD-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240418/202404182342.HH2xrWXD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404182342.HH2xrWXD-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/sdca/sdca_functions.c:14:5: error: redefinition of 'sdca_alloc'
      14 | int sdca_alloc(void **context,
         |     ^~~~~~~~~~
   In file included from sound/soc/sdca/sdca_functions.c:12:
   include/sound/sdca.h:23:19: note: previous definition of 'sdca_alloc' with type 'int(void **, struct device *, struct sdw_slave *)'
      23 | static inline int sdca_alloc(void **context,
         |                   ^~~~~~~~~~


vim +/sdca_alloc +14 sound/soc/sdca/sdca_functions.c

    13	
  > 14	int sdca_alloc(void **context,
    15		       struct device *parent,
    16		       struct sdw_slave *slave)
    17	{
    18		struct sdca_data *sdca;
    19	
    20		sdca = devm_kzalloc(parent, sizeof(*sdca), GFP_KERNEL);
    21		if (!sdca)
    22			return -ENOMEM;
    23	
    24		sdca->parent = parent;
    25		sdca->slave = slave;
    26	
    27		*context = sdca;
    28	
    29		return 0;
    30	}
    31	EXPORT_SYMBOL_NS(sdca_alloc, SND_SOC_SDCA);
    32	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [plbossart-sound:sdw/parse-functions 8/12] sound/soc/sdca/sdca_functions.c:14:5: error: redefinition of 'sdca_alloc'
  2024-04-18 15:23 [plbossart-sound:sdw/parse-functions 8/12] sound/soc/sdca/sdca_functions.c:14:5: error: redefinition of 'sdca_alloc' kernel test robot
@ 2024-04-30  0:21 ` Pierre-Louis Bossart
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Louis Bossart @ 2024-04-30  0:21 UTC (permalink / raw
  To: kernel test robot; +Cc: oe-kbuild-all



On 4/18/24 10:23, kernel test robot wrote:
> tree:   https://github.com/plbossart/sound sdw/parse-functions
> head:   999b877354e492b6b1c8206962dcf1fd21c09f15
> commit: e02a796a482bc2bafe64571d8fdd06fd5c0008dd [8/12] ASoC: sdca: add initial module
> config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20240418/202404182342.HH2xrWXD-lkp@intel.com/config)
> compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240418/202404182342.HH2xrWXD-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202404182342.HH2xrWXD-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>>> sound/soc/sdca/sdca_functions.c:14:5: error: redefinition of 'sdca_alloc'
>       14 | int sdca_alloc(void **context,
>          |     ^~~~~~~~~~
>    In file included from sound/soc/sdca/sdca_functions.c:12:
>    include/sound/sdca.h:23:19: note: previous definition of 'sdca_alloc' with type 'int(void **, struct device *, struct sdw_slave *)'
>       23 | static inline int sdca_alloc(void **context,

fixed with a depends on ACPI, thanks!

>          |                   ^~~~~~~~~~
> 
> 
> vim +/sdca_alloc +14 sound/soc/sdca/sdca_functions.c
> 
>     13	
>   > 14	int sdca_alloc(void **context,
>     15		       struct device *parent,
>     16		       struct sdw_slave *slave)
>     17	{
>     18		struct sdca_data *sdca;
>     19	
>     20		sdca = devm_kzalloc(parent, sizeof(*sdca), GFP_KERNEL);
>     21		if (!sdca)
>     22			return -ENOMEM;
>     23	
>     24		sdca->parent = parent;
>     25		sdca->slave = slave;
>     26	
>     27		*context = sdca;
>     28	
>     29		return 0;
>     30	}
>     31	EXPORT_SYMBOL_NS(sdca_alloc, SND_SOC_SDCA);
>     32	
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-30  0:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-18 15:23 [plbossart-sound:sdw/parse-functions 8/12] sound/soc/sdca/sdca_functions.c:14:5: error: redefinition of 'sdca_alloc' kernel test robot
2024-04-30  0:21 ` Pierre-Louis Bossart

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 read-only IMAP folder(s) and NNTP newsgroup(s).