[sailus-media-tree:metadata 18/24] drivers/media/i2c/ccs/ccs-core.c:2059:1: warning: 'static' is not at beginning of declaration

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

 



tree:   git://linuxtv.org/sailus/media_tree.git metadata
head:   677e6a2139a965fa6eee306d4b015a95b427ef34
commit: 1cba6f4ce24282a593d6121260660c112739a063 [18/24] media: ccs: Add support for embedded data stream
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230913/202309130842.vMagrOma-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230913/202309130842.vMagrOma-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309130842.vMagrOma-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/media/i2c/ccs/ccs-core.c:2059:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
    2059 | } static const ccs_embedded_codes[] = {
         | ^


vim +/static +2059 drivers/media/i2c/ccs/ccs-core.c

  2043	
  2044	#define CCS_EMBEDDED_CODE_DEPTH(depth, half_depth)			\
  2045		depth,								\
  2046		CCS_EMB_DATA_CAPABILITY_TWO_BYTES_PER_RAW##depth,		\
  2047		CCS_EMB_DATA_CAPABILITY_NO_ONE_BYTE_PER_RAW##depth,		\
  2048		CCS_EMB_DATA_CTRL_RAW##half_depth##_PACKING_FOR_RAW##depth,	\
  2049		MEDIA_BUS_FMT_CCS_EMBEDDED_##half_depth,			\
  2050		MEDIA_BUS_FMT_CCS_EMBEDDED_##depth,				\
  2051	
  2052	struct ccs_embedded_code {
  2053		u8 depth;
  2054		u8 cap_two_bytes_per_sample;
  2055		u8 cap_no_legacy;
  2056		u8 ctrl;
  2057		u32 ccs_code_two_bytes;
  2058		u32 ccs_code_legacy;
> 2059	} static const ccs_embedded_codes[] = {
  2060		{ CCS_EMBEDDED_CODE_DEPTH(16, 8) },
  2061		{ CCS_EMBEDDED_CODE_DEPTH(20, 10) },
  2062		{ CCS_EMBEDDED_CODE_DEPTH(24, 12) },
  2063	};
  2064	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux