From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8C69C433ED for ; Wed, 31 Mar 2021 20:47:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C6C2610A1 for ; Wed, 31 Mar 2021 20:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232764AbhCaUrT (ORCPT ); Wed, 31 Mar 2021 16:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232477AbhCaUqx (ORCPT ); Wed, 31 Mar 2021 16:46:53 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA643C06174A for ; Wed, 31 Mar 2021 13:46:52 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 12so10771582wmf.5 for ; Wed, 31 Mar 2021 13:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mjHBwLjYUXWuRoBuiTAQj8XDaBfJIXP1bnrnlqYEHew=; b=pOB+DHhSxHbiS0m4CcaSCxN8wSxuH/HrMr2Ql40fIUthow77RG+immg0bLof1FxX0C cZ+eVTZkLpXDt1ot5SmjWFlqW/ofc/55/6GY0gI/tW2/hhJAQwY4yBmjoBe9RKy8ylNB oEkC01G7um/qgN1LA1Euy5Vw+l7cOCBf1EEhNwawhwfk5gWKR7+FjyFCvW+f/ISbef80 qepb6YLAyI9pbcUCabhwGTooNQFB8Fie8SRGYVAxrpeeiUQRNMVAANh02oryeDQ26jq5 UpoymJZTm9RrgyVenVVYFFlV+kaVSHcn1rgCDgalNDh791IBunPBTtNFZ8LhLDc5+x3O zQSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mjHBwLjYUXWuRoBuiTAQj8XDaBfJIXP1bnrnlqYEHew=; b=Wxwfi3eAV2njuSH4ewekDbJFG8Y267OH2urXUizyRejHANlCmZ5u8WGcsohTBlSsFk ylh9CBXV6EPIWtZlMFe/3vTeVyvN9Z8rVVzSGVyAQhzel3DI4YA6nfA1JRc96//t/yFP EKb/MutvbBZENHkUwIIOdHEADJc2amtrgu9GD2shgCbBtE/x5k80JKk+k3ywFAw76yPq mOq0p44L2s1wwxg0TS22MwIAW9jlczID8xyo1nD9gaGB1TKxQYmOe6wyickPmy/mY+g+ gjUgxSDumYB7Gh2cwP/j8ipEmKASlai9a2yl2Q732f7ACGbkicjAZ82BCowrLmcO7bWk 1N3g== X-Gm-Message-State: AOAM533pXFN4q1ratkcImdymMZnXggo7CYtZCksP55Ekvskpq4wnTyCH 6d2nEAykTRLmQUuCt3u4gsQVbw== X-Google-Smtp-Source: ABdhPJy1r1tHWLYtTSnN/+l4Vc0rdLRc8bMHH2qHR5QXXXoxzciM9Lsy6q2E8W/TiNELAhMCfUdb+Q== X-Received: by 2002:a1c:3d8b:: with SMTP id k133mr4829604wma.6.1617223611420; Wed, 31 Mar 2021 13:46:51 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:1573:1dd5:899d:6362? ([2a01:e34:ed2f:f020:1573:1dd5:899d:6362]) by smtp.googlemail.com with ESMTPSA id a8sm6689496wru.35.2021.03.31.13.46.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Mar 2021 13:46:50 -0700 (PDT) Subject: Re: [PATCH v5 2/5] powercap/drivers/dtpm: Create a registering system To: Greg KH Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lukasz.luba@arm.com, rafael@kernel.org References: <20210331110048.24956-1-daniel.lezcano@linaro.org> <20210331110048.24956-2-daniel.lezcano@linaro.org> From: Daniel Lezcano Message-ID: <918bc42d-0bd7-753c-1132-fd19617349ed@linaro.org> Date: Wed, 31 Mar 2021 22:46:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 31/03/2021 20:06, Greg KH wrote: > On Wed, Mar 31, 2021 at 01:00:45PM +0200, Daniel Lezcano wrote: >> +struct dtpm *dtpm_lookup(const char *name); >> + >> +int dtpm_add(const char *name, struct dtpm *dtpm); >> + >> +void dtpm_del(const char *name); > > You can not add new kernel apis that have no user. How do you know if > they actually work or not? We have no idea as we do not see anyone > using them :( > > So no need to add things with no user, feel free to just drop this patch > until you have one. I've sent a couple of patches [1] on top of the previous series. I'm finishing to respin it against this new one. -- Daniel [1] https://lkml.org/lkml/2021/3/12/1514 -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog