Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37712885rwd; Tue, 11 Jul 2023 19:17:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEhY5lnRhqhLZvGOdkrG4u2wNAiQQnFxUwqI87sA9HHc+YYrko6cs4pAwNeovCMODJ93zxi X-Received: by 2002:ac2:51bb:0:b0:4fb:90c6:c31a with SMTP id f27-20020ac251bb000000b004fb90c6c31amr12331785lfk.14.1689128240721; Tue, 11 Jul 2023 19:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689128240; cv=none; d=google.com; s=arc-20160816; b=mmGdgOCZFzi/1F9pKt1d/lMFPo2iQFimKUIwR/DbAOPeIxLYxKuDtHBqJ249S7IRlO uzZNko1nxv8D4uqAP3fKM5ERAo5GhO8qJ3vQXzSZQHGpY9mZqFuPlp1semzirXlHof3x 0rU2+9uPFR5R1MCIWkNreS4DTJPeF1upwllS0ENe8iYavAUvhGOi7OME3/ELHpsU1LHE MXoanAXNdz3HG2P85c8C6xJRwrEqj4f0I4gf0G2UNWeccEMnDI5gATvjFwuzYOlsdXow iyHxTYf7xWz87/bSb0XP56oNoi1NFW5wmQUX1FpRQ28Oe2D/YVvN1ewatwhushat+Gca uEFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=S5MNXikUXNgIM+z+kI4i6X4WmAbhNJOenQ97fPNGyL4=; fh=/smAEfcg5ifoknbjLUo2FPKg7wkVPjmMULTNqOKc6GQ=; b=OSRKy0sUbefpcQodnvgxtAokZgfFsYH2lzXpbI1VVY+B2lpK8CgKoP1rjIw3yv5sTt vs08wxQq8DVQlZSzPNdt4kDhBSQK1Mm5KVDgxOJsuEUHgOY/3abWZCYK7umdaWJ8Hq/R 8PalxfqpbiNyUIbntjgIDgTUEC1jIhoHD5rLiobtXsv21foSxnFts0RgAZBD768QxuT8 9MRhULnzp2e+wsSA/0Mm1Ux6almbtcFPm9/XjCeY3fhZxaJA2KiliXc9QmpAkR4mqc3S cbQJFX8Mkr9625fn4/uHH2Ni00+mqlmKRHx++CLFk8YHOa0MUyqQ4xHaiqE7SKyq1DIp V0dA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020aa7ca55000000b0051bf877130csi3255268edt.579.2023.07.11.19.16.47; Tue, 11 Jul 2023 19:17:20 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbjGLCCq (ORCPT + 99 others); Tue, 11 Jul 2023 22:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbjGLCCq (ORCPT ); Tue, 11 Jul 2023 22:02:46 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09417171C; Tue, 11 Jul 2023 19:02:44 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R11C34RJnztRLn; Wed, 12 Jul 2023 09:59:43 +0800 (CST) Received: from [10.174.151.185] (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 12 Jul 2023 10:02:42 +0800 Subject: Re: [PATCH] cgroup: remove unneeded return value of cgroup_rm_cftypes_locked() To: Tejun Heo , =?UTF-8?Q?Michal_Koutn=c3=bd?= CC: , , , References: <20230701073856.2095425-1-linmiaohe@huawei.com> <27428e7d-e280-2f78-7856-056d4e174057@huawei.com> From: Miaohe Lin Message-ID: Date: Wed, 12 Jul 2023 10:02:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 2023/7/12 5:40, Tejun Heo wrote: > On Tue, Jul 11, 2023 at 11:00:58AM +0800, Miaohe Lin wrote: >> On 2023/7/11 3:40, Tejun Heo wrote: >>> On Sat, Jul 01, 2023 at 03:38:56PM +0800, Miaohe Lin wrote: >>>> The return value of cgroup_rm_cftypes_locked() is always 0. So remove >>>> it to simplify the code. No functional change intended. >>>> >>>> Signed-off-by: Miaohe Lin >>> >>> Applied to cgroup/for-6.6. Please feel free to follow up with the comment >>> addition Michal suggested. >> >> Should I send a v2 patch or a separate patch? Both is fine to me. > > Please send a separate patch. I see. But since Michal is meant adding the reasoning to the commit message, it seems a v2 patch is required. Or could you help modify the commit message? It should looks like: " The return value of cgroup_rm_cftypes_locked() is always 0 and swallowing errors on removal is fine because cgroup_addrm_files() won't fail at removal. So remove return value to simplify the code. No functional change intended. " Thanks a lot.