Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1167650rdh; Fri, 24 Nov 2023 06:39:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5Yz/T0rcRspxyvr4ZQjYOVmEyyoyI8zktJwXJSGTsbq8dayhSm3afrFfKEh6bPGCjsy4r X-Received: by 2002:a05:6a20:8403:b0:18a:d7a8:5e5a with SMTP id c3-20020a056a20840300b0018ad7a85e5amr4929051pzd.58.1700836741238; Fri, 24 Nov 2023 06:39:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700836741; cv=none; d=google.com; s=arc-20160816; b=JL4xIIKTk6UXEVeGx7betxgilMihwIqnDKpQTRb8Pjbo6Xm4XefsPj/eSW5acp6WbO UPO+KWnjAxqYUUMmUeDS9VnYxgUgF8DBmD54bHM/gqTdpFttESpRLtDoucpZRfDimQzv vuxR0p6NmGx2Dbw0uyOcxED1LSNC7AJaq6x+NB0ZR3ErEycbNfp2ucYbGwVUr3uFTPmy 02Mxy3XmB01YO01yuPOEpwAUUXhq/eVR0eSgo8tTBzmtHh+1EXUSZfyRc3DddmC/mOYX frIEsRO1LRSBF6tmvL1/ja91Fdc9WBzrcNW6yKXj4NNhQ14Vhx82dfwiGXwKZydmP/Mm yqlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MFiobEZOo4A0u/F86dMG9ab4xrJNlwqAHsW39HuCwvw=; fh=tsOaRaDEDSaAZJPdgFMVtFl8X/ahScubBLZOM6uqfeg=; b=U0o8R50xqlIjPg1YQfUq0ledXQI8IifOFadeYLmwmQzl0tOoi3ioqcgbJY2NZ7cbwb FlifsxUkNkHtJiC/kd3qx38v9auiO+XBMIiABxyV+7ae9MF/pMt/P1G+BTLXCi/YCinJ CaEGgJn03IW1yDwqfxws3AwlEj7BYg5yod5OkyyVqoIRHNZij1jttCvZUm2zPQJ2iiBF fG4lsVq12YJDloiEFroNG3sSxMHyrp5EPM3sLKKTGv3Jmj2TiHLC5y10jcyU4qhYdcKt ggW0yvpJV+CoZs95Jl6/Cf1hX+0/yEVpVjZ8aF0q6jMf98py+f/hBfSuaHI0ZReyet74 H9Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="L1/kyVmI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r10-20020a63ce4a000000b00585a5e9a965si3729829pgi.161.2023.11.24.06.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 06:39:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="L1/kyVmI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ED90F802FD26; Fri, 24 Nov 2023 06:38:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbjKXOiq (ORCPT + 99 others); Fri, 24 Nov 2023 09:38:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjKXOio (ORCPT ); Fri, 24 Nov 2023 09:38:44 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 875DE19A3; Fri, 24 Nov 2023 06:38:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700836731; x=1732372731; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QKgJEGRCbdv2EWGbewfRTODn2GZOxw9ytLOYIn7uuOQ=; b=L1/kyVmIVn1Dddb4n3hQEVXNkMjvRp0P2uctbs5mnDfvYCF85KU+wWWH X9T+2UrK5KleGAtP+JeWAASN7z4AvjkyXun7uX6Ry12ktp2WFjU1JN3wO SPP8LKF340YlD74jZv6un3ZcdaevZBVgkFlaI37+TiASAHyegMwQ3gpVT wvZ4XXGBZrblSZymOccm7KETGJV0p58RpqcmS7a4Lb8SkG3sSJMh07ZF4 di0kBDViFNRNdhDKU4J5A69UltanAMcxXnRkb11d3byVhN329eOsP0lfI QdpVpyeZtzQMsSnFa8OptGY58PPIu/V/SJScVdPNMvC2ecToQqdfIRPx8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10904"; a="392198719" X-IronPort-AV: E=Sophos;i="6.04,224,1695711600"; d="scan'208";a="392198719" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 06:38:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10904"; a="743906526" X-IronPort-AV: E=Sophos;i="6.04,224,1695711600"; d="scan'208";a="743906526" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 06:38:42 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1r6XCh-0000000GjtS-2kli; Fri, 24 Nov 2023 16:30:47 +0200 Date: Fri, 24 Nov 2023 16:30:47 +0200 From: Andy Shevchenko To: kernel test robot Cc: Linus Walleij , Bartosz Golaszewski , Rasmus Villemoes , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , Krzysztof Kozlowski , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Geert Uytterhoeven , Biju Das , Claudiu Beznea , Jianlong Huang , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, openbmc@lists.ozlabs.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, oe-kbuild-all@lists.linux.dev, Ray Jui , Scott Branden , Broadcom internal kernel review list , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer , NXP Linux Team , Sean Wang Subject: Re: [PATCH v2 06/21] pinctrl: equilibrium: Convert to use struct pingroup Message-ID: References: <20231123193355.3400852-7-andriy.shevchenko@linux.intel.com> <202311241401.ZPILPdov-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202311241401.ZPILPdov-lkp@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 06:39:00 -0800 (PST) On Fri, Nov 24, 2023 at 09:19:45PM +0800, kernel test robot wrote: ... > 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/202311241401.ZPILPdov-lkp@intel.com/ > > smatch warnings: > drivers/pinctrl/pinctrl-equilibrium.c:719 eqbr_build_groups() warn: unsigned 'grp->npins' is never less than zero. Thank you for the report! ... > 718 grp->npins = of_property_count_u32_elems(np, "pins"); > > 719 if (grp->npins < 0) { > 720 dev_err(dev, "No pins in the group: %s\n", prop->name); > 721 of_node_put(np); > 722 return -EINVAL; > 723 } Surprisingly (to me) the _count_u32_elems() can return a negative error code... Fine, I redo a bit the code by introducing a new patch that will use err instead of ->npins (which sounds better approach anyway). -- With Best Regards, Andy Shevchenko