Hi Ng,
First bad commit (maybe != root cause):
tree:
https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: cb7e61a3cffb19413bc9d8ad7e0b690eec519348
commit: 2def42a616c1ceec2eb739c6befb6af42f6ee22c [9825/9862] Fix compile issue
config: sh-allmodconfig (attached as .config)
compiler: sh4-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
#
https://github.com/intel/linux-intel-lts/commit/2def42a616c1ceec2eb739c6b...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/yocto
git checkout 2def42a616c1ceec2eb739c6befb6af42f6ee22c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/media/i2c/ar0234.c: In function 'ar0234_start_streaming':
drivers/media/i2c/ar0234.c:1757:6: warning: unused variable 'val'
[-Wunused-variable]
1757 | u32 val;
| ^~~
drivers/media/i2c/ar0234.c: At top level:
> drivers/media/i2c/ar0234.c:2102:13: warning: no previous
prototype for 'ar0234_threaded_irq_fn' [-Wmissing-prototypes]
2102 |
irqreturn_t ar0234_threaded_irq_fn(int irq, void *dev_id)
| ^~~~~~~~~~~~~~~~~~~~~~
--
drivers/media/i2c/imx390.c: In function 'get_hblank':
drivers/media/i2c/imx390.c:422:6: warning: unused variable 'pixel_clk'
[-Wunused-variable]
422 | u64 pixel_clk;
| ^~~~~~~~~
drivers/media/i2c/imx390.c:421:6: warning: unused variable 'pixel_rate'
[-Wunused-variable]
421 | u64 pixel_rate;
| ^~~~~~~~~~
drivers/media/i2c/imx390.c: In function 'imx390_exposure_raw_set':
> drivers/media/i2c/imx390.c:439:2: warning: ISO C90 forbids mixed
declarations and code [-Wdeclaration-after-statement]
439 | struct imx390_reg
exposure_array[] = {
| ^~~~~~
drivers/media/i2c/imx390.c:429:6: warning: unused variable 'err'
[-Wunused-variable]
429 | int err = 0;
| ^~~
drivers/media/i2c/imx390.c: In function 'imx390_set_ctrl':
drivers/media/i2c/imx390.c:502:6: warning: unused variable 'val'
[-Wunused-variable]
502 | u32 val;
| ^~~
drivers/media/i2c/imx390.c:500:6: warning: unused variable 'exposure_max'
[-Wunused-variable]
500 | s64 exposure_max;
| ^~~~~~~~~~~~
drivers/media/i2c/imx390.c: In function 'imx390_init_controls':
drivers/media/i2c/imx390.c:542:26: warning: unused variable 'cfg'
[-Wunused-variable]
542 | struct v4l2_ctrl_config cfg = { 0 };
| ^~~
drivers/media/i2c/imx390.c:540:6: warning: unused variable 'exposure_max'
[-Wunused-variable]
540 | s64 exposure_max;
| ^~~~~~~~~~~~
drivers/media/i2c/imx390.c:538:21: warning: unused variable 'client'
[-Wunused-variable]
538 | struct i2c_client *client = v4l2_get_subdevdata(&imx390->sd);
| ^~~~~~
drivers/media/i2c/imx390.c: At top level:
> drivers/media/i2c/imx390.c:941:13: warning: no previous prototype
for 'imx390_threaded_irq_fn' [-Wmissing-prototypes]
941 | irqreturn_t
imx390_threaded_irq_fn(int irq, void *dev_id)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/imx390.c:402:12: warning: 'imx390_update_digital_gain'
defined but not used [-Wunused-function]
402 | static int imx390_update_digital_gain(struct imx390 *imx390, u32 d_gain)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/imx390.c:340:12: warning: 'imx390_gain_raw_set' defined but
not used [-Wunused-function]
340 | static int imx390_gain_raw_set(struct imx390 *self, u16 gain)
| ^~~~~~~~~~~~~~~~~~~
drivers/media/i2c/imx390.c: In function 'get_pixel_rate':
drivers/media/i2c/imx390.c:411:9: warning: 'pixel_rate' is used uninitialized
in this function [-Wuninitialized]
411 | return pixel_rate;
| ^~~~~~~~~~
drivers/media/i2c/imx390.c: In function 'get_hblank':
drivers/media/i2c/imx390.c:424:9: warning: 'hblank' is used uninitialized in
this function [-Wuninitialized]
424 | return hblank;
| ^~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC &&
SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC
&& SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND &&
SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/ar0234_threaded_irq_fn +2102 drivers/media/i2c/ar0234.c
1aafb1e0df5527 Ng Khai Wen 2021-07-01 2101
1aafb1e0df5527 Ng Khai Wen 2021-07-01 @2102 irqreturn_t ar0234_threaded_irq_fn(int irq,
void *dev_id)
1aafb1e0df5527 Ng Khai Wen 2021-07-01 2103 {
1aafb1e0df5527 Ng Khai Wen 2021-07-01 2104 return IRQ_HANDLED;
1aafb1e0df5527 Ng Khai Wen 2021-07-01 2105 }
1aafb1e0df5527 Ng Khai Wen 2021-07-01 2106
:::::: The code at line 2102 was first introduced by commit
:::::: 1aafb1e0df5527884ad5ccb67ec95414df4d85f7 Add IPU driver
:::::: TO: Ng Khai Wen <khai.wen.ng(a)intel.com>
:::::: CC: Pan, Kris <kris.pan(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org