All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/b4-sysfs-const-attr-prep-easy 20/57] fs/f2fs/sysfs.c:1363:22: error: initialization of 'ssize_t (*)(const struct f2fs_attr *, struct f2fs_sb_info *, char *)' {aka 'int (*)(const struct f2fs_attr *, struct f2fs_sb_info *, char *)'} from incompatible pointer type 'ssize_t (*)(struct f2fs_attr ...
@ 2026-06-24  1:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-24  1:49 UTC (permalink / raw)
  To: Thomas Weißschuh ; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/b4-sysfs-const-attr-prep-easy
head:   67a3c6abb9033d2ce2a9ac12d4cfb9530148b38f
commit: 8a368f6b39b939b42a5bc9faff00f93d907f2143 [20/57] f2fs
config: parisc-allmodconfig (https://download.01.org/0day-ci/archive/20260624/202606240924.IuGtrvSL-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260624/202606240924.IuGtrvSL-lkp@intel.com/reproduce)

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

All errors (new ones prefixed by >>):

   In file included from include/linux/kobject.h:20,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:1790,
                    from include/linux/pagemap.h:8,
                    from include/linux/f2fs_fs.h:11,
                    from fs/f2fs/sysfs.c:11:
>> fs/f2fs/sysfs.c:1363:22: error: initialization of 'ssize_t (*)(const struct f2fs_attr *, struct f2fs_sb_info *, char *)' {aka 'int (*)(const struct f2fs_attr *, struct f2fs_sb_info *, char *)'} from incompatible pointer type 'ssize_t (*)(struct f2fs_attr *, struct f2fs_sb_info *, char *)' {aka 'int (*)(struct f2fs_attr *, struct f2fs_sb_info *, char *)'} [-Wincompatible-pointer-types]
    1363 | F2FS_GENERAL_RO_ATTR(defrag_blocks);
         |                      ^~~~~~~~~~~~~
   include/linux/sysfs.h:243:19: note: in definition of macro '__ATTR'
     243 |         .show   = _show,                                                \
         |                   ^~~~~
   fs/f2fs/sysfs.c:1363:1: note: in expansion of macro 'F2FS_GENERAL_RO_ATTR'
    1363 | F2FS_GENERAL_RO_ATTR(defrag_blocks);
         | ^~~~~~~~~~~~~~~~~~~~
   fs/f2fs/sysfs.c:1363:22: note: (near initialization for 'f2fs_attr_defrag_blocks.show')
   include/linux/sysfs.h:243:19: note: in definition of macro '__ATTR'
     243 |         .show   = _show,                                                \
         |                   ^~~~~
   fs/f2fs/sysfs.c:1363:1: note: in expansion of macro 'F2FS_GENERAL_RO_ATTR'
    1363 | F2FS_GENERAL_RO_ATTR(defrag_blocks);
         | ^~~~~~~~~~~~~~~~~~~~
   fs/f2fs/sysfs.c:342:16: note: 'defrag_blocks_show' declared here
     342 | static ssize_t defrag_blocks_show(struct f2fs_attr *a,
         |                ^~~~~~~~~~~~~~~~~~


vim +1363 fs/f2fs/sysfs.c

6201c478dedcf7c Yangtao Li       2023-05-06  1343  
8f1572f7ce6169a Jaegeuk Kim      2017-10-24  1344  F2FS_GENERAL_RO_ATTR(dirty_segments);
fc7100ea2a52fcf Hridya Valsaraju 2020-01-22  1345  F2FS_GENERAL_RO_ATTR(free_segments);
0823427989c1124 Jaegeuk Kim      2021-03-01  1346  F2FS_GENERAL_RO_ATTR(ovp_segments);
8ceffcb29e61ba8 Chao Yu          2017-06-14  1347  F2FS_GENERAL_RO_ATTR(lifetime_write_kbytes);
bf9e697ecd4214c Jaegeuk Kim      2017-07-21  1348  F2FS_GENERAL_RO_ATTR(features);
80d421450187e89 Yunlong Song     2017-10-27  1349  F2FS_GENERAL_RO_ATTR(current_reserved_blocks);
4d3aed70902f299 Daniel Rosenberg 2019-05-29  1350  F2FS_GENERAL_RO_ATTR(unusable);
5aba54302a46fdd Daniel Rosenberg 2019-07-23  1351  F2FS_GENERAL_RO_ATTR(encoding);
3fea0641b06ff4e Chao Yu          2025-05-06  1352  F2FS_GENERAL_RO_ATTR(encoding_flags);
1bd119da0b93d6d Daniel Lee       2025-08-04  1353  F2FS_GENERAL_RO_ATTR(effective_lookup_mode);
a7e679b53393c76 Jaegeuk Kim      2020-02-25  1354  F2FS_GENERAL_RO_ATTR(mounted_time_sec);
ffcde4b29a5f20d Dehe Gu          2020-07-03  1355  F2FS_GENERAL_RO_ATTR(main_blkaddr);
ae2e2804caa120a Jaegeuk Kim      2021-11-29  1356  F2FS_GENERAL_RO_ATTR(pending_discard);
6f092b55e1ad2d5 liujinbao1       2024-02-21  1357  F2FS_GENERAL_RO_ATTR(atgc_enabled);
a3951cd199a5d26 Yangtao Li       2022-10-25  1358  F2FS_GENERAL_RO_ATTR(gc_mode);
fc7100ea2a52fcf Hridya Valsaraju 2020-01-22  1359  #ifdef CONFIG_F2FS_STAT_FS
fc7100ea2a52fcf Hridya Valsaraju 2020-01-22  1360  F2FS_GENERAL_RO_ATTR(moved_blocks_background);
fc7100ea2a52fcf Hridya Valsaraju 2020-01-22  1361  F2FS_GENERAL_RO_ATTR(moved_blocks_foreground);
fc7100ea2a52fcf Hridya Valsaraju 2020-01-22  1362  F2FS_GENERAL_RO_ATTR(avg_vblocks);
265dccda706667b liujinbao1       2026-02-27 @1363  F2FS_GENERAL_RO_ATTR(defrag_blocks);
fc7100ea2a52fcf Hridya Valsaraju 2020-01-22  1364  #endif
bf9e697ecd4214c Jaegeuk Kim      2017-07-21  1365  

:::::: The code at line 1363 was first introduced by commit
:::::: 265dccda706667b9c2b6d690636db1df1f751948 f2fs: Add defrag_blocks sysfs node

:::::: TO: liujinbao1 <liujinbao1@xiaomi.com>
:::::: CC: Jaegeuk Kim <jaegeuk@kernel.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-24  1:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24  1:49 [thomas-weissschuh:b4/b4-sysfs-const-attr-prep-easy 20/57] fs/f2fs/sysfs.c:1363:22: error: initialization of 'ssize_t (*)(const struct f2fs_attr *, struct f2fs_sb_info *, char *)' {aka 'int (*)(const struct f2fs_attr *, struct f2fs_sb_info *, char *)'} from incompatible pointer type 'ssize_t (*)(struct f2fs_attr 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.