From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BDA519E96D for ; Sat, 24 Jan 2026 01:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769219934; cv=none; b=Ygo2bT6xRLfzH4gOUduyQ7yvDJRf95keaSO9B/uaf5G00QjQqsCPn7CoI0mrGzy048JYT2SwMByhOD1kuoUVT6deMwJmpwTuN9t/ByBMEzReHEgT37jrwIr223Uat7rapsS134mBcvIgAVL4fXVExqRIDQhFkqFSQrPJVi7FMoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769219934; c=relaxed/simple; bh=W4KpLvlCDKKiNZ3A7t0u+ak8r2FD3BRHbUWCEIAGDQQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WJKWaJ1rhD+SW5Y9QHYemegDF2+khz5ltMJdRliR6CYqcbCJ09uqv2QXLbaiYf43mXyS86Hd7sf6SwEsMpHdNEK9GSd/jRpSliTvpjXCrtTFg/m+8nYiqd8lVUdHI5/b9cXmDzEcwTMtZRjQ7xENsdEK+SwwH1u2eKG3CTPv8sw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kftpZoc+; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kftpZoc+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769219933; x=1800755933; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=W4KpLvlCDKKiNZ3A7t0u+ak8r2FD3BRHbUWCEIAGDQQ=; b=kftpZoc+5nu62GKa7F1iLUrI8UgQol6MKLUWl4sJnn+VR2Gc+UQNnljC xFphxH6RbKyZaWob79nXwG6SGIrgVOahzcBE7YMmVSE+HWlmug9NufXNa 9l41ETKVGQiqBUl4DLPmQ0NSlhfxJWA89AFF4aTGhlM01EWNn/YhB3Tcg z/emSL7/rq9PCVI3KLeaNbdjVx02ui6fm8IZxcn8VOZnAu5u4tOuAa2Hg 1fE1CYqbv0PqbvZ1u2j+pRKUYzYrPgXWCNDo3pzqi6bxiXaPhB0eEycEm 3YanpXCHFllHGNzVfqvYvNB9wFANQDxthWsbuSMDeCFCs/ZqaAIWxNxO4 A==; X-CSE-ConnectionGUID: LbMPX1VjR2++DoszArncbg== X-CSE-MsgGUID: 4ZNal2CPS0S3U12dhRueAw== X-IronPort-AV: E=McAfee;i="6800,10657,11680"; a="81191727" X-IronPort-AV: E=Sophos;i="6.21,249,1763452800"; d="scan'208";a="81191727" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2026 17:58:52 -0800 X-CSE-ConnectionGUID: PEbsSgEsR5ye0co4CbngPw== X-CSE-MsgGUID: aXwhd8SvTYO2ZBfAUi7BIg== X-ExtLoop1: 1 Received: from igk-lkp-server01.igk.intel.com (HELO afc5bfd7f602) ([10.211.93.152]) by fmviesa003.fm.intel.com with ESMTP; 23 Jan 2026 17:58:50 -0800 Received: from kbuild by afc5bfd7f602 with local (Exim 4.98.2) (envelope-from ) id 1vjSvI-000000000rV-1KHr; Sat, 24 Jan 2026 01:58:48 +0000 Date: Sat, 24 Jan 2026 02:58:23 +0100 From: kernel test robot To: Naohiro Aota , linux-btrfs@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Naohiro Aota Subject: Re: [PATCH 4/4] btrfs: tests: zoned: add selftest for zoned code Message-ID: <202601240254.ewdvMi5U-lkp@intel.com> References: <20260123125920.4129581-5-naohiro.aota@wdc.com> Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260123125920.4129581-5-naohiro.aota@wdc.com> Hi Naohiro, kernel test robot noticed the following build errors: [auto build test ERROR on kdave/for-next] [also build test ERROR on next-20260123] [cannot apply to linus/master v6.16-rc1] [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/Naohiro-Aota/btrfs-tests-add-cleanup-functions-for-test-specific-functions/20260123-210300 base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next patch link: https://lore.kernel.org/r/20260123125920.4129581-5-naohiro.aota%40wdc.com patch subject: [PATCH 4/4] btrfs: tests: zoned: add selftest for zoned code config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260124/202601240254.ewdvMi5U-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260124/202601240254.ewdvMi5U-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202601240254.ewdvMi5U-lkp@intel.com/ All errors (new ones prefixed by >>): >> fs/btrfs/tests/zoned-tests.c:89:8: error: call to undeclared function 'btrfs_load_block_group_by_raid_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | ret = btrfs_load_block_group_by_raid_type(bg, map, zone_info, active, | ^ fs/btrfs/tests/zoned-tests.c:89:8: note: did you mean 'btrfs_load_block_group_zone_info'? fs/btrfs/tests/../zoned.h:195:19: note: 'btrfs_load_block_group_zone_info' declared here 195 | static inline int btrfs_load_block_group_zone_info( | ^ 1 error generated. vim +/btrfs_load_block_group_by_raid_type +89 fs/btrfs/tests/zoned-tests.c 39 40 static int test_load_zone_info(struct btrfs_fs_info *fs_info, 41 struct load_zone_info_test_vector *test) 42 { 43 struct btrfs_block_group *bg __free(btrfs_free_dummy_block_group) = NULL; 44 struct btrfs_chunk_map *map __free(btrfs_free_chunk_map) = NULL; 45 struct zone_info AUTO_KFREE(zone_info); 46 unsigned long AUTO_KFREE(active); 47 int i, ret; 48 49 bg = btrfs_alloc_dummy_block_group(fs_info, test->bg_length); 50 if (!bg) { 51 test_std_err(TEST_ALLOC_BLOCK_GROUP); 52 return -ENOMEM; 53 } 54 55 map = btrfs_alloc_chunk_map(test->num_stripes, GFP_KERNEL); 56 if (!map) { 57 test_std_err(TEST_ALLOC_EXTENT_MAP); 58 return -ENOMEM; 59 } 60 61 zone_info = kcalloc(test->num_stripes, sizeof(*zone_info), GFP_KERNEL); 62 if (!zone_info) { 63 test_err("cannot allocate zone info"); 64 return -ENOMEM; 65 } 66 67 active = bitmap_zalloc(test->num_stripes, GFP_KERNEL); 68 if (!zone_info) { 69 test_err("cannot allocate active bitmap"); 70 return -ENOMEM; 71 } 72 73 map->type = test->raid_type; 74 map->num_stripes = test->num_stripes; 75 if (test->raid_type == BTRFS_BLOCK_GROUP_RAID10) 76 map->sub_stripes = 2; 77 for (i = 0; i < test->num_stripes; i++) { 78 zone_info[i].physical = 0; 79 zone_info[i].alloc_offset = test->alloc_offsets[i]; 80 zone_info[i].capacity = ZONE_SIZE; 81 if (zone_info[i].alloc_offset && zone_info[i].alloc_offset < ZONE_SIZE) 82 __set_bit(i, active); 83 } 84 if (test->degraded) 85 btrfs_set_opt(fs_info->mount_opt, DEGRADED); 86 else 87 btrfs_clear_opt(fs_info->mount_opt, DEGRADED); 88 > 89 ret = btrfs_load_block_group_by_raid_type(bg, map, zone_info, active, 90 test->last_alloc); 91 92 if (ret != test->expected_result) { 93 test_err("unexpected return value: ret %d expected %d", ret, 94 test->expected_result); 95 return -EINVAL; 96 } 97 98 if (!ret && bg->alloc_offset != test->expected_alloc_offset) { 99 test_err("unexpected alloc_offset: alloc_offset %llu expected %llu", 100 bg->alloc_offset, test->expected_alloc_offset); 101 return -EINVAL; 102 } 103 104 return 0; 105 } 106 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki