[josef-btrfs:btrfs-readdir 4/4] fs//btrfs/ref-verify.c:231:21: error: storage size of 'stack_trace' isn't known

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git btrfs-readdir
head:   fcde4ff2122bcd230de62daec6d466631666d284
commit: fcde4ff2122bcd230de62daec6d466631666d284 [4/4] Btrfs: add a extent ref verify tool
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout fcde4ff2122bcd230de62daec6d466631666d284
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All errors (new ones prefixed by >>):

   fs//btrfs/ref-verify.c: In function '__save_stack_trace':
>> fs//btrfs/ref-verify.c:231:21: error: storage size of 'stack_trace' isn't known
     struct stack_trace stack_trace;
                        ^~~~~~~~~~~
   fs//btrfs/ref-verify.c:231:21: warning: unused variable 'stack_trace' [-Wunused-variable]
   fs//btrfs/ref-verify.c: In function 'build_ref_tree_for_root':
   fs//btrfs/ref-verify.c:583:7: error: implicit declaration of function 'btrfs_read_lock_root_node' [-Werror=implicit-function-declaration]
     eb = btrfs_read_lock_root_node(root);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs//btrfs/ref-verify.c:583:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     eb = btrfs_read_lock_root_node(root);
        ^
   fs//btrfs/ref-verify.c: In function 'dump_ref_action':
>> fs//btrfs/ref-verify.c:616:21: error: storage size of 'trace' isn't known
     struct stack_trace trace;
                        ^~~~~
   fs//btrfs/ref-verify.c:616:21: warning: unused variable 'trace' [-Wunused-variable]
   cc1: some warnings being treated as errors

vim +231 fs//btrfs/ref-verify.c

   228	
   229	static void __save_stack_trace(struct ref_action *ra)
   230	{
 > 231		struct stack_trace stack_trace;
   232	
   233		stack_trace.max_entries = MAX_TRACE;
   234		stack_trace.nr_entries = 0;
   235		stack_trace.entries = ra->trace;
   236		stack_trace.skip = 2;
   237		save_stack_trace(&stack_trace);
   238		ra->trace_len = stack_trace.nr_entries;
   239	}
   240	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux