Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3082798rdg; Tue, 17 Oct 2023 04:17:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvGyF6k4MsXP/gRXGU6QGyiz/lIIZ4uy2voIbZADTSUeCdooNA9g40Clrknao/bFaZlY7W X-Received: by 2002:a17:90b:4acf:b0:27d:2601:bc92 with SMTP id mh15-20020a17090b4acf00b0027d2601bc92mr2309343pjb.11.1697541461350; Tue, 17 Oct 2023 04:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697541461; cv=none; d=google.com; s=arc-20160816; b=HA86LWmL7N0oiT3bTtVRQ9XKmjcEZ4nY3aFAxM3z0+YOgy+yEMZfxrlkw0Y80v1Ych sKuDqZ/bLyLfWG9w09AmRKdq9oq/a3Qewr6JfHEYDzgLlTlrH2W8Szz/fQek3tPVkEaf qgFnxXCH0ZHBJTHYFEi7FTbSCz8gAy2wSE6827SUGhTeN7owI4cqfJn5lfl6iHoHx+mF iJ4EMvzzkH+d3doYBzjXrvx5Qkrg+FcsU0Qjrt/Zd706m1gMkiL3BsPQ8bd+sZoXt9Dq CkckjP7g0+5Z/FCNfrdf0if1UedOzfmFw24FZ5ciWrfnQA6uVgj6slUym61mY1izh92N g5GA== 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=xoNZj4QGVuc+WTAjqvHZThErSmETA5UdZcMfunvG2xw=; fh=FewJCdVvo768wn3NfzGN4qLWnx47f0CSb/te8RJhdtQ=; b=s8L9GJjrSJ1pwAh/TmaxDkGqxLYITJzJN0CDOmM3AxPwjZKx9p1i6V4CNdrnGFAzAZ /faw3yyRSdzi2KorbunCJJp6IPvZOg/ofKU4lmFN/bfGexaJvy7UEtOpdehDsz9OzZkW FFykPTWnTMdNioEAkSbkMeNW5fPTsoEm5F9aAXVpEnnrnLhK1GwDpak4SPVt0dBap4lC kucHRWbLW7JKA2ol71aHa1Gxh8nv55Ddv4fYyROZeTVQPbpXhC64tnmm9UbxCS4VGvYj RUCdznIhyqKY7+TBExSriplUIAbctS6I/XVrTRpAXCmgV4eA4+cJDg+xPcDebmqNrS3Y AEEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=y++WcQGh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z3-20020a17090a1fc300b00277617e4539si8112202pjz.97.2023.10.17.04.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 04:17:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=y++WcQGh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0418D803684B; Tue, 17 Oct 2023 04:17:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234802AbjJQLRd (ORCPT + 99 others); Tue, 17 Oct 2023 07:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234422AbjJQLRc (ORCPT ); Tue, 17 Oct 2023 07:17:32 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23853B0 for ; Tue, 17 Oct 2023 04:17:30 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-533d31a8523so9425480a12.1 for ; Tue, 17 Oct 2023 04:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1697541448; x=1698146248; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xoNZj4QGVuc+WTAjqvHZThErSmETA5UdZcMfunvG2xw=; b=y++WcQGhv+NzejORDVSg4AJ7pLNm+hM+IukC4gz7MmHloEhVJDPM9u7Ie5cyNclwvu n39k1NKWso5+nWg+PuSVWefPV60/rzutIg5CHeHGvg8PbLU+UKeIt3jx0uvan9BHf73j AzyR8f3hV5EjBYzZsn/GsfK7JDZ+fhroWphu4FDZdgqYo7nQ4is9ZPcZ6Vj8O/IGvRZg I5F4oUR3tJPMyTt2CSNJ43q2wj87LXUvpEggQ7xBkpAWBOLC50n4hPxhLAkbMT86WC9A CswC/yMHHb+GodM5O24P2U+1dmTZud+D9YcoWeujQMlNBWEuZeyLI/S3jQOGWI4aDwHm uc1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697541448; x=1698146248; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xoNZj4QGVuc+WTAjqvHZThErSmETA5UdZcMfunvG2xw=; b=bzdyxJAmbvcgDchukPSU1doGHIGhsPJKB/9lUDPm3wt4BfCZ36E4YpnkcVcxA1KbUz 4qHJHYXSMJ18DtVtsjtIGqP4sj49dEeKFeXogMQv4fr6u4XRTxwH9ByNBtz8AMHY+gcV sc2IKMzWcHyoyKwplAS2CVgFuQ/UfGZjfcBsdF5pwpPnZ/tQlXdQ0QXPabJEezVXMFTk qyEtT2l1hW//yGg8m+apTerrmL2e9PJiJLpeAXqZZLRWAIUEu5ppv2RA47CM+J4mHkc0 O6SN07FU00YLnsB8htBGSOAq9rnXdbLec+1IJBXGQw17106USO0gouIcZzXUmTqstSRX yeNA== X-Gm-Message-State: AOJu0YwrFFcVqJnhmg0Cbb4DDmfD9twrNDpy/SFr1ej5GcZ1mZfxcgOi aVmnkKSqyHo/gEDM0p9oAlJMJg== X-Received: by 2002:a05:6402:4303:b0:534:78a6:36c4 with SMTP id m3-20020a056402430300b0053478a636c4mr1585706edc.36.1697541448551; Tue, 17 Oct 2023 04:17:28 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id cq23-20020a056402221700b00533dd4d2947sm1017926edb.74.2023.10.17.04.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 04:17:28 -0700 (PDT) Date: Tue, 17 Oct 2023 13:17:27 +0200 From: Jiri Pirko To: Przemek Kitszel Cc: 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 00/11] devlink: retain error in struct devlink_fmsg Message-ID: References: <20231017105341.415466-1-przemyslaw.kitszel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231017105341.415466-1-przemyslaw.kitszel@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 04:17:39 -0700 (PDT) Tue, Oct 17, 2023 at 12:53:30PM CEST, przemyslaw.kitszel@intel.com wrote: >Extend devlink fmsg to retain error (patch 1), >so drivers could omit error checks after devlink_fmsg_*() (patches 2-10), >and finally enforce future uses to follow this practice by change to >return void (patch 11) > >Note that it was compile tested only. > >bloat-o-meter for whole series: >add/remove: 8/18 grow/shrink: 23/40 up/down: 2017/-5833 (-3816) > >changelog: >v2: extend series by two more drivers (qed, qlge); > add final cleanup patch, since now whole series should be merged in > one part (thanks Jiri for encouragement here); > >v1: >https://lore.kernel.org/netdev/20231010104318.3571791-3-przemyslaw.kitszel@intel.com > >Przemek Kitszel (11): > devlink: retain error in struct devlink_fmsg > netdevsim: devlink health: use retained error fmsg API > pds_core: devlink health: use retained error fmsg API > bnxt_en: devlink health: use retained error fmsg API > hinic: devlink health: use retained error fmsg API > octeontx2-af: devlink health: use retained error fmsg API > mlxsw: core: devlink health: use retained error fmsg API > net/mlx5: devlink health: use retained error fmsg API > qed: devlink health: use retained error fmsg API > staging: qlge: devlink health: use retained error fmsg API > devlink: convert most of devlink_fmsg_*() to return void Looks great. Thanks! set- Reviewed-by: Jiri Pirko