Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp940066pxt; Fri, 6 Aug 2021 18:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWrWIACjrFP9FPSFdZdDlQnd9qyvhbGp34YzkyLLSuDb8g/Icc4SgowHe7VCOy5KQAck2T X-Received: by 2002:aa7:db95:: with SMTP id u21mr16358421edt.152.1628300663753; Fri, 06 Aug 2021 18:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628300663; cv=none; d=google.com; s=arc-20160816; b=FqRYAUdizVABj6LZ6d4ys9No+bKPT4QscpRPqNDivaJBwDfjKRFQhwgu8Oq+Rp1dej nYIFEmYbRGXSoe8HS7wn5VsDkeNY1CThuAr+pjMSv579IJ2nz1HIJ2LYrT0M9rM6KpE2 F74zjYeK498dsy4057Qh2s4nHXi6gdJ2p2Hp+8pvcwQCinheIsmN7UFE2HQ4bgR2YcvB FJBqZ8AWOhKLI0TNuqD4qUfD2XsHsUikSZ8KWKePu9UhzcmLIvLUCkc/76+u74St4m8F HYj2W93p8upAgXCUXCyvtdofJGatVXsHcRou9hcwevZEca4r6qq7k5AUQdyrL3PQ/jSc OflA== 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:dkim-signature; bh=J0f4OaPE35/KHAcoMTr1PIVu/Y71deIk870EQYRu6rk=; b=Ejy2xChwu//NU/DKxWldaPDfvbigWmGTast2u6J2GL0zyArph6FzRShS1bglVZwc1C CYmJ0RCYsSue0nGrlAZ96bFhJWcpee+vnFnjg2FDn+8TXbyPaRsgWqZ4b8PWUI+LPQS4 zAR7kAnfBKY8U2su/Gdx1FxKNg9UdKA4dAXTbXvwjcKWdGW9DeRipCjR7DuYr/dHaoZh /ZrNHyCQHClGMmi0qqJM8a4g1h8q8UBGdUzBsWD5m30S7REUzXUfltZVFh58KAgNc2Pv ZJym4AxwXbhUEcE4vdD4KBsjUVo/C9khIBlqV2uRfckYxeD6Qe9lrPyMpybOhSBRb2MV VjEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cmZIF4js; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si10554944ejb.697.2021.08.06.18.44.00; Fri, 06 Aug 2021 18:44:23 -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=@infradead.org header.s=casper.20170209 header.b=cmZIF4js; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbhHGBja (ORCPT + 99 others); Fri, 6 Aug 2021 21:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbhHGBj3 (ORCPT ); Fri, 6 Aug 2021 21:39:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F299BC0613CF; Fri, 6 Aug 2021 18:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=J0f4OaPE35/KHAcoMTr1PIVu/Y71deIk870EQYRu6rk=; b=cmZIF4js4K08N9YSEq+3fK7gVm z+DNGeSHPeiHfVD6QY2BHj54TEH4ZSmWgxrN4iDtrAExQ0rF2l0w+lzff2T73glIlNbgkT+NDARky wvASdGEfpaEeuOObkAii8KUAxPE50Vk+9uBNO1W3KHErCb1sBcgeQWxFZEExkTop2yPScxd9foSgD NwyIAymzSRishXlwe+7keFbpnDGqq18nrurcm/Yx/hWkClHKaooi4LIVenjyFH3SjJtbabU3P64kU zPR9pFsQy+hx6sGjPL07kUvd16skW6p4g4gyWnjGOt7450Y0QKjp140UvnjXncR+HbrdaGB0UEfKG h4El8dxg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCBIJ-008lqv-MV; Sat, 07 Aug 2021 01:38:45 +0000 Subject: Re: [PATCH] s390/crypto: fix all kernel-doc warnings in vfio_ap_ops.c To: Tony Krowiak , linux-kernel@vger.kernel.org, kbuild-all@lists.01.org Cc: kernel test robot , Jason Gunthorpe , Halil Pasic , Jason Herne , Harald Freudenberger , linux-s390@vger.kernel.org References: <20210806050149.9614-1-rdunlap@infradead.org> From: Randy Dunlap Message-ID: <1ad57c8d-c0d1-88d9-bcce-3d3501455d8e@infradead.org> Date: Fri, 6 Aug 2021 18:38:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/6/21 6:26 AM, Tony Krowiak wrote: > Reviewed-by: Tony Krowiak > > Pardon my ignorance, but this is the first I've seen of kernel-doc warnings. > Is there a flag I can set when I build to get kernel-doc warnings? Is there a tool I can run? > Where is the kernel-doc format documented? I'd like to avoid this in the future. Hi, Here is the 0day bot report: https://lore.kernel.org/lkml/202108010650.DLRzJOtm-lkp@intel.com/ (not sent to any of your group, sadly). kernel-doc format is documented in Documentation/doc-guide/kernel-doc.rst. The 0day bot lists the reproduction steps. It used clang but I used gcc. Shouldn't matter in this case. The main point from the 0day bot is that "this is a W=1 build". Using W=1 causes checks for extra C compiler warnings and also it causes checks for documentation build errors/warnings. In your build environment, using "make W=1 ARCH=s390 allmodconfig all" will produce lots of output (both compiler and kernel-doc output). I suppose that is the expected way to do it. AFAIK there is no support for something like "make W=1 htmldocs" to just check for kernel-doc errors/warnings in source files, so what I do when I am targeting only one source file is something like what is documented in the file referenced above: "Running the ``kernel-doc`` tool with increased verbosity and without actual output generation may be used to verify proper formatting of the documentation comments. For example:: scripts/kernel-doc -v -none drivers/foo/bar.c " and then I script that for ease of use. Using the latter command reports lots more kernel-doc warnings than the 0day bot reported, so I fixed all of them that it found. HTH. > On 8/6/21 1:01 AM, Randy Dunlap wrote: >> The 0day bot reported some kernel-doc warnings in this file so clean up >> all of the kernel-doc and use proper kernel-doc formatting. >> There are no more kernel-doc errors or warnings reported in this file. >> >> Signed-off-by: Randy Dunlap >> Reported-by: kernel test robot >> Cc: Jason Gunthorpe >> Cc: Tony Krowiak >> Cc: Halil Pasic >> Cc: Jason Herne >> Cc: Harald Freudenberger >> Cc: linux-s390@vger.kernel.org >> --- >>   drivers/s390/crypto/vfio_ap_ops.c |  116 ++++++++++++---------------- >>   1 file changed, 52 insertions(+), 64 deletions(-) -- ~Randy