All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
@ 2022-06-03  5:24 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-06-03  5:24 UTC (permalink / raw)
  To: Konstantin Komarov; +Cc: llvm, kbuild-all, linux-kernel

Hi Konstantin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   50fd82b3a9a9335df5d50c7ddcb81c81d358c4fc
commit: 6e5be40d32fb1907285277c02e74493ed43d77fe fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile
date:   10 months ago
config: mips-randconfig-r012-20220531 (https://download.01.org/0day-ci/archive/20220603/202206031318.lX6gx7wh-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b364c76683f8ef241025a9556300778c07b590c2)
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=6e5be40d32fb1907285277c02e74493ed43d77fe
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6e5be40d32fb1907285277c02e74493ed43d77fe
        # 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/dma-buf/ drivers/leds/ fs/ntfs3/

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 >>):

>> fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
   static inline bool attr_must_be_resident(struct ntfs_sb_info
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1
   or $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   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 b364c76683f8ef241025a9556300778c07b590c2)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-b364c76683/bin
   clang-15: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr
--
>> fs/ntfs3/bitmap.c:59:19: warning: unused function 'wnd_bits'
   static inline u32 wnd_bits(const struct wnd_bitmap size_t i)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/atomic.h", .line = 157, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1 # atomic_sub
   subu $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   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 b364c76683f8ef241025a9556300778c07b590c2)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-b364c76683/bin
   clang-15: note: diagnostic msg:
   Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr


vim +/attr_must_be_resident +70 fs/ntfs3/attrib.c

be71b5cba2e6485 Konstantin Komarov 2021-08-13  64  
be71b5cba2e6485 Konstantin Komarov 2021-08-13  65  /*
be71b5cba2e6485 Konstantin Komarov 2021-08-13  66   * attr_must_be_resident
be71b5cba2e6485 Konstantin Komarov 2021-08-13  67   *
be71b5cba2e6485 Konstantin Komarov 2021-08-13  68   * returns true if attribute must be resident
be71b5cba2e6485 Konstantin Komarov 2021-08-13  69   */
be71b5cba2e6485 Konstantin Komarov 2021-08-13 @70  static inline bool attr_must_be_resident(struct ntfs_sb_info *sbi,
be71b5cba2e6485 Konstantin Komarov 2021-08-13  71  					 enum ATTR_TYPE type)
be71b5cba2e6485 Konstantin Komarov 2021-08-13  72  {
be71b5cba2e6485 Konstantin Komarov 2021-08-13  73  	const struct ATTR_DEF_ENTRY *de;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  74  
be71b5cba2e6485 Konstantin Komarov 2021-08-13  75  	switch (type) {
be71b5cba2e6485 Konstantin Komarov 2021-08-13  76  	case ATTR_STD:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  77  	case ATTR_NAME:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  78  	case ATTR_ID:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  79  	case ATTR_LABEL:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  80  	case ATTR_VOL_INFO:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  81  	case ATTR_ROOT:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  82  	case ATTR_EA_INFO:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  83  		return true;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  84  	default:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  85  		de = ntfs_query_def(sbi, type);
be71b5cba2e6485 Konstantin Komarov 2021-08-13  86  		if (de && (de->flags & NTFS_ATTR_MUST_BE_RESIDENT))
be71b5cba2e6485 Konstantin Komarov 2021-08-13  87  			return true;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  88  		return false;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  89  	}
be71b5cba2e6485 Konstantin Komarov 2021-08-13  90  }
be71b5cba2e6485 Konstantin Komarov 2021-08-13  91  

:::::: The code at line 70 was first introduced by commit
:::::: be71b5cba2e6485e8959da7a9f9a44461a1bb074 fs/ntfs3: Add attrib operations

:::::: TO: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
:::::: CC: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

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

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

* fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
@ 2022-04-17 11:16 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-04-17 11:16 UTC (permalink / raw)
  To: Konstantin Komarov; +Cc: llvm, kbuild-all, linux-kernel

Hi Konstantin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a2c29ccd9477861b16ddc02c411a6c9665250558
commit: 6e5be40d32fb1907285277c02e74493ed43d77fe fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile
date:   8 months ago
config: mips-randconfig-r013-20220417 (https://download.01.org/0day-ci/archive/20220417/202204171936.qeF0hGZg-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c6fdb1de47bd5f26868838c37fa9e8cc1ac484bf)
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=6e5be40d32fb1907285277c02e74493ed43d77fe
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6e5be40d32fb1907285277c02e74493ed43d77fe
        # 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 fs/ntfs3/

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 >>):

>> fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
   static inline bool attr_must_be_resident(struct ntfs_sb_info
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1
   or $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   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 ef94609d6ebe981767788e6877b0b3b731d425af)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-ef94609d6e/bin
   clang-15: note: diagnostic msg:
   Makefile arch fs include kernel scripts source usr
--
>> fs/ntfs3/bitmap.c:59:19: warning: unused function 'wnd_bits'
   static inline u32 wnd_bits(const struct wnd_bitmap size_t i)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/atomic.h", .line = 157, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1 # atomic_sub
   subu $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   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 ef94609d6ebe981767788e6877b0b3b731d425af)
   Target: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-ef94609d6e/bin
   clang-15: note: diagnostic msg:
   Makefile arch fs include kernel scripts source usr


vim +/attr_must_be_resident +70 fs/ntfs3/attrib.c

be71b5cba2e648 Konstantin Komarov 2021-08-13  64  
be71b5cba2e648 Konstantin Komarov 2021-08-13  65  /*
be71b5cba2e648 Konstantin Komarov 2021-08-13  66   * attr_must_be_resident
be71b5cba2e648 Konstantin Komarov 2021-08-13  67   *
be71b5cba2e648 Konstantin Komarov 2021-08-13  68   * returns true if attribute must be resident
be71b5cba2e648 Konstantin Komarov 2021-08-13  69   */
be71b5cba2e648 Konstantin Komarov 2021-08-13 @70  static inline bool attr_must_be_resident(struct ntfs_sb_info *sbi,
be71b5cba2e648 Konstantin Komarov 2021-08-13  71  					 enum ATTR_TYPE type)
be71b5cba2e648 Konstantin Komarov 2021-08-13  72  {
be71b5cba2e648 Konstantin Komarov 2021-08-13  73  	const struct ATTR_DEF_ENTRY *de;
be71b5cba2e648 Konstantin Komarov 2021-08-13  74  
be71b5cba2e648 Konstantin Komarov 2021-08-13  75  	switch (type) {
be71b5cba2e648 Konstantin Komarov 2021-08-13  76  	case ATTR_STD:
be71b5cba2e648 Konstantin Komarov 2021-08-13  77  	case ATTR_NAME:
be71b5cba2e648 Konstantin Komarov 2021-08-13  78  	case ATTR_ID:
be71b5cba2e648 Konstantin Komarov 2021-08-13  79  	case ATTR_LABEL:
be71b5cba2e648 Konstantin Komarov 2021-08-13  80  	case ATTR_VOL_INFO:
be71b5cba2e648 Konstantin Komarov 2021-08-13  81  	case ATTR_ROOT:
be71b5cba2e648 Konstantin Komarov 2021-08-13  82  	case ATTR_EA_INFO:
be71b5cba2e648 Konstantin Komarov 2021-08-13  83  		return true;
be71b5cba2e648 Konstantin Komarov 2021-08-13  84  	default:
be71b5cba2e648 Konstantin Komarov 2021-08-13  85  		de = ntfs_query_def(sbi, type);
be71b5cba2e648 Konstantin Komarov 2021-08-13  86  		if (de && (de->flags & NTFS_ATTR_MUST_BE_RESIDENT))
be71b5cba2e648 Konstantin Komarov 2021-08-13  87  			return true;
be71b5cba2e648 Konstantin Komarov 2021-08-13  88  		return false;
be71b5cba2e648 Konstantin Komarov 2021-08-13  89  	}
be71b5cba2e648 Konstantin Komarov 2021-08-13  90  }
be71b5cba2e648 Konstantin Komarov 2021-08-13  91  

:::::: The code at line 70 was first introduced by commit
:::::: be71b5cba2e6485e8959da7a9f9a44461a1bb074 fs/ntfs3: Add attrib operations

:::::: TO: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
:::::: CC: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

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

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

* fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
@ 2021-11-05 19:31 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-05 19:31 UTC (permalink / raw)
  To: Konstantin Komarov; +Cc: llvm, kbuild-all, linux-kernel

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

Hi Konstantin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: 6e5be40d32fb1907285277c02e74493ed43d77fe fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile
date:   3 months ago
config: mips-randconfig-r032-20211102 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
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=6e5be40d32fb1907285277c02e74493ed43d77fe
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6e5be40d32fb1907285277c02e74493ed43d77fe
        # 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 fs/ntfs3/

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 >>):

>> fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
   static inline bool attr_must_be_resident(struct ntfs_sb_info
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: lld $0, $1
   or $0, $2
   scd $0, $1
   beqz $0, 1b
   .set pop
   '
   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 847a6807332b13f43704327c2d30103ec0347c77)
   Target: mips64el-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch block drivers fs include kernel modules.order nr_bisected scripts source usr
--
>> fs/ntfs3/bitmap.c:59:19: warning: unused function 'wnd_bits'
   static inline u32 wnd_bits(const struct wnd_bitmap size_t i)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/atomic.h", .line = 157, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1 # atomic_sub
   subu $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   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 847a6807332b13f43704327c2d30103ec0347c77)
   Target: mips64el-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch block drivers fs include kernel modules.order nr_bisected scripts source usr


vim +/attr_must_be_resident +70 fs/ntfs3/attrib.c

be71b5cba2e6485 Konstantin Komarov 2021-08-13  64  
be71b5cba2e6485 Konstantin Komarov 2021-08-13  65  /*
be71b5cba2e6485 Konstantin Komarov 2021-08-13  66   * attr_must_be_resident
be71b5cba2e6485 Konstantin Komarov 2021-08-13  67   *
be71b5cba2e6485 Konstantin Komarov 2021-08-13  68   * returns true if attribute must be resident
be71b5cba2e6485 Konstantin Komarov 2021-08-13  69   */
be71b5cba2e6485 Konstantin Komarov 2021-08-13 @70  static inline bool attr_must_be_resident(struct ntfs_sb_info *sbi,
be71b5cba2e6485 Konstantin Komarov 2021-08-13  71  					 enum ATTR_TYPE type)
be71b5cba2e6485 Konstantin Komarov 2021-08-13  72  {
be71b5cba2e6485 Konstantin Komarov 2021-08-13  73  	const struct ATTR_DEF_ENTRY *de;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  74  
be71b5cba2e6485 Konstantin Komarov 2021-08-13  75  	switch (type) {
be71b5cba2e6485 Konstantin Komarov 2021-08-13  76  	case ATTR_STD:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  77  	case ATTR_NAME:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  78  	case ATTR_ID:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  79  	case ATTR_LABEL:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  80  	case ATTR_VOL_INFO:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  81  	case ATTR_ROOT:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  82  	case ATTR_EA_INFO:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  83  		return true;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  84  	default:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  85  		de = ntfs_query_def(sbi, type);
be71b5cba2e6485 Konstantin Komarov 2021-08-13  86  		if (de && (de->flags & NTFS_ATTR_MUST_BE_RESIDENT))
be71b5cba2e6485 Konstantin Komarov 2021-08-13  87  			return true;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  88  		return false;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  89  	}
be71b5cba2e6485 Konstantin Komarov 2021-08-13  90  }
be71b5cba2e6485 Konstantin Komarov 2021-08-13  91  

:::::: The code at line 70 was first introduced by commit
:::::: be71b5cba2e6485e8959da7a9f9a44461a1bb074 fs/ntfs3: Add attrib operations

:::::: TO: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
:::::: CC: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

---
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: 32535 bytes --]

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

* fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
@ 2021-11-05 19:31 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-05 19:31 UTC (permalink / raw)
  To: kbuild-all

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

Hi Konstantin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: 6e5be40d32fb1907285277c02e74493ed43d77fe fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile
date:   3 months ago
config: mips-randconfig-r032-20211102 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
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=6e5be40d32fb1907285277c02e74493ed43d77fe
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6e5be40d32fb1907285277c02e74493ed43d77fe
        # 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 fs/ntfs3/

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 >>):

>> fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident'
   static inline bool attr_must_be_resident(struct ntfs_sb_info
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: lld $0, $1
   or $0, $2
   scd $0, $1
   beqz $0, 1b
   .set pop
   '
   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 847a6807332b13f43704327c2d30103ec0347c77)
   Target: mips64el-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch block drivers fs include kernel modules.order nr_bisected scripts source usr
--
>> fs/ntfs3/bitmap.c:59:19: warning: unused function 'wnd_bits'
   static inline u32 wnd_bits(const struct wnd_bitmap size_t i)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .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/atomic.h", .line = 157, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1 # atomic_sub
   subu $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   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 847a6807332b13f43704327c2d30103ec0347c77)
   Target: mips64el-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch block drivers fs include kernel modules.order nr_bisected scripts source usr


vim +/attr_must_be_resident +70 fs/ntfs3/attrib.c

be71b5cba2e6485 Konstantin Komarov 2021-08-13  64  
be71b5cba2e6485 Konstantin Komarov 2021-08-13  65  /*
be71b5cba2e6485 Konstantin Komarov 2021-08-13  66   * attr_must_be_resident
be71b5cba2e6485 Konstantin Komarov 2021-08-13  67   *
be71b5cba2e6485 Konstantin Komarov 2021-08-13  68   * returns true if attribute must be resident
be71b5cba2e6485 Konstantin Komarov 2021-08-13  69   */
be71b5cba2e6485 Konstantin Komarov 2021-08-13 @70  static inline bool attr_must_be_resident(struct ntfs_sb_info *sbi,
be71b5cba2e6485 Konstantin Komarov 2021-08-13  71  					 enum ATTR_TYPE type)
be71b5cba2e6485 Konstantin Komarov 2021-08-13  72  {
be71b5cba2e6485 Konstantin Komarov 2021-08-13  73  	const struct ATTR_DEF_ENTRY *de;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  74  
be71b5cba2e6485 Konstantin Komarov 2021-08-13  75  	switch (type) {
be71b5cba2e6485 Konstantin Komarov 2021-08-13  76  	case ATTR_STD:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  77  	case ATTR_NAME:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  78  	case ATTR_ID:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  79  	case ATTR_LABEL:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  80  	case ATTR_VOL_INFO:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  81  	case ATTR_ROOT:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  82  	case ATTR_EA_INFO:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  83  		return true;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  84  	default:
be71b5cba2e6485 Konstantin Komarov 2021-08-13  85  		de = ntfs_query_def(sbi, type);
be71b5cba2e6485 Konstantin Komarov 2021-08-13  86  		if (de && (de->flags & NTFS_ATTR_MUST_BE_RESIDENT))
be71b5cba2e6485 Konstantin Komarov 2021-08-13  87  			return true;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  88  		return false;
be71b5cba2e6485 Konstantin Komarov 2021-08-13  89  	}
be71b5cba2e6485 Konstantin Komarov 2021-08-13  90  }
be71b5cba2e6485 Konstantin Komarov 2021-08-13  91  

:::::: The code at line 70 was first introduced by commit
:::::: be71b5cba2e6485e8959da7a9f9a44461a1bb074 fs/ntfs3: Add attrib operations

:::::: TO: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
:::::: CC: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

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

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

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

end of thread, other threads:[~2022-06-03  5:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03  5:24 fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-04-17 11:16 kernel test robot
2021-11-05 19:31 kernel test robot
2021-11-05 19:31 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.