Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36682964rwd; Tue, 11 Jul 2023 04:29:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEU6RfBRZU8u6AmAIifxyjjFlSE/mRB7hi3O25TMGT0kgRB5PeviXQa6ail6mF2LvDaWvf3 X-Received: by 2002:a05:6a20:7d84:b0:12b:fe14:907e with SMTP id v4-20020a056a207d8400b0012bfe14907emr20300136pzj.20.1689074979286; Tue, 11 Jul 2023 04:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689074979; cv=none; d=google.com; s=arc-20160816; b=S5QVqTpRSvLsm9FgSsheseYjYuzSjGz1NH/KZRANmc4nHybQ1TMKDcfZaJXYTCcHrl yySrNd6YB7hml/rCb7RU3kdkohw7Abqmn4x/ikFBfXObS5rV0f9BDQwVCQjhyuL1CTld 2YOvfDB1VvKFMbiMb27TyWRJrMB75XgyJjI9U5eNiOvF66GtaCPz9UAi1XJDiyFW1cDg g248VedhfQKoi2ymvb7gUeHUSExfTIZlviaXLmhUm41gWc3Sv6en2R22KIy8iNteMamZ hQq0dazY5SQ0M1zE0jnfx7U8V7g1KAsILvIoRbYDAwdX66BUo/Tbx8ivKJOIDWTAL0oj qSKA== 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=vowglESr1KoOEcY4XXmA0mTe20uS/zqvChy0ToqbJlw=; fh=izlvDyQkmvIqmvflhMwH9lgqT5FEe/tMPVrQHVutqGM=; b=gY2gXtuX/n5boNN2g1g16YaV3NXH5VzVcV+wgBT0LhMv9ojY9G8Hk4bRu8/wDKeCju q1sLTIKPmdExO68/xRwqjOz8C0ntWYnDvlLZTZ1IfQEwNQHbb99aDxdkIPWa4mdTMDxs d7xzgxegB1SjC6Zrkk7r4/52tOc0I0TGjEmoC9R/Nfah3jbKG+OLboKHSTrCYCO2/DGi KVgR3k0H0WKReRQVSBcQZ+4DhtHyfPKZ0OA15f9pOXOdvlxY/p5F0yZa3U3ixIb+H90S ISO+Wdou52NhBd9y6rXEcqXDOXojz4F2fuAAn3jzvya2FvA1DmZpJc8qROugbkXb4NHU lJoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=GwL+qkZn; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b185-20020a6334c2000000b0055c66f42eebsi151573pga.512.2023.07.11.04.29.26; Tue, 11 Jul 2023 04:29:39 -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=@suse.com header.s=susede1 header.b=GwL+qkZn; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231726AbjGKLVp (ORCPT + 99 others); Tue, 11 Jul 2023 07:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjGKLVo (ORCPT ); Tue, 11 Jul 2023 07:21:44 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58239E7A; Tue, 11 Jul 2023 04:21:42 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0920A1FE81; Tue, 11 Jul 2023 11:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1689074501; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vowglESr1KoOEcY4XXmA0mTe20uS/zqvChy0ToqbJlw=; b=GwL+qkZnIy2QFgfpjgTPLJlEV//u+2813Bb38189aR7Zm2/gNFOmWRZ8RAhRnJyIYzbwNI t72sniEI3ZdmVcZtwEBOnhAZhIJXBLes2THAO86pREcYVEDzLzTMFDk4/pbpK2S19BzEBe xEkiN2Fos24yBO10UsreHSv79mJOKQM= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DB7FA1390F; Tue, 11 Jul 2023 11:21:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5PGMNEQ7rWRIGQAAMHmgww (envelope-from ); Tue, 11 Jul 2023 11:21:40 +0000 Date: Tue, 11 Jul 2023 13:21:39 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Miaohe Lin Cc: tj@kernel.org, hannes@cmpxchg.org, lizefan.x@bytedance.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup: remove unneeded return value of cgroup_rm_cftypes_locked() Message-ID: References: <20230701073856.2095425-1-linmiaohe@huawei.com> <7d3323ab-f796-6846-ab08-5d48734595e1@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fhkx5cds4otewh5u" Content-Disposition: inline In-Reply-To: <7d3323ab-f796-6846-ab08-5d48734595e1@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 --fhkx5cds4otewh5u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 11, 2023 at 10:58:48AM +0800, Miaohe Lin = wrote: > +/* It builds upon cgroup_addrm_files()'s. */ > static void cgroup_rm_cftypes_locked(struct cftype *cfts) > { > lockdep_assert_held(&cgroup_mutex); >=20 I meant adding the reasoning to the commit message -- swallowing errors on removal is fine because cgroup_addrm_files() won't fail at removal. It's a minor remark for the future readers ;-) Michal --fhkx5cds4otewh5u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZK07QQAKCRAGvrMr/1gc jq21AQCWPqVs+XV9Vu8QeN38R34dWAgvPGj9y4EfFgTQDIWk4QEAqcd+aEHRGC2i onMUJSBPVSf3GqVIjpW7MNZ5aAaKPAE= =GCjq -----END PGP SIGNATURE----- --fhkx5cds4otewh5u--