Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp30291rdh; Tue, 6 Feb 2024 18:01:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf+OAp1PFYFOenIu4e7VxjFals/nCKNC2Sf+5MMQrGUPt1kiKzWMXlyxMuLc3Yu79tZAc8 X-Received: by 2002:a17:90a:dc14:b0:296:68c4:9348 with SMTP id i20-20020a17090adc1400b0029668c49348mr1462007pjv.37.1707271283150; Tue, 06 Feb 2024 18:01:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707271283; cv=pass; d=google.com; s=arc-20160816; b=E0ozcZtxOTyKXEpz69W2oVorh/JJDo4ukmSdJSp7ArXOn15bRm1Bm+hrIqa4LS9diR kg/ykml/bHjkUbN8kiI+6DlcOqAi8BlnpjU6T13GfSbCTZYwC//x3yS6iXfY8DV55q0s 8pqEFQ58cLBarSoVn1lW4iEP1hHt2QP5ArlJLsCc+75p/qwFCaJLdAZZFFBpDNxhJkkU +ZtkyuI2Et6SCvGu4haKJJfqvoLts/ZANkfJqoozXSTxATeVkVYfcStW9Xm3AfIfsZK2 eu9ioDsUS9jTonVfLgFeQthUINkX4aWqMgPWl48jDEcDURxdA2dML0agRLzMvNrmvV9A D0og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F28aSKT/vTHm8X1J34HlmKaMPzRiIqjKw9WFJzPk+yo=; fh=v3bCtNKqmwMsAD2w2gm4RfIfAPqJ4MCpgpBGhonKWcs=; b=VFgCL4m6SS58KkooOib6gyBXQO5y4rPKdkTSjC5d6oIKNMSQ61EFUfbiM4ciUYgMon u3ejRIwkYbNTUPvLP75cNZqWdBo5QcUpIfk9R1vflm7bTVzlx3qbxEQGlciEKkKI7ej2 f1mY34ffbn7E8Vbb2hjOWd4byL2+8hzMlTSG1/Bgae4unn7b6OeUaGr2U+pgIxTQGfF6 NG2yB2EQv/68I9jRlQxpD8jSf1P1WOZm9ySVrBaSj+HReBXCu/f2xS4ErKgReMsBM7Tr dDujIlVuEop1+KxQjIYQMJPIKMOQ0aFzEc0QwflSeZqRapGxTLhXiLSHvEpPak03avDY 75kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B3O55aQ4; 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-55826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVlpfyPflaHtH5/+Mxaqt0Qd4TE15eFTmiGQwFwOOk20xgkf58q2YyI5xyUhoSjGchqwPFNy/e0/vf8ZHX1Tv5roNLDmnC1/YFNMgYSGQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id np10-20020a17090b4c4a00b0029640db349esi438021pjb.30.2024.02.06.18.01.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 18:01:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B3O55aQ4; 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-55826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55826-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 33F3D28D992 for ; Wed, 7 Feb 2024 01:55:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C160EECC; Wed, 7 Feb 2024 01:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B3O55aQ4" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 244A0DF78; Wed, 7 Feb 2024 01:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707270933; cv=none; b=LtyF4f+Q3XDAoCbjHI4FIHLajTgj/TUeGXqYV0VZlrE0PpZPACCWQKppSRtFlPOHhx/daGa7zT6/PcXSZntrXvF1xyHUPm1jcakE/qxpt0o7wkd7MxkToCRkGGZhX4U4Fa/b0oZlM8LwvCBQbz8DUaL6mHu0r3lg8Bg/Gi/3Cp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707270933; c=relaxed/simple; bh=mG7uSB7BF0mlbRNJ9ZZyvOnHgKYsgTxFbHl5KXrLGug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ukku/ahHKgN3zLVsjSLScw64MMmo+NyMhn4vAq8sFcXVn+JIUpAeK9VRrJ7mVpI/RAFd9wcb71aGybFAJwDEMby4VJOwUcPnaaTbpv651ly6k+p49g0R6MQm6fhx/nBZry8NfsRolgHGfDe+w6a4dKXzOV3PX7A/JpiSFAw4YVo= 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=B3O55aQ4; arc=none smtp.client-ip=192.198.163.12 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=1707270930; x=1738806930; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mG7uSB7BF0mlbRNJ9ZZyvOnHgKYsgTxFbHl5KXrLGug=; b=B3O55aQ4kdKFmYjUNuUgkK9+q5KwpfRZz4qPKnMnL+fPPoRHAka2nU2e evi3HKpde10+QT5vxsm0ZJq3xhDYBzA3w9XxMJPCHQz4azb5a7339+cAo 6PfReVhKg9AH2a8JUAR2IZNDGjQbxo+aMP3ahHhK7/on5asxoYKagaCW2 AtwZ+U0N2S2LI+KFCR+uYAX11CrGO1Jj0lRo2MskAkCIRiu52NSVWh6Ox hXtqYJx0HP2wn61wFxP5v0pe0unKdcbS2J21zFiOQSksq56O1EwboY/is o7mTSM7pxmNVFvoIdxxwDu+sQcVid9iLxtsJoU2QjVJ077AkWlV0wMW4f Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="4671459" X-IronPort-AV: E=Sophos;i="6.05,248,1701158400"; d="scan'208";a="4671459" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2024 17:55:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,248,1701158400"; d="scan'208";a="5807087" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 06 Feb 2024 17:55:26 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1rXX9o-0001yQ-1U; Wed, 07 Feb 2024 01:55:24 +0000 Date: Wed, 7 Feb 2024 09:54:34 +0800 From: kernel test robot To: "Fabio M. De Francesco" , Peter Zijlstra , Dan Williams , linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-cxl@vger.kernel.org, Dave Jiang , Jonathan Cameron , Ingo Molnar , "Fabio M. De Francesco" , Ira Weiny Subject: Re: [PATCH 2/2 v3] cxl/region: Use cond_guard() in show_targetN() Message-ID: <202402070919.0zuYCxMS-lkp@intel.com> References: <20240206121301.7225-3-fabio.maria.de.francesco@linux.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 In-Reply-To: <20240206121301.7225-3-fabio.maria.de.francesco@linux.intel.com> Hi Fabio, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.8-rc3 next-20240206] [cannot apply to cxl/next cxl/pending] [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/Fabio-M-De-Francesco/cleanup-Add-cond_guard-to-conditional-guards/20240206-203110 base: linus/master patch link: https://lore.kernel.org/r/20240206121301.7225-3-fabio.maria.de.francesco%40linux.intel.com patch subject: [PATCH 2/2 v3] cxl/region: Use cond_guard() in show_targetN() config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20240207/202402070919.0zuYCxMS-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240207/202402070919.0zuYCxMS-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/202402070919.0zuYCxMS-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/cxl/core/region.c: In function 'show_targetN': >> drivers/cxl/core/region.c:670:70: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] 670 | cond_guard(rwsem_read_intr, return -EINTR, &cxl_region_rwsem); | ^ vim +/else +670 drivers/cxl/core/region.c 664 665 static size_t show_targetN(struct cxl_region *cxlr, char *buf, int pos) 666 { 667 struct cxl_region_params *p = &cxlr->params; 668 struct cxl_endpoint_decoder *cxled; 669 > 670 cond_guard(rwsem_read_intr, return -EINTR, &cxl_region_rwsem); 671 672 if (pos >= p->interleave_ways) { 673 dev_dbg(&cxlr->dev, "position %d out of range %d\n", pos, 674 p->interleave_ways); 675 return -ENXIO; 676 } 677 678 cxled = p->targets[pos]; 679 if (!cxled) 680 return sysfs_emit(buf, "\n"); 681 682 return sysfs_emit(buf, "%s\n", dev_name(&cxled->cxld.dev)); 683 } 684 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki