tree:
https://github.com/0day-ci/linux/commits/UPDATE-20210508-185249/Pavel-Skr...
head: 4cebd9463b967e1f4806a5c269dfef4ddaf812f1
commit: 4cebd9463b967e1f4806a5c269dfef4ddaf812f1 staging: media: atomisp: code cleanup
date: 4 days ago
config: x86_64-randconfig-r024-20210512 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
#
https://github.com/0day-ci/linux/commit/4cebd9463b967e1f4806a5c269dfef4dd...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
UPDATE-20210508-185249/Pavel-Skripkin/staging-media-atomisp-remove-useless-breaks/20210507-041134
git checkout 4cebd9463b967e1f4806a5c269dfef4ddaf812f1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1693:1: error:
non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 error generated.
vim +1693 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1616
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1617 // Fills the parameters to config.csi_value[port]
39bc26e49a5f94 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-07-20 1618 static input_system_err_t
input_system_configure_channel_sensor(
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1619 const channel_cfg_t channel)
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1620 {
bdfe0beb95eebc
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1621 const u32 port =
channel.source_cfg.csi_cfg.csi_port;
39bc26e49a5f94 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-07-20 1622 input_system_err_t status =
INPUT_SYSTEM_ERR_NO_ERROR;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1623
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1624 input_system_multiplex_t mux;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1625
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1626 if (port >= N_INPUT_SYSTEM_PORTS)
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1627 return INPUT_SYSTEM_ERR_GENERIC;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1628
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1629 //check if port > N_INPUT_SYSTEM_MULTIPLEX
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1630
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1631 status = set_source_type(&config.source_type,
channel.source_type,
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1632 &config.source_type_flags);
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1633 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return
status;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1634
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1635 // Check for conflicts on source (implicitly on
multicast, capture unit and input buffer).
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1636
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1637 status = set_csi_cfg(&config.csi_value[port],
&channel.source_cfg.csi_cfg,
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1638 &config.csi_flags[port]);
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1639 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return
status;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1640
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1641 switch
(channel.source_cfg.csi_cfg.buffering_mode) {
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1642 case INPUT_SYSTEM_FIFO_CAPTURE:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1643
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1644 // Check for conflicts on mux.
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1645 mux = INPUT_SYSTEM_MIPI_PORT0 + port;
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1646 status =
input_system_multiplexer_cfg(&config.multiplexer, mux,
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1647 &config.multiplexer_flags);
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1648 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return
status;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1649 config.multicast[port] =
INPUT_SYSTEM_CSI_BACKEND;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1650
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1651 // Shared resource, so it should be blocked.
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1652 //config.mux_flags |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1653 //config.csi_buffer_flags[port] |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1654 //config.acquisition_buffer_unique_flags |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1655
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1656 break;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1657 case INPUT_SYSTEM_SRAM_BUFFERING:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1658
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1659 // Check for conflicts on mux.
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1660 mux = INPUT_SYSTEM_ACQUISITION_UNIT;
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1661 status =
input_system_multiplexer_cfg(&config.multiplexer, mux,
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1662 &config.multiplexer_flags);
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1663 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return
status;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1664 config.multicast[port] =
INPUT_SYSTEM_INPUT_BUFFER;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1665
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1666 // Shared resource, so it should be blocked.
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1667 //config.mux_flags |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1668 //config.csi_buffer_flags[port] |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1669 //config.acquisition_buffer_unique_flags |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1670
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1671 break;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1672 case INPUT_SYSTEM_XMEM_BUFFERING:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1673
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1674 // Check for conflicts on mux.
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1675 mux = INPUT_SYSTEM_ACQUISITION_UNIT;
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1676 status =
input_system_multiplexer_cfg(&config.multiplexer, mux,
eaa399eb542cdf
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1677 &config.multiplexer_flags);
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1678 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return
status;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1679 config.multicast[port] =
INPUT_SYSTEM_INPUT_BUFFER;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1680
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1681 // Shared resource, so it should be blocked.
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1682 //config.mux_flags |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1683 //config.csi_buffer_flags[port] |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1684 //config.acquisition_buffer_unique_flags |=
INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1685
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1686 break;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1687 case INPUT_SYSTEM_FIFO_CAPTURE_WITH_COUNTING:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1688 case INPUT_SYSTEM_XMEM_CAPTURE:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1689 case INPUT_SYSTEM_XMEM_ACQUIRE:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1690 default:
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1691 return
INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1692 }
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 @1693 }
ad85094b293e40
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c
Mauro Carvalho Chehab 2020-04-19 1694
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org