Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4350612pxj; Tue, 8 Jun 2021 12:09:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1B9RzpVgMkwtmdPZx9BXDl8lAhFEuFHLNnIuohYP8TRzMpkJ35eKsjD1t40P+nWRxd9JX X-Received: by 2002:a05:6402:18c:: with SMTP id r12mr11619480edv.10.1623179364837; Tue, 08 Jun 2021 12:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623179364; cv=none; d=google.com; s=arc-20160816; b=AqkDZWLnhzXFHVCD2t0KtX57SGKey4afmj9uR/r9tebEbhiA45TfDo3hnZVogk60te 0dwPOqN1gQFfz9M1e9s7Qpu6KyZuVLvC+rbnb6po5kO+df2J2hKKte/crwtTX47Nzjws +1JxOT86MNteIBDBJlY/LJMDgUvmgKRyUTPHHcEoou2kvMIO5uJozmgOFw7sKYnNet7g 9MMQXp0p3uzNXeLKpk8qbucVTXuqdARZuZMUFgia17JmmufpBiTWIrdjWh/fHGdLcY8u 2mASv5mkZo4hNcFv1yMji603ilUorY/j7ilEjGn5/ecL5ApMy6xt/zFlnLhNYOlfIyq8 I/5g== 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:in-reply-to :references:mime-version:dkim-signature; bh=XH/3SBzhXEZinQRmZMjAfIGu0JUbJo2MQXLpr1qwFmk=; b=fDXRDtA64XCyuOjfyGsDM7fBM2tO8I0s+gKj5ZoRTZMQRcBUCW1NexVGcmUJs8Na8O VcCbwxhkVVgXZY+D7ItUz7CuvSMrTZivWXHEPy0mtnXqyVFdCzkVfSIlo2kLK5NINXxj f82OQbko7gwKdgryRQWejKmSoji3khQyyZQkRTkcZAy00N7QVbZfmKCaHZumu87TM2EC OyUitoW2lZTkFsA/uZd6zTfkfMSJxDTlp0SAlCEcBihUP2rToI7pqVrY1hZhiMJH/YGM 02PvhE4oVjpeuw7w5gAXMrWTh5uUEu7+mIAU8ae1eVwzWWXi50xLWpjNxA16slpAW4Wx EOJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CbTtmukj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l22si380626edw.387.2021.06.08.12.09.00; Tue, 08 Jun 2021 12:09:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CbTtmukj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237810AbhFHTFb (ORCPT + 99 others); Tue, 8 Jun 2021 15:05:31 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:36607 "EHLO mail-lf1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235121AbhFHS4X (ORCPT ); Tue, 8 Jun 2021 14:56:23 -0400 Received: by mail-lf1-f51.google.com with SMTP id v22so32405534lfa.3 for ; Tue, 08 Jun 2021 11:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XH/3SBzhXEZinQRmZMjAfIGu0JUbJo2MQXLpr1qwFmk=; b=CbTtmukjRPYewEoWFqp1sRz6oSiH0zZb4mGBHEa4nRRWAU8+EcBzOal+ROP5WBXR5x JrRd3XFOeNYJdFs7j4wwrN51j3iRzmFxuYz5Y1baQLAEhXVcCPWQX8Rh+QNU1CfWheAo jkbZ93/skrcSmMajQAsvfoqbVACDfCPcQk525e/YOT9S5Dm+wlyEKqB1/TCSh1y8id4u tqTKYJOT5FYnUJfvbq+NQ0qgjjIg6x8rATA+9dLGjJRXbyDKWLEobCF7i6okmarHEaWV Y9PRz9VRzMiZPhldY+dBeeogHR4wuISY4reP4T++0Az0qZX/04658c1wUFIQ6+8wys8k O1Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XH/3SBzhXEZinQRmZMjAfIGu0JUbJo2MQXLpr1qwFmk=; b=osah0cc1COkL1rFmlOc0mmNIa9B7Azfcg2YHwxbtW8inMNk5nYAlB6hYy0Nci1RQ7b xWzu3K9fkTNNWp/75dUsyAXHh2OWHwu6Bh30FZp8jcdsJw06ZThWhQTSUYojssvliF9g nRpQm+6xWazm/EZfBI0fO95XwHyTVB97DqhJL7D38H3RTlJTFRdeFU8ouGjwKAyP4Vpf 4CRUFviwVKv8dNpA3TpSjwMA48pYy9a0v8TxGrAHshzUkDMiqczliplKOCqixvyunjrj ZatcLNJvJktV6dhNT9jE7rslSi6V9/Lr8wUGVKQzj17a1WGnLKYvmTyIG/bOVvo1PZTm +Fhw== X-Gm-Message-State: AOAM531lLs9T64JGz1hAMVmA1KABJex9n7dsIcsaLjHOA6f4WJspCezG MN8iRZZ1NIGEfOZYruO31AE7wZJQQMOaJxPHilfGrg== X-Received: by 2002:ac2:5cd6:: with SMTP id f22mr17251433lfq.73.1623178399858; Tue, 08 Jun 2021 11:53:19 -0700 (PDT) MIME-Version: 1.0 References: <1623145562-111662-1-git-send-email-yang.lee@linux.alibaba.com> <6335deba-9e94-61e0-89a1-8905be0e35a1@kernel.org> In-Reply-To: <6335deba-9e94-61e0-89a1-8905be0e35a1@kernel.org> From: Nick Desaulniers Date: Tue, 8 Jun 2021 11:53:09 -0700 Message-ID: Subject: Re: [PATCH] thermal: devfreq_cooling: Fix kernel-doc To: Nathan Chancellor Cc: Yang Li , Zhang Rui , Daniel Lezcano , amitk@kernel.org, linux-pm@vger.kernel.org, LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 8, 2021 at 11:49 AM Nathan Chancellor wrote: > > On 6/8/2021 11:39 AM, Nick Desaulniers wrote: > > On Tue, Jun 8, 2021 at 2:46 AM Yang Li wrote: > >> > >> Fix function name in devfreq_cooling.c kernel-doc comment > >> to remove a warning found by clang(make W=1 LLVM=1). Ah, good find. In that case I'd be happy to sign off on a V2 that replaced s/clang(make W=1 LLVM=1)/kernel-doc/. > >> > >> drivers/thermal/devfreq_cooling.c:479: warning: expecting prototype for > >> devfreq_cooling_em_register_power(). Prototype was for > >> devfreq_cooling_em_register() instead. > >> > >> Reported-by: Abaci Robot > >> Signed-off-by: Yang Li > > > > That compiler warning doesn't come from kernel-doc. Your diff looks > > good (the comment was wrong), but the commit message is curious. > > No, this is indeed kernel-doc complaining. Clang should not even be > mentioned in the commit message: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/kernel-doc?h=v5.13-rc5#n1228 > > The warning could probably be improved to say "definition" instead of > "prototype" in certain cases but *shrugs*. > > This warning is similar to -Wmissing-prototypes from clang but refers to > the fact that the comment claims it is documenting one function but it > is really documenting another. > > Cheers, > Nathan > > > Usually that warning is from when the function prototype does not > > exist for a function with extern linkage. It looks like that's always > > provided though in include/linux/devfreq_cooling.h. Can you share a > > link to the original report? > > > >> --- > >> drivers/thermal/devfreq_cooling.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c > >> index 3a788ac..5a86cff 100644 > >> --- a/drivers/thermal/devfreq_cooling.c > >> +++ b/drivers/thermal/devfreq_cooling.c > >> @@ -458,7 +458,7 @@ struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df) > >> EXPORT_SYMBOL_GPL(devfreq_cooling_register); > >> > >> /** > >> - * devfreq_cooling_em_register_power() - Register devfreq cooling device with > >> + * devfreq_cooling_em_register() - Register devfreq cooling device with > >> * power information and automatically register Energy Model (EM) > >> * @df: Pointer to devfreq device. > >> * @dfc_power: Pointer to devfreq_cooling_power. > >> -- > >> 1.8.3.1 > >> > > > > -- Thanks, ~Nick Desaulniers