drivers/soundwire/intel_init.c:192:7: warning: no previous prototype for 'sdw_intel_init'

From: kernel test robot
Date: Wed Jun 03 2020 - 08:32:45 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d6f9469a03d832dcd17041ed67774ffb5f3e73b3
commit: f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b soundwire: intel: update interfaces between ASoC and SoundWire
date: 6 months ago
config: ia64-randconfig-r026-20200603 (attached as .config)
compiler: ia64-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
git checkout f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/soundwire/intel_init.c:192:7: warning: no previous prototype for 'sdw_intel_init' [-Wmissing-prototypes]
192 | void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
| ^~~~~~~~~~~~~~

vim +/sdw_intel_init +192 drivers/soundwire/intel_init.c

d62a7d41f38e1d3 Vinod Koul 2017-12-14 183
d62a7d41f38e1d3 Vinod Koul 2017-12-14 184 /**
d62a7d41f38e1d3 Vinod Koul 2017-12-14 185 * sdw_intel_init() - SoundWire Intel init routine
d62a7d41f38e1d3 Vinod Koul 2017-12-14 186 * @parent_handle: ACPI parent handle
d62a7d41f38e1d3 Vinod Koul 2017-12-14 187 * @res: resource data
d62a7d41f38e1d3 Vinod Koul 2017-12-14 188 *
d62a7d41f38e1d3 Vinod Koul 2017-12-14 189 * This scans the namespace and creates SoundWire link controller devices
d62a7d41f38e1d3 Vinod Koul 2017-12-14 190 * based on the info queried.
d62a7d41f38e1d3 Vinod Koul 2017-12-14 191 */
d62a7d41f38e1d3 Vinod Koul 2017-12-14 @192 void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
d62a7d41f38e1d3 Vinod Koul 2017-12-14 193 {
d62a7d41f38e1d3 Vinod Koul 2017-12-14 194 acpi_status status;
d62a7d41f38e1d3 Vinod Koul 2017-12-14 195
d62a7d41f38e1d3 Vinod Koul 2017-12-14 196 status = acpi_walk_namespace(ACPI_TYPE_DEVICE,
d62a7d41f38e1d3 Vinod Koul 2017-12-14 197 parent_handle, 1,
d62a7d41f38e1d3 Vinod Koul 2017-12-14 198 sdw_intel_acpi_cb,
d62a7d41f38e1d3 Vinod Koul 2017-12-14 199 NULL, res, NULL);
d62a7d41f38e1d3 Vinod Koul 2017-12-14 200 if (ACPI_FAILURE(status))
d62a7d41f38e1d3 Vinod Koul 2017-12-14 201 return NULL;
d62a7d41f38e1d3 Vinod Koul 2017-12-14 202
d62a7d41f38e1d3 Vinod Koul 2017-12-14 203 return sdw_intel_add_controller(res);
d62a7d41f38e1d3 Vinod Koul 2017-12-14 204 }
d62a7d41f38e1d3 Vinod Koul 2017-12-14 205

:::::: The code at line 192 was first introduced by commit
:::::: d62a7d41f38e1d3f8f8a1c0db4dec7a5bb39268a soundwire: intel: Add Intel init module

:::::: TO: Vinod Koul <vinod.koul@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip