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

From: kbuild test robot
Date: Sat May 30 2020 - 22:35:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ffeb595d84811dde16a28b33d8a7cf26d51d51b3
commit: f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b soundwire: intel: update interfaces between ASoC and SoundWire
date: 6 months ago
config: x86_64-randconfig-r033-20200531 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2388a096e7865c043e83ece4e26654bd3d1a20d5)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild 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 function 'sdw_intel_init' [-Wmissing-prototypes]
void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
^
drivers/soundwire/intel_init.c:192:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
^
static
1 warning generated.

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

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