tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: fec3c46b70eeae7a07ae80fd8e6565459e1e9515
commit: 0001b3a745ad4b471806c78758f71f0de46d3f61 [121/163] UPSTREAM: soundwire: qcom: add
static port map support
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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 remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 0001b3a745ad4b471806c78758f71f0de46d3f61
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir
ARCH=m68k SHELL=/bin/bash drivers/soundwire/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-5.10 HEAD fec3c46b70eeae7a07ae80fd8e6565459e1e9515 builds
fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/soundwire/qcom.c: In function 'qcom_swrm_enumerate':
drivers/soundwire/qcom.c:409:8: error: implicit declaration of function
'sdw_compare_devid' [-Werror=implicit-function-declaration]
409 | if (sdw_compare_devid(slave, id) == 0) {
| ^~~~~~~~~~~~~~~~~
drivers/soundwire/qcom.c: In function 'qcom_swrm_compute_params':
> drivers/soundwire/qcom.c:756:19: error: 'struct
sdw_slave' has no member named 'm_port_map'
756 | m_port =
slave->m_port_map[p_rt->num];
| ^~
drivers/soundwire/qcom.c: In function 'qcom_swrm_stream_alloc_ports':
drivers/soundwire/qcom.c:842:19: error: 'struct sdw_slave' has no member named
'm_port_map'
842 | m_port = slave->m_port_map[p_rt->num];
| ^~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NEED_MULTIPLE_NODES
Depends on DISCONTIGMEM || NUMA
Selected by
- SINGLE_MEMORY_CHUNK && MMU
vim +756 drivers/soundwire/qcom.c
728
729 static int qcom_swrm_compute_params(struct sdw_bus *bus)
730 {
731 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
732 struct sdw_master_runtime *m_rt;
733 struct sdw_slave_runtime *s_rt;
734 struct sdw_port_runtime *p_rt;
735 struct qcom_swrm_port_config *pcfg;
736 struct sdw_slave *slave;
737 unsigned int m_port;
738 int i = 0;
739
740 list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
741 list_for_each_entry(p_rt, &m_rt->port_list, port_node) {
742 pcfg = &ctrl->pconfig[p_rt->num - 1];
743 p_rt->transport_params.port_num = p_rt->num;
744 if (pcfg->word_length != SWR_INVALID_PARAM) {
745 sdw_fill_port_params(&p_rt->port_params,
746 p_rt->num, pcfg->word_length + 1,
747 SDW_PORT_FLOW_MODE_ISOCH,
748 SDW_PORT_DATA_MODE_NORMAL);
749 }
750
751 }
752
753 list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_node) {
754 slave = s_rt->slave;
755 list_for_each_entry(p_rt, &s_rt->port_list, port_node) {
756 m_port = slave->m_port_map[p_rt->num];
757 /* port config starts at offset 0 so -1 from actual port number */
758 if (m_port)
759 pcfg = &ctrl->pconfig[m_port - 1];
760 else
761 pcfg = &ctrl->pconfig[i];
762 p_rt->transport_params.port_num = p_rt->num;
763 p_rt->transport_params.sample_interval =
764 pcfg->si + 1;
765 p_rt->transport_params.offset1 = pcfg->off1;
766 p_rt->transport_params.offset2 = pcfg->off2;
767 p_rt->transport_params.blk_pkg_mode = pcfg->bp_mode;
768 p_rt->transport_params.blk_grp_ctrl = pcfg->blk_group_count;
769
770 p_rt->transport_params.hstart = pcfg->hstart;
771 p_rt->transport_params.hstop = pcfg->hstop;
772 p_rt->transport_params.lane_ctrl = pcfg->lane_control;
773 if (pcfg->word_length != SWR_INVALID_PARAM) {
774 sdw_fill_port_params(&p_rt->port_params,
775 p_rt->num,
776 pcfg->word_length + 1,
777 SDW_PORT_FLOW_MODE_ISOCH,
778 SDW_PORT_DATA_MODE_NORMAL);
779 }
780 i++;
781 }
782 }
783 }
784
785 return 0;
786 }
787
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org