All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type
@ 2020-07-27 15:02 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-07-27 15:02 UTC (permalink / raw)
  To: David Sterba; +Cc: kbuild-all, linux-kernel

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

Hi David,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   92ed301919932f777713b9172e525674157e983d
commit: f7cea56c0fff95bd5a6cd21b9fa299f66193b604 btrfs: sysfs: export supported checksums
date:   8 months ago
config: h8300-randconfig-r021-20200727 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f7cea56c0fff95bd5a6cd21b9fa299f66193b604
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 

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

   In file included from fs/btrfs/tests/extent-map-tests.c:8:
>> fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    2166 | size_t __const btrfs_get_num_csums(void);
         |        ^~~~~~~

vim +2166 fs/btrfs/tests/../ctree.h

  2113	
  2114	/* struct btrfs_super_block */
  2115	BTRFS_SETGET_STACK_FUNCS(super_bytenr, struct btrfs_super_block, bytenr, 64);
  2116	BTRFS_SETGET_STACK_FUNCS(super_flags, struct btrfs_super_block, flags, 64);
  2117	BTRFS_SETGET_STACK_FUNCS(super_generation, struct btrfs_super_block,
  2118				 generation, 64);
  2119	BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64);
  2120	BTRFS_SETGET_STACK_FUNCS(super_sys_array_size,
  2121				 struct btrfs_super_block, sys_chunk_array_size, 32);
  2122	BTRFS_SETGET_STACK_FUNCS(super_chunk_root_generation,
  2123				 struct btrfs_super_block, chunk_root_generation, 64);
  2124	BTRFS_SETGET_STACK_FUNCS(super_root_level, struct btrfs_super_block,
  2125				 root_level, 8);
  2126	BTRFS_SETGET_STACK_FUNCS(super_chunk_root, struct btrfs_super_block,
  2127				 chunk_root, 64);
  2128	BTRFS_SETGET_STACK_FUNCS(super_chunk_root_level, struct btrfs_super_block,
  2129				 chunk_root_level, 8);
  2130	BTRFS_SETGET_STACK_FUNCS(super_log_root, struct btrfs_super_block,
  2131				 log_root, 64);
  2132	BTRFS_SETGET_STACK_FUNCS(super_log_root_transid, struct btrfs_super_block,
  2133				 log_root_transid, 64);
  2134	BTRFS_SETGET_STACK_FUNCS(super_log_root_level, struct btrfs_super_block,
  2135				 log_root_level, 8);
  2136	BTRFS_SETGET_STACK_FUNCS(super_total_bytes, struct btrfs_super_block,
  2137				 total_bytes, 64);
  2138	BTRFS_SETGET_STACK_FUNCS(super_bytes_used, struct btrfs_super_block,
  2139				 bytes_used, 64);
  2140	BTRFS_SETGET_STACK_FUNCS(super_sectorsize, struct btrfs_super_block,
  2141				 sectorsize, 32);
  2142	BTRFS_SETGET_STACK_FUNCS(super_nodesize, struct btrfs_super_block,
  2143				 nodesize, 32);
  2144	BTRFS_SETGET_STACK_FUNCS(super_stripesize, struct btrfs_super_block,
  2145				 stripesize, 32);
  2146	BTRFS_SETGET_STACK_FUNCS(super_root_dir, struct btrfs_super_block,
  2147				 root_dir_objectid, 64);
  2148	BTRFS_SETGET_STACK_FUNCS(super_num_devices, struct btrfs_super_block,
  2149				 num_devices, 64);
  2150	BTRFS_SETGET_STACK_FUNCS(super_compat_flags, struct btrfs_super_block,
  2151				 compat_flags, 64);
  2152	BTRFS_SETGET_STACK_FUNCS(super_compat_ro_flags, struct btrfs_super_block,
  2153				 compat_ro_flags, 64);
  2154	BTRFS_SETGET_STACK_FUNCS(super_incompat_flags, struct btrfs_super_block,
  2155				 incompat_flags, 64);
  2156	BTRFS_SETGET_STACK_FUNCS(super_csum_type, struct btrfs_super_block,
  2157				 csum_type, 16);
  2158	BTRFS_SETGET_STACK_FUNCS(super_cache_generation, struct btrfs_super_block,
  2159				 cache_generation, 64);
  2160	BTRFS_SETGET_STACK_FUNCS(super_magic, struct btrfs_super_block, magic, 64);
  2161	BTRFS_SETGET_STACK_FUNCS(super_uuid_tree_generation, struct btrfs_super_block,
  2162				 uuid_tree_generation, 64);
  2163	
  2164	int btrfs_super_csum_size(const struct btrfs_super_block *s);
  2165	const char *btrfs_super_csum_name(u16 csum_type);
> 2166	size_t __const btrfs_get_num_csums(void);
  2167	
  2168	

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

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

* fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type
@ 2020-07-27 15:02 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-07-27 15:02 UTC (permalink / raw)
  To: kbuild-all

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

Hi David,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   92ed301919932f777713b9172e525674157e983d
commit: f7cea56c0fff95bd5a6cd21b9fa299f66193b604 btrfs: sysfs: export supported checksums
date:   8 months ago
config: h8300-randconfig-r021-20200727 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f7cea56c0fff95bd5a6cd21b9fa299f66193b604
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 

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

   In file included from fs/btrfs/tests/extent-map-tests.c:8:
>> fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    2166 | size_t __const btrfs_get_num_csums(void);
         |        ^~~~~~~

vim +2166 fs/btrfs/tests/../ctree.h

  2113	
  2114	/* struct btrfs_super_block */
  2115	BTRFS_SETGET_STACK_FUNCS(super_bytenr, struct btrfs_super_block, bytenr, 64);
  2116	BTRFS_SETGET_STACK_FUNCS(super_flags, struct btrfs_super_block, flags, 64);
  2117	BTRFS_SETGET_STACK_FUNCS(super_generation, struct btrfs_super_block,
  2118				 generation, 64);
  2119	BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64);
  2120	BTRFS_SETGET_STACK_FUNCS(super_sys_array_size,
  2121				 struct btrfs_super_block, sys_chunk_array_size, 32);
  2122	BTRFS_SETGET_STACK_FUNCS(super_chunk_root_generation,
  2123				 struct btrfs_super_block, chunk_root_generation, 64);
  2124	BTRFS_SETGET_STACK_FUNCS(super_root_level, struct btrfs_super_block,
  2125				 root_level, 8);
  2126	BTRFS_SETGET_STACK_FUNCS(super_chunk_root, struct btrfs_super_block,
  2127				 chunk_root, 64);
  2128	BTRFS_SETGET_STACK_FUNCS(super_chunk_root_level, struct btrfs_super_block,
  2129				 chunk_root_level, 8);
  2130	BTRFS_SETGET_STACK_FUNCS(super_log_root, struct btrfs_super_block,
  2131				 log_root, 64);
  2132	BTRFS_SETGET_STACK_FUNCS(super_log_root_transid, struct btrfs_super_block,
  2133				 log_root_transid, 64);
  2134	BTRFS_SETGET_STACK_FUNCS(super_log_root_level, struct btrfs_super_block,
  2135				 log_root_level, 8);
  2136	BTRFS_SETGET_STACK_FUNCS(super_total_bytes, struct btrfs_super_block,
  2137				 total_bytes, 64);
  2138	BTRFS_SETGET_STACK_FUNCS(super_bytes_used, struct btrfs_super_block,
  2139				 bytes_used, 64);
  2140	BTRFS_SETGET_STACK_FUNCS(super_sectorsize, struct btrfs_super_block,
  2141				 sectorsize, 32);
  2142	BTRFS_SETGET_STACK_FUNCS(super_nodesize, struct btrfs_super_block,
  2143				 nodesize, 32);
  2144	BTRFS_SETGET_STACK_FUNCS(super_stripesize, struct btrfs_super_block,
  2145				 stripesize, 32);
  2146	BTRFS_SETGET_STACK_FUNCS(super_root_dir, struct btrfs_super_block,
  2147				 root_dir_objectid, 64);
  2148	BTRFS_SETGET_STACK_FUNCS(super_num_devices, struct btrfs_super_block,
  2149				 num_devices, 64);
  2150	BTRFS_SETGET_STACK_FUNCS(super_compat_flags, struct btrfs_super_block,
  2151				 compat_flags, 64);
  2152	BTRFS_SETGET_STACK_FUNCS(super_compat_ro_flags, struct btrfs_super_block,
  2153				 compat_ro_flags, 64);
  2154	BTRFS_SETGET_STACK_FUNCS(super_incompat_flags, struct btrfs_super_block,
  2155				 incompat_flags, 64);
  2156	BTRFS_SETGET_STACK_FUNCS(super_csum_type, struct btrfs_super_block,
  2157				 csum_type, 16);
  2158	BTRFS_SETGET_STACK_FUNCS(super_cache_generation, struct btrfs_super_block,
  2159				 cache_generation, 64);
  2160	BTRFS_SETGET_STACK_FUNCS(super_magic, struct btrfs_super_block, magic, 64);
  2161	BTRFS_SETGET_STACK_FUNCS(super_uuid_tree_generation, struct btrfs_super_block,
  2162				 uuid_tree_generation, 64);
  2163	
  2164	int btrfs_super_csum_size(const struct btrfs_super_block *s);
  2165	const char *btrfs_super_csum_name(u16 csum_type);
> 2166	size_t __const btrfs_get_num_csums(void);
  2167	
  2168	

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

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

* Re: fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type
  2020-07-27 15:02 ` kernel test robot
@ 2020-07-27 15:35   ` David Sterba
  -1 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2020-07-27 15:35 UTC (permalink / raw)
  To: kernel test robot; +Cc: David Sterba, kbuild-all, linux-kernel

On Mon, Jul 27, 2020 at 11:02:07PM +0800, kernel test robot wrote:
> Hi David,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   92ed301919932f777713b9172e525674157e983d
> commit: f7cea56c0fff95bd5a6cd21b9fa299f66193b604 btrfs: sysfs: export supported checksums
> date:   8 months ago
> config: h8300-randconfig-r021-20200727 (attached as .config)
> compiler: h8300-linux-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout f7cea56c0fff95bd5a6cd21b9fa299f66193b604
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 
> 
> 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 >>):
> 
>    In file included from fs/btrfs/tests/extent-map-tests.c:8:
> >> fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
>     2166 | size_t __const btrfs_get_num_csums(void);
>          |        ^~~~~~~

Ah right, the attribute is supposed to be __attribute_const__, thanks
for the report.

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

* Re: fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type
@ 2020-07-27 15:35   ` David Sterba
  0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2020-07-27 15:35 UTC (permalink / raw)
  To: kbuild-all

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

On Mon, Jul 27, 2020 at 11:02:07PM +0800, kernel test robot wrote:
> Hi David,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   92ed301919932f777713b9172e525674157e983d
> commit: f7cea56c0fff95bd5a6cd21b9fa299f66193b604 btrfs: sysfs: export supported checksums
> date:   8 months ago
> config: h8300-randconfig-r021-20200727 (attached as .config)
> compiler: h8300-linux-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout f7cea56c0fff95bd5a6cd21b9fa299f66193b604
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 
> 
> 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 >>):
> 
>    In file included from fs/btrfs/tests/extent-map-tests.c:8:
> >> fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
>     2166 | size_t __const btrfs_get_num_csums(void);
>          |        ^~~~~~~

Ah right, the attribute is supposed to be __attribute_const__, thanks
for the report.

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

end of thread, other threads:[~2020-07-27 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 15:02 fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on function return type kernel test robot
2020-07-27 15:02 ` kernel test robot
2020-07-27 15:35 ` David Sterba
2020-07-27 15:35   ` David Sterba

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.