lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202506272051.Ho8GUiyW-lkp@intel.com>
Date: Fri, 27 Jun 2025 20:34:31 +0800
From: kernel test robot <lkp@...el.com>
To: Bo Liu <liubo03@...pur.com>, phillip@...ashfs.org.uk
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Bo Liu <liubo03@...pur.com>
Subject: Re: [PATCH] Squashfs: add page cache share support

Hi Bo,

kernel test robot noticed the following build errors:

[auto build test ERROR on v6.16-rc3]
[also build test ERROR on linus/master next-20250627]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Bo-Liu/Squashfs-add-page-cache-share-support/20250626-084010
base:   v6.16-rc3
patch link:    https://lore.kernel.org/r/20250626003644.3675-1-liubo03%40inspur.com
patch subject: [PATCH] Squashfs: add page cache share support
config: sparc64-randconfig-r054-20250627 (https://download.01.org/0day-ci/archive/20250627/202506272051.Ho8GUiyW-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250627/202506272051.Ho8GUiyW-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506272051.Ho8GUiyW-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/squashfs/pagecache_share.c:16:
   fs/squashfs/xattr.h: In function 'squashfs_read_xattr_id_table':
   fs/squashfs/xattr.h:22:13: error: implicit declaration of function 'squashfs_read_table'; did you mean 'squashfs_read_xattr_id_table'? [-Werror=implicit-function-declaration]
     id_table = squashfs_read_table(sb, start, sizeof(*id_table));
                ^~~~~~~~~~~~~~~~~~~
                squashfs_read_xattr_id_table
>> fs/squashfs/xattr.h:22:51: error: dereferencing pointer to incomplete type 'struct squashfs_xattr_id_table'
     id_table = squashfs_read_table(sb, start, sizeof(*id_table));
                                                      ^~~~~~~~~
   fs/squashfs/xattr.h:29:2: error: implicit declaration of function 'ERROR'; did you mean 'ERR_PTR'? [-Werror=implicit-function-declaration]
     ERROR("Xattrs in filesystem, these will be ignored\n");
     ^~~~~
     ERR_PTR
   In file included from fs/squashfs/pagecache_share.c:18:
   fs/squashfs/squashfs.h: At top level:
   fs/squashfs/squashfs.h:25:12: warning: 'struct squashfs_page_actor' declared inside parameter list will not be visible outside of this definition or declaration
        struct squashfs_page_actor *);
               ^~~~~~~~~~~~~~~~~~~
   fs/squashfs/squashfs.h:40:14: error: conflicting types for 'squashfs_read_table'
    extern void *squashfs_read_table(struct super_block *, u64, int);
                 ^~~~~~~~~~~~~~~~~~~
   In file included from fs/squashfs/pagecache_share.c:16:
   fs/squashfs/xattr.h:22:13: note: previous implicit declaration of 'squashfs_read_table' was here
     id_table = squashfs_read_table(sb, start, sizeof(*id_table));
                ^~~~~~~~~~~~~~~~~~~
   In file included from fs/squashfs/pagecache_share.c:18:
   fs/squashfs/squashfs.h:49:26: warning: 'struct squashfs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration
     void * (*create)(struct squashfs_sb_info *msblk, void *comp_opts);
                             ^~~~~~~~~~~~~~~~
   fs/squashfs/squashfs.h:50:25: warning: 'struct squashfs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration
     void (*destroy)(struct squashfs_sb_info *msblk);
                            ^~~~~~~~~~~~~~~~
   fs/squashfs/squashfs.h:52:37: warning: 'struct squashfs_page_actor' declared inside parameter list will not be visible outside of this definition or declaration
         int offset, int length, struct squashfs_page_actor *output);
                                        ^~~~~~~~~~~~~~~~~~~
   fs/squashfs/squashfs.h:51:27: warning: 'struct squashfs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration
     int (*decompress)(struct squashfs_sb_info *msblk, struct bio *bio,
                              ^~~~~~~~~~~~~~~~
   In file included from include/uapi/linux/posix_types.h:5,
                    from include/uapi/linux/types.h:14,
                    from include/linux/types.h:6,
                    from include/linux/kasan-checks.h:5,
                    from include/asm-generic/rwonce.h:26,
                    from ./arch/sparc/include/generated/asm/rwonce.h:1,
                    from include/linux/compiler.h:390,
                    from include/linux/build_bug.h:5,
                    from include/linux/bits.h:32,
                    from include/linux/bitops.h:6,
                    from include/linux/bitmap.h:8,
                    from include/linux/xarray.h:12,
                    from fs/squashfs/pagecache_share.c:5:
   include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void'
    #define NULL ((void *)0)
                   ^~~~
   fs/squashfs/xattr.h:39:28: note: in expansion of macro 'NULL'
    #define squashfs_listxattr NULL
                               ^~~~
   fs/squashfs/squashfs.h:93:16: note: in expansion of macro 'squashfs_listxattr'
    extern ssize_t squashfs_listxattr(struct dentry *, char *, size_t);
                   ^~~~~~~~~~~~~~~~~~
   include/linux/stddef.h:8:23: error: expected ')' before numeric constant
    #define NULL ((void *)0)
                          ^
   fs/squashfs/xattr.h:39:28: note: in expansion of macro 'NULL'
    #define squashfs_listxattr NULL
                               ^~~~
   fs/squashfs/squashfs.h:93:16: note: in expansion of macro 'squashfs_listxattr'
    extern ssize_t squashfs_listxattr(struct dentry *, char *, size_t);
                   ^~~~~~~~~~~~~~~~~~
   include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void'
    #define NULL ((void *)0)
                   ^~~~
   fs/squashfs/xattr.h:40:33: note: in expansion of macro 'NULL'
    #define squashfs_xattr_handlers NULL
                                    ^~~~
   fs/squashfs/squashfs.h:119:43: note: in expansion of macro 'squashfs_xattr_handlers'
    extern const struct xattr_handler * const squashfs_xattr_handlers[];
                                              ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stddef.h:8:23: error: expected ')' before numeric constant
    #define NULL ((void *)0)
                          ^
   fs/squashfs/xattr.h:40:33: note: in expansion of macro 'NULL'
    #define squashfs_xattr_handlers NULL
                                    ^~~~
   fs/squashfs/squashfs.h:119:43: note: in expansion of macro 'squashfs_xattr_handlers'
    extern const struct xattr_handler * const squashfs_xattr_handlers[];
                                              ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +22 fs/squashfs/xattr.h

f37aa4c7366e23f Phillip Lougher 2021-02-09 @22  	id_table = squashfs_read_table(sb, start, sizeof(*id_table));
f37aa4c7366e23f Phillip Lougher 2021-02-09  23  	if (IS_ERR(id_table))
f37aa4c7366e23f Phillip Lougher 2021-02-09  24  		return (__le64 *) id_table;
f37aa4c7366e23f Phillip Lougher 2021-02-09  25  
f37aa4c7366e23f Phillip Lougher 2021-02-09  26  	*xattr_table_start = le64_to_cpu(id_table->xattr_table_start);
f37aa4c7366e23f Phillip Lougher 2021-02-09  27  	kfree(id_table);
f37aa4c7366e23f Phillip Lougher 2021-02-09  28  
01e5b4e4e897fce Phillip Lougher 2010-05-17  29  	ERROR("Xattrs in filesystem, these will be ignored\n");
01e5b4e4e897fce Phillip Lougher 2010-05-17  30  	return ERR_PTR(-ENOTSUPP);
01e5b4e4e897fce Phillip Lougher 2010-05-17  31  }
01e5b4e4e897fce Phillip Lougher 2010-05-17  32  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ