Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1525553rwb; Wed, 26 Jul 2023 14:04:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlE+7JyR1L8I9aRLG9m3N4pIlTNHIPDV6WJU1pVH0zoaW3NZrTnF36a9cZF6FMq1J4M14wJq X-Received: by 2002:a05:6a00:3a1d:b0:67f:1d30:9e51 with SMTP id fj29-20020a056a003a1d00b0067f1d309e51mr4647867pfb.33.1690405452558; Wed, 26 Jul 2023 14:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690405452; cv=none; d=google.com; s=arc-20160816; b=vAd9TkqZZL6e4pyEBbvQuJsanzddznxHajVPkfmGyeDxKXn6weweal30y15JJaCk45 59zaTljf/VZkH5+K1fwQiRmjZHTt/+FgvB7vWGGshdICeaTGJVk9xdw/umwO05KUj0Hn ua/6Qtw019d4f/XqqVd75SdlzeJmLYz4WehjkzHVw6P3ZAebZtLrNB5FFllm/FbnfQTg F0FQYJ2+qFTE1EHMZ+CKRm68YkYh0fH1wbd2R9YuO1TV3/TATqh8HlCUonWVQoyXA/EL 62aY7tkNQ2Zl+23O0bwRCxcT2n8H6H/JOnqjusWPWoA32n25q0DOZ7g7M8CovoV6dwbw wqwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:references :in-reply-to:mime-version:dkim-signature; bh=+pV4iCMz6JjqVwmfQiE6VOuZFXbz9ARYQvR895v1vFE=; fh=dgUBBBWyjgA3fc2wufxvwhmk4geTCMg9UBR04bTWHPo=; b=ttw8eTAS7/kqE6ZDQWlAPaNjSpwAQIDSd+99E33pjMD+cSriNmiyZSxfeB+toUTnv9 ovVKwzqvjhqbZaO+y/iD+KmPXWiVRH7GeM4banetott1mx+MjbIYCXkaYup9Nftoo9XG jZeLpN3+qG/TdguN5N4UhE4qYfOLOsLtIZyzGfBP4Xw6owyIFkR0zNBZ99gayRRD7x9E Gxv2IJdocQUnI/XcHKUEpLTJJ9y7qysyela+k9l+oZVyC7iY/bmNrmeJQI/8Us0YNY60 jzN5hiprYgRacY0ajNVIfIXZa/lPkQ6VqTmodL8DPMVzeTsr47S4hdhcQ5afQQAcWhsB jsqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JNUbBAXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a632156000000b0055e48c43ab7si12917175pgm.470.2023.07.26.14.03.58; Wed, 26 Jul 2023 14:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JNUbBAXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbjGZUbS (ORCPT + 99 others); Wed, 26 Jul 2023 16:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjGZUbR (ORCPT ); Wed, 26 Jul 2023 16:31:17 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A968F2127; Wed, 26 Jul 2023 13:31:16 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99b9161b94aso16665866b.1; Wed, 26 Jul 2023 13:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690403475; x=1691008275; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+pV4iCMz6JjqVwmfQiE6VOuZFXbz9ARYQvR895v1vFE=; b=JNUbBAXD3E216BCygF81S/3TlUl81snUcIHssa5bxnCxVIlFD/kLrowujjEdB2FMtj 59g0uCjq1k9c4vowKmz3i1ItUM2erxywPCqYLVjhsD/7Fxn7hMbF6Mj4JONIQhLmfJE9 KbSZcoXRb/HbgdS4bNRaWdPxaOxS940pMiCarO2ThCMxPxI8mBdYqSSFTsdGNwq6zu6B pbOX8Teh9k1lFFzP6djerTL1dsI3L0sqayfCrgtQzEEQSEJvjRFBACdnN2MJAkgivUWs Dl53hiq1NW+o45YDTXDG1bv9iJ/191AmFoJJ8nLaztozT/WnTeFt+jRz6s+OOtgRPake WUIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690403475; x=1691008275; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+pV4iCMz6JjqVwmfQiE6VOuZFXbz9ARYQvR895v1vFE=; b=fR/W6PZLwq7l6BhvxQnx2sFz2moOJj1MlSZHPy0pmtNg4yExdhgDE1NPlBeHA7S68f X/CYwummpf5zaJ9DnrdL8X4ICLDcgP37omAme9iswcQDz3l0u63SIGvek7fwIOS76pPT VomY9P3XNsflMT7ejJEmdASeTPu5b2sOIBuUtlLtBbz8oLFLN6Q9SQm2UIi4XdHL95/5 L+V0BCTE1B1A0ljXTlnGkcFMnGeoYdje1SuSq4sY4M/LQKbOhXUz7DI/RY0CTkHuu2Va IAhImTJoWdLJrgcKeGi8ONxJiOFD6TZEFlzJ9IFaQJ83aOPm1jFnqDbHgg0r3xXbx0qH S7Xw== X-Gm-Message-State: ABy/qLZnTpKP3Rno3zr6W4iWMqv0pS7xERl4fYcAO+nrkyRj0Z3VQs9S pY4H+6+Kz7qMIYs0tUwzaT/aPsn5aUyutKhRyRc= X-Received: by 2002:a17:907:2cd5:b0:99b:5a73:4d04 with SMTP id hg21-20020a1709072cd500b0099b5a734d04mr228592ejc.71.1690403474891; Wed, 26 Jul 2023 13:31:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:dc89:b0:978:9011:58a1 with HTTP; Wed, 26 Jul 2023 13:31:14 -0700 (PDT) In-Reply-To: <20230726112913.4393-1-machel@vivo.com> References: <20230726112913.4393-1-machel@vivo.com> From: Jay Vosburgh Date: Wed, 26 Jul 2023 13:31:14 -0700 Message-ID: Subject: Re: [PATCH net v5] bonding: Remove error checking for debugfs_create_dir() To: Wang Ming Cc: Andy Gospodarek kjmatt , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 7/26/23, Wang Ming wrote: > It is expected that most callers should _ignore_ the errors > return by debugfs_create_dir() in bond_debug_reregister(). I'm confused; I recall that the prior version kept the pr_warn(), but changed the test from a NULL check to instead use IS_ERR(). I'll state again that I think printing the error is useful, as it would provide an indication of why the debugfs directory isn't available. I also don't see an obvious way the error could be used to spam the dmesg. -J > > Signed-off-by: Wang Ming > --- > drivers/net/bonding/bond_debugfs.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/net/bonding/bond_debugfs.c > b/drivers/net/bonding/bond_debugfs.c > index 594094526..a41f76542 100644 > --- a/drivers/net/bonding/bond_debugfs.c > +++ b/drivers/net/bonding/bond_debugfs.c > @@ -87,9 +87,6 @@ void bond_debug_reregister(struct bonding *bond) > void bond_create_debugfs(void) > { > bonding_debug_root = debugfs_create_dir("bonding", NULL); > - > - if (!bonding_debug_root) > - pr_warn("Warning: Cannot create bonding directory in debugfs\n"); > } > > void bond_destroy_debugfs(void) > -- > 2.25.1 > >