Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1003244rdb; Fri, 19 Jan 2024 05:32:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJONYlaL1FU16X6gPMQzQ3UoxEXvvK3gPTkDvx1QUsUwnDLb5+XGjzDU7JS9r+OsM45hCz X-Received: by 2002:a17:902:f68f:b0:1d7:489:222e with SMTP id l15-20020a170902f68f00b001d70489222emr2826575plg.20.1705671133052; Fri, 19 Jan 2024 05:32:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705671133; cv=pass; d=google.com; s=arc-20160816; b=WyGoeAKkcndQdDWz3qNX5EnEnbIP4VFIYQKj6YCyhjPNkH145higDx6nYpEwfGHuHl 3HrD65cmRD1G8Ssg6A8S1xNQSSgDcvdjvqdhcj4yrmWZhWwVx0z78CFM4ZcLMGkrjzgG sCsis6Y3CE4N8bvqlVdS62EDTJYQbVilattMeiDOvRr8shwkwXZ/wcEnEcaMldhCBdeH 51mcIuFUSoo6/bPooiFgbDbtTMKnAvhYlH+0w/3HJ5gfsWPlQKH9XIiaaKBSV4hxBr1Z MOHVSQ//S3P3jnUflv68Wq/nZztqhhJ3PtPQM+LYnaPYdY0fIaos+QGLt+eUoz79qi5l g0iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=7FrYS+wSMUJWlSpBCDmBg/UTIW5oAnB9777KA+YoNUY=; fh=wqdGv2e+GXCy2sb66uXFb2RprZ6zxw4r+cyFiWSgVOw=; b=LOLwMZQXEgDhMkWMwCt7UHDJR0nSDe7vipUFMOmCrIS0GPojnW7N/qQE4MVmqgiSst 9h1v75mMQv7IvUZ6DVZefwG8viLw83TWqUVnuvTi462v21Ni7YXH2g9RQ08q32z24Ygj AkeY5nhLEXBNpUzGzct/fYywulL6jF8kUOdXYsZyR9QTMRknGO90xFmGHnvvGxxLLAwX AMcDpc+mZdS7kby5J5D/B4IoXcaqyGX7emFVgM0RpgaYomoGUN7r2vtLAzwzl5EYyWDY csJjUXnPiT8qQ+HsKuT5Ka1/MY2+ga1LSoUZ3yfQ8n/PfAeYfSvEkCcv81HR8gkjsc+d Ayag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FCewUPXH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31205-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q6-20020a170902dac600b001d4868dc9fesi3407368plx.587.2024.01.19.05.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:32:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31205-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FCewUPXH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31205-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 86A592832F4 for ; Fri, 19 Jan 2024 13:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 784D352F81; Fri, 19 Jan 2024 13:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FCewUPXH" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 124A33CF44 for ; Fri, 19 Jan 2024 13:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705671125; cv=none; b=sP1juOqiH41kFhp0IXFq7XqRT2oShE+N4QeWwFh2vzZpKOpdrH6HcmFvpzYB21xPc63/kyWebdP4gVAr1FkZn40pN6AMo1ja5bt47Kan3qaQSz/TMA0u8W4xKt7Y8R8UxPFfpPFiJXyiBeVzZd1RB/q3Djkrd38gqRPCBXOwAM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705671125; c=relaxed/simple; bh=qn1UEj4b4CJ3B1rB43GSf3OHYzLVZsZcT18U3Kng7t8=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=GRIPRhB2J5wA498xLygyefhI2iVZfKGRmEvQIZYYEXZ581xIJJLawUhZ7BcG9CxGQk3MK0uaXydqjND2rdUFHZPoLBhEwbFSBWhT5qgptTLODJLrJ+pymq4mzbEu5EMzd/JhzwkFh72yQgr85KVu2rhWdCo8XwfakNUpG9BTduQ= 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=FCewUPXH; arc=none smtp.client-ip=198.175.65.10 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705671123; x=1737207123; h=date:from:to:cc:subject:message-id:mime-version; bh=qn1UEj4b4CJ3B1rB43GSf3OHYzLVZsZcT18U3Kng7t8=; b=FCewUPXHVz8Rkz16ZhzjncfKuHP9++cro0JO17KDUgPKcFbAJx68NBv+ 2CSqsrdh5ZCXtXIepfyfmfqGwbQJ2E7Zx/YBrP4naIXGRAk0mGIuKkMks FJb0X/lq1Q73zQerCg0CtH2fZKPjSqQ3sLKi/AtwY2Y5GQ3vpmuzzGUef NI5DJWVrDIIQ7sy5IY357PgcGPGB2iBayljFsy4uCPW08sp3fGnoFYFTr 0FmbgOtsEwPpxzmXs8/p1CnhswvR2il3cuA6NaDEWvx4yqAy7IvmLl7Ej G7pdkwydXS+B0Or/RQB+KeDhEuWODbFj2UHp4plm9hucfkbMXNDkn4v4p A==; X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="14101336" X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="14101336" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 05:32:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="33395987" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 19 Jan 2024 05:32:03 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rQoyW-000460-03; Fri, 19 Jan 2024 13:32:00 +0000 Date: Fri, 19 Jan 2024 21:31:24 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: fs/bcachefs/bkey_methods.c:46:5-8: Unneeded variable: "ret". Return " 0" on line 53 Message-ID: <202401192156.IvrA7iSY-lkp@intel.com> 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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9d1694dc91ce7b80bc96d6d8eaf1a1eca668d847 commit: b65db750e2bb9252321fd54c284edd73c1595a09 bcachefs: Enumerate fsck errors date: 3 months ago config: hexagon-randconfig-r061-20240117 (https://download.01.org/0day-ci/archive/20240119/202401192156.IvrA7iSY-lkp@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 9bde5becb44ea071f5e1fa1f5d4071dc8788b18c) 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/202401192156.IvrA7iSY-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> fs/bcachefs/bkey_methods.c:46:5-8: Unneeded variable: "ret". Return " 0" on line 53 fs/bcachefs/bkey_methods.c:219:5-8: Unneeded variable: "ret". Return " 0" on line 229 vim +46 fs/bcachefs/bkey_methods.c 42 43 static int empty_val_key_invalid(struct bch_fs *c, struct bkey_s_c k, 44 enum bkey_invalid_flags flags, struct printbuf *err) 45 { > 46 int ret = 0; 47 48 bkey_fsck_err_on(bkey_val_bytes(k.k), c, err, 49 bkey_val_size_nonzero, 50 "incorrect value size (%zu != 0)", 51 bkey_val_bytes(k.k)); 52 fsck_err: > 53 return ret; 54 } 55 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki