Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1039479rdb; Fri, 1 Dec 2023 05:43:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWo89Gb3FhBLNkrvAiSphR/IjMRMyiC7O6ureknEV4IHGJGwR7BNFZgTvkeWxu0SqYX1Bn X-Received: by 2002:a05:6a21:2d87:b0:187:71f7:bb26 with SMTP id ty7-20020a056a212d8700b0018771f7bb26mr28277048pzb.54.1701438217905; Fri, 01 Dec 2023 05:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701438217; cv=none; d=google.com; s=arc-20160816; b=B0u1H6WCiMIYgbGny8vYSPPVMLlLjzsEpvw+qRqrYOGPLhnx2DmA9Z9ZgkYYgQTuWN p4NPzcmnFtI7f/pg+wdQo3Cl49AJznKI4rfzYKMYvqK27ljwRZ/2nqmAtTOvn5E1tf8X 5f5OBKjNrgZgSBvfnC3UShuZ4QM71qrypUU0MmO1UBp9rcDyFpV4oFXbZvKJlfeqSzt3 CtAHkNQ0Zfj2tNG0/KII99zTgvXYLaLU2mmZVCFVFmKkfFoGRXPfOAWLRZpyr154eyD+ 0J5KA8VmU9j7Gz1O8t1t+IvsF/HTPt7lScDLTBZNhT/b6T5KNIEJkBzSNYMUpSC5CVVh Ohdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=I///YC5UuvpU1J5S+D34Jkjcl6/vfhDloxYLvGmsz54=; fh=+d2myxjqt6RLoUQKvnijw+ynz48W1tTsHUxiy+LASok=; b=qxHyNL0D3fFplG2b6PpmCaV38brw8mYL5eiB8LPw1auW6eUeRcjT+gXjDcF2cZ6dDZ MX6R4BT+7Z9OdUleQ6TCaBwSgHB+bcYw3G652uCj3RV+9d9KVmcHLlz78qYNsvHecAIv HDlhAXcOE/uIUnY/n63NRV9ArD5RLNX+sv9LRyFMLo3+N9/0adT64h2d39jBoqr/ZAAx IRJikIeCNFhfmlbxPsaMDWWFj6J1I+hJgYjQwrC4oh3/ID+mZ3rA80XpHvGI2FnmfD/g Lf6QlSoZs6+gGV88W7j8ftEcI/N4b9f0zK9chAHi9hPm/Gt+NQ7XLOWUIDmSqxFKJ8mx WnOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=EUC+inW1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id hg4-20020a17090b300400b002681fea6d14si5740495pjb.79.2023.12.01.05.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 05:43:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=EUC+inW1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 79A2384D1232; Fri, 1 Dec 2023 05:43:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379032AbjLANnW (ORCPT + 99 others); Fri, 1 Dec 2023 08:43:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379031AbjLANnV (ORCPT ); Fri, 1 Dec 2023 08:43:21 -0500 Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696B8197 for ; Fri, 1 Dec 2023 05:43:25 -0800 (PST) Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 0C87410001F; Fri, 1 Dec 2023 16:43:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 0C87410001F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1701438202; bh=I///YC5UuvpU1J5S+D34Jkjcl6/vfhDloxYLvGmsz54=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=EUC+inW1T0gNlBbNphOO9e9PeUalgv+TBhaGjDcq8HFsWLi2x4NulAmprjnIS6TSt RUGmXSoPSqc533imRy/1BM4s3woClMB8GMqIs7VD/aouJVDf3p1cDpeyj6OabKj+IS T26ODVSPyEtHc8xXOYchYXVWTPwiQnb59h/HtT3iaVInZAmHSE22EV2wZTzVMmuqX4 3QnZvSJjeKdPkahz1t+FibfyuQGML7s/0O0N9EnJFNluunDI/hvL5ULyurkjj7dv28 D6DYuapbGJX0uU1gakDyRLTluQuO2y0FHaH3zSLT8+oApCJS+6NAb/SastAyDHfTMH a8KYJAlrj3UVg== Received: from p-i-exch-sc-m01.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Fri, 1 Dec 2023 16:43:21 +0300 (MSK) Received: from [192.168.1.127] (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Dec 2023 16:43:21 +0300 Message-ID: <070c174c-057a-46de-ae8e-836e9e20eceb@salutedevices.com> Date: Fri, 1 Dec 2023 16:43:35 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 1/1] locking: introduce devm_mutex_init and devm_mutex_destroy To: Andy Shevchenko , Waiman Long CC: , , , , , , References: <20231128000910.73784-1-gnstark@salutedevices.com> Content-Language: en-US From: George Stark In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 181768 [Dec 01 2023] X-KSMG-AntiSpam-Version: 6.0.0.2 X-KSMG-AntiSpam-Envelope-From: gnstark@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 5 0.3.5 98d108ddd984cca1d7e65e595eac546a62b0144b, {Tracking_arrow_text}, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;p-i-exch-sc-m01.sberdevices.ru:7.1.1,5.0.1;100.64.160.123:7.1.2, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/12/01 12:11:00 #22598706 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 05:43:35 -0800 (PST) Andy, Waiman Thanks for the review. I'll move the patch to the devm-helpers.h then. On 11/28/23 19:35, Andy Shevchenko wrote: > On Mon, Nov 27, 2023 at 08:55:18PM -0500, Waiman Long wrote: >> On 11/27/23 19:09, George Stark wrote: > > ... > >> These APIs are specific to devres. I don't believe it is suitable to put >> them into the generic mutex.h header file. All devres_* functions are >> defined in include/linux/device.h which is probabably not included in >> mutex.h. You may consider putting these APIs into device.h instead. > > +1. We have include/linux/devm-helpers.h. > -- Best regards George