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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 8 Oct 2022 05:21:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Josef Bacik <josef@...icpanda.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, David Sterba <dsterba@...e.com>,
        Filipe Manana <fdmanana@...e.com>
Subject: [kdave-btrfs-devel:stable-6.0 1/1] fs/btrfs/extent_io.c:1502:34:
 error: too few arguments to function call, expected 7, have 5

tree:   https://github.com/kdave/btrfs-devel.git stable-6.0
head:   3405ac932abaa81ce2e1cf0f8cc9b311f7a8287d
commit: 3405ac932abaa81ce2e1cf0f8cc9b311f7a8287d [1/1] btrfs: unlock locked extent area if we have contention
config: i386-randconfig-a005-20221003
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        # https://github.com/kdave/btrfs-devel/commit/3405ac932abaa81ce2e1cf0f8cc9b311f7a8287d
        git remote add kdave-btrfs-devel https://github.com/kdave/btrfs-devel.git
        git fetch --no-tags kdave-btrfs-devel stable-6.0
        git checkout 3405ac932abaa81ce2e1cf0f8cc9b311f7a8287d
        # 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=i386 SHELL=/bin/bash fs/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> fs/btrfs/extent_io.c:1502:34: error: too few arguments to function call, expected 7, have 5
                                            EXTENT_LOCKED, cached_state);
                                                                       ^
   fs/btrfs/extent_io.c:1465:5: note: 'clear_extent_bit' declared here
   int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
       ^
>> fs/btrfs/extent_io.c:1505:9: error: implicit declaration of function '__set_extent_bit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   err = __set_extent_bit(tree, start, end, EXTENT_LOCKED,
                         ^
   fs/btrfs/extent_io.c:1505:9: note: did you mean 'set_extent_bit'?
   fs/btrfs/extent_io.c:1006:5: note: 'set_extent_bit' declared here
   int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits,
       ^
   2 errors generated.


vim +1502 fs/btrfs/extent_io.c

  1485	
  1486	/*
  1487	 * either insert or lock state struct between start and end use mask to tell
  1488	 * us if waiting is desired.
  1489	 */
  1490	int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
  1491			     struct extent_state **cached_state)
  1492	{
  1493		int err;
  1494		u64 failed_start;
  1495	
  1496		err = set_extent_bit(tree, start, end, EXTENT_LOCKED,
  1497				     EXTENT_LOCKED, &failed_start,
  1498				     cached_state, GFP_NOFS, NULL);
  1499		while (err == -EEXIST) {
  1500			if (failed_start != start)
  1501				clear_extent_bit(tree, start, failed_start - 1,
> 1502						 EXTENT_LOCKED, cached_state);
  1503	
  1504			wait_extent_bit(tree, failed_start, end, EXTENT_LOCKED);
> 1505			err = __set_extent_bit(tree, start, end, EXTENT_LOCKED,
  1506					       &failed_start, cached_state, NULL,
  1507					       GFP_NOFS);
  1508		}
  1509		return err;
  1510	}
  1511	

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

View attachment "config" of type "text/plain" (134981 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ