[linux-next:master 2302/10320] drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1687:1: error: non-void function does not return a value in all control paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7636510f976d75b860848884169ba985c8f844d8
commit: 728a5c64ae5fef9524528153b290b7d4a4e56043 [2302/10320] media: atomisp: remove dublicate code
config: x86_64-randconfig-r003-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=728a5c64ae5fef9524528153b290b7d4a4e56043
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 728a5c64ae5fef9524528153b290b7d4a4e56043
        # 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: kernel test robot <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD 7636510f976d75b860848884169ba985c8f844d8 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1687:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
   }
   ^
   1 error generated.


vim +1687 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  1610  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1611  // 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  1612  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  1613      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  1614  {
bdfe0beb95eebc drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1615  	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  1616  	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  1617  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1618  	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  1619  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1620  	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  1621  		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  1622  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1623  	//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  1624  
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1625  	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  1626  				 &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  1627  	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  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 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  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_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  1632  			     &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  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  	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  1636  	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  1637  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1638  		// 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  1639  		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  1640  		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  1641  						      &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  1642  		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  1643  		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  1644  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1645  		// 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  1646  		//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  1647  		//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  1648  		//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  1649  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1650  		break;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1651  	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  1652  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1653  		// 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  1654  		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  1655  		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  1656  						      &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  1657  		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  1658  		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  1659  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1660  		// 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  1661  		//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  1662  		//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  1663  		//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  1664  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1665  		break;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1666  	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  1667  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1668  		// 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  1669  		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  1670  		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  1671  						      &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  1672  		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  1673  		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  1674  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1675  		// 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  1676  		//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  1677  		//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  1678  		//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  1679  
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1680  		break;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1681  	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  1682  	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  1683  	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  1684  	default:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1685  		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  1686  	}
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 @1687  }
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19  1688  

:::::: The code at line 1687 was first introduced by commit
:::::: ad85094b293e40e7a2f831b0311a389d952ebd5e Revert "media: staging: atomisp: Remove driver"

:::::: TO: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux