[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <32f14288-315a-b75d-913b-2fc6a16cd748@kernel.org>
Date: Thu, 17 Jun 2021 13:51:24 -0700
From: Nathan Chancellor <nathan@...nel.org>
To: Joerg Roedel <jroedel@...e.de>,
Nick Desaulniers <ndesaulniers@...gle.com>
Cc: Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
David Woodhouse <dwmw2@...radead.org>,
iommu@...ts.linux-foundation.org,
LKML <linux-kernel@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>,
Lu Baolu <baolu.lu@...ux.intel.com>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] iommu/vt-d: Fix W=1 clang warning in intel/perf.c
On 6/17/2021 1:30 PM, Joerg Roedel wrote:
> On Thu, Jun 17, 2021 at 10:16:50AM -0700, Nick Desaulniers wrote:
>> On Thu, Jun 17, 2021 at 7:54 AM Joerg Roedel <joro@...tes.org> wrote:
>>>
>>> From: Joerg Roedel <jroedel@...e.de>
>>>
>>> Fix this warning when compiled with clang and W=1:
>>>
>>> drivers/iommu/intel/perf.c:16: warning: Function parameter or member 'latency_lock' not described in 'DEFINE_SPINLOCK'
>>> drivers/iommu/intel/perf.c:16: warning: expecting prototype for perf.c(). Prototype was for DEFINE_SPINLOCK() instead
>>
>> I think these warnings are actually produced by kernel-doc? (not clang)
>
> Will kernel-doc check automatically when COMPILER=clang is set and W=1?
> Because I did not explicitly enable any kernel-doc checks.
>
> Regards,
>
> Joerg
>
kernel-doc is run automatically with W=1, regardless of gcc versus clang.
Cheers,
Nathan
Powered by blists - more mailing lists