Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3905655rdg; Wed, 18 Oct 2023 09:11:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcNse4yt2HSLYxxZ+X05DcXQe6yIj75s3N5CnC3+aovkD2sa+pXB1PusKzwEzfCsu0jy64 X-Received: by 2002:a05:6870:d188:b0:1e9:bb3a:9a89 with SMTP id a8-20020a056870d18800b001e9bb3a9a89mr6620720oac.47.1697645475459; Wed, 18 Oct 2023 09:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697645475; cv=none; d=google.com; s=arc-20160816; b=iixzvhEXaP8pAaul2Z0xc1ELEkoVF0lz5rU/nUaRcOLBVbBXiHHc/1q5QGU44BmRls 7W8mS5fFYdGDKR8fCyKIQQ5+Ne/govKIuzJ1yAAqb/Ps/zYE9W6qDwryRblAzLwFY7PS dkHFJVaR0n8PYpUIUOMqgsCghWc+qXXzi5jt4R83LOqKRmgLYp/YLSE2lMkN4frhBpNv N2ZfQ+RANtYcxtnYcsLHq7K+y/4j8LZDs+AjXTZSNKg0aTYADpVS8mqart4hCDEkKoAJ r+GEuh2okpRu4sw/GbArw0xCVg71g23zISP5/HGwCp1q+wnxL0dWIm7b6ISE5aAVIhVR naJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Tz+t416cR5rRRk1f2pZDMJPEwMK7FQJeKLbAZMtBfMQ=; fh=P2yAkN1COBVjhJ2MufLBPK11lf4Yit3Hkw+1LAC7V6c=; b=OE7UdK+pEjImN2+UIu/5STFgfm4uusXGeyQ22XTC/TiTD9sakskPuyvtkVEYKgnwmI AscZ+53NfjNqRtY/J26ub8A0nz66B++ID9Iumgbr2PoPm499S5BajBSNQzgYEH3XODF+ ckgCDwCLSNTzgrGPYaPt9lv/mGCGL4+fwFRiOeM8UXhdcLa1+oc6PYYC/xFWYKcgD/0c fl50s2Y9NPG9cn/WCh3vYO5jUFV6KdTbb11T1tKKuPv9LxC8sjGpKpFF5oWvbyM4vNrj K5lr2ugrTnI/m2gKB/35MZ+bu8kQfZbB97SlkrvVY86s/dCyeudhLhssIuligRP7mjNx lSoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NUYLIsGy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r11-20020a65498b000000b005ad176a9d2bsi2353740pgs.240.2023.10.18.09.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 09:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NUYLIsGy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2E70B80E2258; Wed, 18 Oct 2023 09:11:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230391AbjJRQLF (ORCPT + 99 others); Wed, 18 Oct 2023 12:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbjJRQLE (ORCPT ); Wed, 18 Oct 2023 12:11:04 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AEA69F for ; Wed, 18 Oct 2023 09:11:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CDD5C433C7; Wed, 18 Oct 2023 16:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697645462; bh=yDdmQ0V9wvojaQKv5dZ7J8a15nZOMdq7QItSFt0CGnU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NUYLIsGy9I5+Z1057HBBPPERkRSfihNd9Jnqdd/Z2PVzwdx9SgBmx+28ScsxQnKVd EefQEji/0T7rWRsI9Z6xX3abBEBbYZDOwKOqwfxGPrfrm/nfkRZEdExYq6tNZo19D3 v3/kQ4U0RdMaRgXVhSEd7QvzIkwEQrpe4ABwTqpKt5Lu3WDYysPlzO7QFK5iKl7H5J TISUG5h0Cu2GrLhQIUNBDbLwlpU+Ec/MwLLhiargMfuqCptfLYZZV6VR8rzH7TKC7T d2SPz9PK/I62E8OviKsMY+MNF3kf9aAy/iiT/mnISKvtpzH9qVZg4ZxOgevlHqMzpA ckVXH7gi6ImnQ== Date: Wed, 18 Oct 2023 18:10:55 +0200 From: Simon Horman To: Przemek Kitszel Cc: Jiri Pirko , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shannon Nelson , Michael Chan , Cai Huoqing , George Cherian , Danielle Ratson , Moshe Shemesh , Saeed Mahameed , Ariel Elior , Manish Chopra , Igor Russkikh , Coiby Xu , Brett Creeley , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Subbaraya Sundeep , Ido Schimmel , Petr Machata , Eran Ben Elisha , Aya Levin , Leon Romanovsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 11/11] devlink: convert most of devlink_fmsg_*() to return void Message-ID: <20231018161055.GU1940501@kernel.org> References: <20231017105341.415466-1-przemyslaw.kitszel@intel.com> <20231017105341.415466-12-przemyslaw.kitszel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231017105341.415466-12-przemyslaw.kitszel@intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 09:11:12 -0700 (PDT) On Tue, Oct 17, 2023 at 12:53:41PM +0200, Przemek Kitszel wrote: ... > diff --git a/net/devlink/health.c b/net/devlink/health.c > index 3858a436598e..f4a6de576b6c 100644 > --- a/net/devlink/health.c > +++ b/net/devlink/health.c > @@ -566,17 +566,15 @@ static int devlink_health_do_dump(struct devlink_health_reporter *reporter, > if (!reporter->dump_fmsg) > return -ENOMEM; > > - err = devlink_fmsg_obj_nest_start(reporter->dump_fmsg); > - if (err) > - goto dump_err; > + devlink_fmsg_obj_nest_start(reporter->dump_fmsg); > > err = reporter->ops->dump(reporter, reporter->dump_fmsg, > priv_ctx, extack); > if (err) > goto dump_err; > > - err = devlink_fmsg_obj_nest_end(reporter->dump_fmsg); > - if (err) > + devlink_fmsg_obj_nest_end(reporter->dump_fmsg); > + if (reporter->dump_fmsg->err) Hi Przemek, Smatch warns that err is not set to an error value here. > goto dump_err; > > reporter->dump_ts = jiffies; ...