linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-08-21 16:31 kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-08-21 16:31 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: clang-built-linux, kbuild-all, linux-kernel, Daniel Vetter

[-- Attachment #1: Type: text/plain, Size: 5313 bytes --]

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fa54d366a6e4fe3e16322abdb8b5115f8be0da8b
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   9 months ago
config: mips-randconfig-r013-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/infiniband/core/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-9e9d70591e/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel mm net nr_bisected scripts source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40020 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
  2022-06-29 17:56 kernel test robot
@ 2022-06-29 18:03 ` Geert Uytterhoeven
  0 siblings, 0 replies; 12+ messages in thread
From: Geert Uytterhoeven @ 2022-06-29 18:03 UTC (permalink / raw)
  To: kernel test robot
  Cc: llvm, kbuild-all, Linux Kernel Mailing List, Daniel Vetter,
	Anitha Chrisanthus

Hi Kernel Test Robot,

On Wed, Jun 29, 2022 at 7:57 PM kernel test robot <lkp@intel.com> wrote:
> First bad commit (maybe != root cause):

Definitely not introduced by my patch.
Looks like these functions were never used at all.

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   d9b2ba67917c18822c6a09af41c32fa161f1606b
> commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
> date:   1 year, 8 months ago
> config: mips-randconfig-r016-20220629 (https://download.01.org/0day-ci/archive/20220630/202206300147.qdDDrtfw-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a774ba7f60d1fef403b5507b1b1a7475d3684d71)
> 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 mips cross compiling tool for clang build
>         # apt-get install binutils-mipsel-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ drivers/scsi/ufs/ drivers/staging/ fs/xfs/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
>    set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
>    ^
> >> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
>    set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
>    ^
>    fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
>    clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
>    clang version 15.0.0 (git://gitmirror/llvm_project a774ba7f60d1fef403b5507b1b1a7475d3684d71)
>    Target: mipsel-unknown-linux
>    Thread model: posix
>    InstalledDir: /opt/cross/clang-a774ba7f60/bin
>    clang-15: note: diagnostic msg:
>    Makefile arch drivers fs include kernel mm nr_bisected scripts source usr
>
>
> vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c
>
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  810
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  811  static inline void
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812       set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  813                                                  u32 dphy_no,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  814                                                  u32 freq)
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  815  {
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  816       /* Typical rise/fall time=166, refer Table 1207 databook,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  817        * sr_osc_freq_target[7:0]
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  818        */
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  819       test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  820                      (freq & 0x7f));
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  821  }
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  822
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  823  static inline void
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824       set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  825                                                 u32 dphy_no,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  826                                                 u32 freq)
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  827  {
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  828       u32 data;
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  829
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  830       /* Flag this as high nibble */
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  831       data = ((freq >> 6) & 0x1f) | (1 << 7);
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  832
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  833       /* Typical rise/fall time=166, refer Table 1207 databook,
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  834        * sr_osc_freq_target[11:7]
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  835        */
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  836       test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  837  }
> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  838
>
> :::::: The code at line 812 was first introduced by commit
> :::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver
>
> :::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
> :::::: CC: Sam Ravnborg <sam@ravnborg.org>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2022-06-29 17:56 kernel test robot
  2022-06-29 18:03 ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: kernel test robot @ 2022-06-29 17:56 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: llvm, kbuild-all, linux-kernel, Daniel Vetter

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d9b2ba67917c18822c6a09af41c32fa161f1606b
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   1 year, 8 months ago
config: mips-randconfig-r016-20220629 (https://download.01.org/0day-ci/archive/20220630/202206300147.qdDDrtfw-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a774ba7f60d1fef403b5507b1b1a7475d3684d71)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mipsel-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ drivers/scsi/ufs/ drivers/staging/ fs/xfs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 15.0.0 (git://gitmirror/llvm_project a774ba7f60d1fef403b5507b1b1a7475d3684d71)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-a774ba7f60/bin
   clang-15: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm nr_bisected scripts source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-12-11  5:34 kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-12-11  5:34 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: llvm, kbuild-all, linux-kernel, Daniel Vetter

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6f513529296fd4f696afb4354c46508abe646541
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   1 year, 1 month ago
config: mips-randconfig-r026-20211211 (https://download.01.org/0day-ci/archive/20211211/202112111334.EmMJpBTI-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ fs/ mm/ sound/soc/samsung/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-097a1cb1d5/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm nr_bisected scripts sound source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-11-07 20:40 kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-11-07 20:40 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: llvm, kbuild-all, linux-kernel, Daniel Vetter

[-- Attachment #1: Type: text/plain, Size: 5362 bytes --]

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b5013d084e03e82ceeab4db8ae8ceeaebe76b0eb
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   12 months ago
config: mips-randconfig-r013-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/ drivers/net/ethernet/mellanox/mlxsw/ mm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-cefc01fa65/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30718 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
  2021-09-28 16:43   ` Nathan Chancellor
@ 2021-09-28 18:09     ` Geert Uytterhoeven
  0 siblings, 0 replies; 12+ messages in thread
From: Geert Uytterhoeven @ 2021-09-28 18:09 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: kernel test robot, llvm, kbuild-all, Linux Kernel Mailing List,
	Daniel Vetter

Hi Nathan,

On Tue, Sep 28, 2021 at 6:43 PM Nathan Chancellor <nathan@kernel.org> wrote:
> On Tue, Sep 28, 2021 at 05:39:19PM +0200, Geert Uytterhoeven wrote:
> > On Tue, Sep 28, 2021 at 5:09 PM kernel test robot <lkp@intel.com> wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > > head:   0513e464f9007b70b96740271a948ca5ab6e7dd7
> > > commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
> > > date:   11 months ago
> > > config: mips-randconfig-r013-20210928 (attached as .config)
> > > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
> > > 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 mips cross compiling tool for clang build
> > >         # apt-get install binutils-mips-linux-gnu
> > >         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
> > >         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > >         git fetch --no-tags linus master
> > >         git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
> > >         # save the attached .config to linux build tree
> > >         mkdir build_dir
> > >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ mm/
> > >
> > > If you fix the issue, kindly add following tag as appropriate
> > > Reported-by: kernel test robot <lkp@intel.com>
> > >
> > > All warnings (new ones prefixed by >>):
> > >
> > > >> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
> > >    set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
> > >    ^
> > > >> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
> > >    set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
> >
> > These two functions are "static inline", so there should not be such
> > warning. Toolchain issue?
>
> No toolchain issue, Masahiro specifically made clang W=1 builds warns on
> static inline unused functions because of instances like this, see
> commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline
> functions for W=1 build").

IC, I wasn't aware of that work.

Anyway, the "first bad commit" is the commit introducing the code, not
my commit enabling compile-testing (nor Yamada-san's commit to warn
about it ;-).

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
  2021-09-28 15:39 ` Geert Uytterhoeven
@ 2021-09-28 16:43   ` Nathan Chancellor
  2021-09-28 18:09     ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: Nathan Chancellor @ 2021-09-28 16:43 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kernel test robot, llvm, kbuild-all, Linux Kernel Mailing List,
	Daniel Vetter

Hi Geert,

On Tue, Sep 28, 2021 at 05:39:19PM +0200, Geert Uytterhoeven wrote:
> On Tue, Sep 28, 2021 at 5:09 PM kernel test robot <lkp@intel.com> wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   0513e464f9007b70b96740271a948ca5ab6e7dd7
> > commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
> > date:   11 months ago
> > config: mips-randconfig-r013-20210928 (attached as .config)
> > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
> > 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 mips cross compiling tool for clang build
> >         # apt-get install binutils-mips-linux-gnu
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
> >         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> >         git fetch --no-tags linus master
> >         git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
> >         # save the attached .config to linux build tree
> >         mkdir build_dir
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ mm/
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> > All warnings (new ones prefixed by >>):
> >
> > >> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
> >    set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
> >    ^
> > >> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
> >    set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
> 
> These two functions are "static inline", so there should not be such
> warning. Toolchain issue?

No toolchain issue, Masahiro specifically made clang W=1 builds warns on
static inline unused functions because of instances like this, see
commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline
functions for W=1 build").

Cheers,
Nathan

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
  2021-09-28 14:59 kernel test robot
@ 2021-09-28 15:39 ` Geert Uytterhoeven
  2021-09-28 16:43   ` Nathan Chancellor
  0 siblings, 1 reply; 12+ messages in thread
From: Geert Uytterhoeven @ 2021-09-28 15:39 UTC (permalink / raw)
  To: kernel test robot
  Cc: llvm, kbuild-all, Linux Kernel Mailing List, Daniel Vetter

On Tue, Sep 28, 2021 at 5:09 PM kernel test robot <lkp@intel.com> wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   0513e464f9007b70b96740271a948ca5ab6e7dd7
> commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
> date:   11 months ago
> config: mips-randconfig-r013-20210928 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
> 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 mips cross compiling tool for clang build
>         # apt-get install binutils-mips-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
>         # save the attached .config to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ mm/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
>    set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
>    ^
> >> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
>    set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi

These two functions are "static inline", so there should not be such
warning. Toolchain issue?

>    ^
>    fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
>    clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
>    clang version 14.0.0 (git://gitmirror/llvm_project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
>    Target: mipsel-unknown-linux
>    Thread model: posix
>    InstalledDir: /opt/cross/clang-dc6e8dfdfe/bin
>    clang-14: note: diagnostic msg:
>    Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr
>
>
> vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c
>
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  810
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  811  static inline void
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @812      set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  813                                                 u32 dphy_no,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  814                                                 u32 freq)
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  815  {
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  816      /* Typical rise/fall time=166, refer Table 1207 databook,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  817       * sr_osc_freq_target[7:0]
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  818       */
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  819      test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  820                     (freq & 0x7f));
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  821  }
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  822
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  823  static inline void
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @824      set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  825                                                u32 dphy_no,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  826                                                u32 freq)
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  827  {
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  828      u32 data;
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  829
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  830      /* Flag this as high nibble */
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  831      data = ((freq >> 6) & 0x1f) | (1 << 7);
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  832
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  833      /* Typical rise/fall time=166, refer Table 1207 databook,
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  834       * sr_osc_freq_target[11:7]
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  835       */
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  836      test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  837  }
> 98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  838
>
> :::::: The code at line 812 was first introduced by commit
> :::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver
>
> :::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
> :::::: CC: Sam Ravnborg <sam@ravnborg.org>
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-09-28 14:59 kernel test robot
  2021-09-28 15:39 ` Geert Uytterhoeven
  0 siblings, 1 reply; 12+ messages in thread
From: kernel test robot @ 2021-09-28 14:59 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: llvm, kbuild-all, linux-kernel, Daniel Vetter

[-- Attachment #1: Type: text/plain, Size: 5366 bytes --]

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0513e464f9007b70b96740271a948ca5ab6e7dd7
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   11 months ago
config: mips-randconfig-r013-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ mm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-dc6e8dfdfe/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30719 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-09-05  0:04 kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-09-05  0:04 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: llvm, kbuild-all, linux-kernel, Daniel Vetter

[-- Attachment #1: Type: text/plain, Size: 5674 bytes --]

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   49624efa65ac9889f4e7c7b2452b2e6ce42ba37d
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   10 months ago
config: mips-randconfig-r003-20210904 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/ kernel/time/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project 6fe2beba7d2a41964af658c8c59dd172683ef739)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-6fe2beba7d/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel net scripts security sound source usr

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for MTK_SCP
   Depends on REMOTEPROC && (ARCH_MEDIATEK || COMPILE_TEST
   Selected by
   - VIDEO_MEDIATEK_VCODEC && MEDIA_SUPPORT && MEDIA_PLATFORM_SUPPORT && V4L_MEM2MEM_DRIVERS && (MTK_IOMMU || COMPILE_TEST && VIDEO_DEV && VIDEO_V4L2 && (ARCH_MEDIATEK || COMPILE_TEST


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb26 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37185 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-02-27 23:07 kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-02-27 23:07 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kbuild-all, clang-built-linux, linux-kernel, Daniel Vetter

[-- Attachment #1: Type: text/plain, Size: 5216 bytes --]

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   4 months ago
config: mips-randconfig-r004-20210228 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 83bc7815c4235786111aa2abf7193292e4a602f5)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 13.0.0 (git://gitmirror/llvm_project 83bc7815c4235786111aa2abf7193292e4a602f5)
   Target: mipsel-unknown-linux-gnu
   Thread model: posix
   InstalledDir: /opt/cross/clang-83bc7815c4/bin
   clang-13: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm scripts security source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39474 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
@ 2021-01-20  5:50 kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-01-20  5:50 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kbuild-all, clang-built-linux, linux-kernel, Daniel Vetter

[-- Attachment #1: Type: text/plain, Size: 5260 bytes --]

Hi Geert,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1e2a199f6ccdc15cf111d68d212e2fd4ce65682e
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date:   2 months ago
config: mips-randconfig-r022-20210120 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 22b68440e1647e16b5ee24b924986207173c02d1)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
   set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
   ^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
   set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   clang-12: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 12.0.0 (git://gitmirror/llvm_project 22b68440e1647e16b5ee24b924986207173c02d1)
   Target: mips-unknown-linux-gnu
   Thread model: posix
   InstalledDir: /opt/cross/clang-22b68440e1/bin
   clang-12: note: diagnostic msg:
   Makefile arch drivers include kernel mm scripts source usr


vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c

98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  810  
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  811  static inline void
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04 @812  	set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  813  						   u32 dphy_no,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  814  						   u32 freq)
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  815  {
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  816  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  817  	 * sr_osc_freq_target[7:0]
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  818  	 */
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  819  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  820  		       (freq & 0x7f));
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  821  }
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  822  
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  823  static inline void
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04 @824  	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  825  						  u32 dphy_no,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  826  						  u32 freq)
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  827  {
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  828  	u32 data;
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  829  
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  830  	/* Flag this as high nibble */
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  831  	data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  832  
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  833  	/* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  834  	 * sr_osc_freq_target[11:7]
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  835  	 */
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  836  	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  837  }
98521f4d4b4cb265 Anitha Chrisanthus 2020-11-04  838  

:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver

:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35438 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-06-29 18:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 16:31 drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-06-29 17:56 kernel test robot
2022-06-29 18:03 ` Geert Uytterhoeven
2021-12-11  5:34 kernel test robot
2021-11-07 20:40 kernel test robot
2021-09-28 14:59 kernel test robot
2021-09-28 15:39 ` Geert Uytterhoeven
2021-09-28 16:43   ` Nathan Chancellor
2021-09-28 18:09     ` Geert Uytterhoeven
2021-09-05  0:04 kernel test robot
2021-02-27 23:07 kernel test robot
2021-01-20  5:50 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).