From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F71D18C933 for ; Tue, 10 Feb 2026 08:43:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770713008; cv=none; b=nYctBY8LD/Mc+D89X75H+5oPVgbCJB+IeQ+FDul/MJIT2ltd+3ekFAP91L55qtBkc8qrdOSaUWzwrEPghnfruyDN1GMCnagyEe333zFmC7Vo4/7/vMmw7V+1xcuRn0NWoeKwATT/k3ECz5r9sQHz2mfdEUgJMt2GCEA2Fx6oeN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770713008; c=relaxed/simple; bh=Pr9nRycdxoc//fNTPViwz8OG4Ku81qb0AGYpsY6KZNM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=EYru6DNuwopulGdjh8RK07lWZlCXycCYx5OLC/fHeF/V3StNOdf1M/t5fDoANuDzuHdwexP4cQjqm4fQ2xAMx7lEn4RAMh/pOVAaCd44iGlBW5rIB1K9lQVnCqwzqvCtsulNmDm762B2hUthBhZsHai5315/eTjkRLh8v6RAbe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tDII5Edx; arc=none smtp.client-ip=209.85.128.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tDII5Edx" Received: by mail-wm1-f65.google.com with SMTP id 5b1f17b1804b1-47ee3a63300so6600305e9.2 for ; Tue, 10 Feb 2026 00:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770713006; x=1771317806; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gI+qmGEV3K9y9s6cZ8oVhrw4MxnWzMdbgj2AbEOu01U=; b=tDII5Edx5T7kcp5/j1uuABlhFKLQB0GATpN+FTZH1TfzL7R/xaZkU2TtNbK00S/LxH hX+IT64WPtP+QtsFTyEmHbwPqq0qAi7nDzTRPRoM74OWV68onU8pLBVD2xiROpfpwe0j Rxm+d9IV/sTYcr2sFR+wv8fhHI0mUkK43ixf0AnASfSqjUTVS9SKRHGXWtg2KX/0lSnD +S3QrZWYlmcDCmiE0oa+avyxYSv2jbz1yeg3QNNepmjxEdV5Etis3ECcjVgPg1yZVPSS sUYxIlpptwjZYf9BZtw6CUpBMGSlVs48QSIBUIQE8zfnyOwxWZMcxxP95TrG2qMt8iom 73VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770713006; x=1771317806; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gI+qmGEV3K9y9s6cZ8oVhrw4MxnWzMdbgj2AbEOu01U=; b=C3rSH7rPfbZoTOQETFDVvLK5lENNoUkaW1T7Px5VjMyl/vospJD+nPwBjQoSi//yvr agDDH2FiyXY2GGLtQ+aEIo+9E/qGRLHFT+QaEOEZ0Ws4WsWlPqMQjZ/AG/3EeyMxpgR9 UZjhB1FGEVWgRNAdlpSrFKb23fuOulYjzKr7DhbuGgJhisv+mHX6B4gwOs5EMbln6AUx EP6bu9SjIeI7pCBFyqusuFnwl9eq/H2YSgdbEs0ivuIVpsG9eij+CG48Rye2tQ61Sp5w rbPdu5LLi0Lsp3dcPBYehrOtbn4WdhF02zWWBwX5t4XkyqEekGfc2VeNZk0SnU24m91x IB7w== X-Forwarded-Encrypted: i=1; AJvYcCUEEz5Z2x39TGaDTsS4BF1pfyZe3LkiXHISJHZPA7Z1qyGZc5PrTQytD7aDvs3a2JSW5CWg/hM1sqnsTsU=@vger.kernel.org X-Gm-Message-State: AOJu0Ywtqxtv+pxZNB/DkKlGU2qmwpQ81XV1PNIbyC695GV5+K2c59uk erYkafYadTzQDlj++bAOMOcDIxO9ce2Xyh9bw0DLeMGOpRWKtFAqEMCkzEAE0W2VRMk= X-Gm-Gg: AZuq6aJX8ifINZe6cUeE5vf82I2t4C++FC30pWM+N7aolLM3YUQ/shrrXUmn3kXYL1m tQkesubCpAFutzXIRHmO4KkWauN6HM126owh22bEpWXodRkAdR0ANUGFMkyYiOo10SUmsw5Z5bJ fV1aCqGLdeAEvtaPn06L3DLzDR/MrzExBHC98VMgw8e9RuRGKeQoReG7nGJV7n/m7SAiP67C1Mm o6dnsGSH6uhPKyOoYfJoNaQMTgh0xlYCowtdbkIG6DZLL99S+AhS4O8oB0Bwa34cF+bdY/SrVSc RR7yfxIXSZQgurTSRbVENocHTok28vM9yc4Cc7tfUsjgeSaIHX2MEODUWUXuDUTSmi+vIFYc+ml WRAk8HhQ/WTm+o0fKx9aX/eGBtSxZ+Ge+UvlUiZt5Y8V/d3yjv5Tkxmis69AYMtoCouOhKDNLJt bNDVsX/kSZ9VMc46JtVjawCz6eehHYCdY+W1f+ZeI= X-Received: by 2002:a05:600c:3b83:b0:483:4a95:66da with SMTP id 5b1f17b1804b1-4834a956702mr44488295e9.13.1770713005462; Tue, 10 Feb 2026 00:43:25 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4834d7d53c3sm49773385e9.7.2026.02.10.00.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 00:43:24 -0800 (PST) Date: Tue, 10 Feb 2026 11:43:21 +0300 From: Dan Carpenter To: Naohiro Aota Cc: linux-btrfs@vger.kernel.org, linux-kernel Subject: [bug report] btrfs: tests: zoned: add tests cases for zoned code Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@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: [ Smatch checking is paused while we raise funding. #SadFace https://lore.kernel.org/all/aTaiGSbWZ9DJaGo7@stanley.mountain/ -dan ] Hello Naohiro Aota, Commit df321b214f62 ("btrfs: tests: zoned: add tests cases for zoned code") from Feb 4, 2026 (linux-next), leads to the following Smatch static checker warning: fs/btrfs/tests/zoned-tests.c:68 test_load_zone_info() warn: duplicate check 'zone_info' (previous on line 62) fs/btrfs/tests/zoned-tests.c 40 static int test_load_zone_info(struct btrfs_fs_info *fs_info, 41 const 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 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) { s/zone_info/active/ 69 test_err("cannot allocate active bitmap"); 70 return -ENOMEM; 71 } 72 regards, dan carpenter