Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp333565pxb; Thu, 5 Nov 2020 00:56:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVKsyCV5CsJlTYPY8QgwLycfkV5L5XbGVsdhCKNLCepkVxJrEDR8uhDoemwjn01/Nw6XzW X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr1207527eje.229.1604566589380; Thu, 05 Nov 2020 00:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604566589; cv=none; d=google.com; s=arc-20160816; b=gMsykojshVdktntvpOb8Cp1wKgCZxq1+yzRqIRlknPzBGWUQO2/6fPEvuI9Is+KmdS RV0S2eGRAfWBJkIS5jLXdv0xqRvV5WZEIC+9HhyoHYDL/NSII8ESd7l2/Vwj7q6kudaj UIU1NRGZEUUfTWDjfCBufhRhtPJt0Ec+sGI0Bt38D4bzBI1qxGLs/5NeWDKuFGbJnZ/g oTKbLDg3+ZChtwlOWmT8pvFpJEeFLF6k6J1Ieffn+aokhRW5iE2t/6A4/VfTTeIHRT90 rJ28jmHa2iABAoQFXSZgIdWtfsSiS49TFU7rYySYvuzdYiqTpyZyacmLaycK9XXVY3Oj UHQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WpbbC60jA8vbXB1BII+d/WIO26oOwmqU8T35Zpa5f7c=; b=jo9rlt1n3eaorXVQJwd56Vc4zN1u6hLReOxbM3X1+PZQtVO7jg/edhZOhTEr34xMls Y7xIiICxoitoiqunsVFXNDZnV6PmzHVkvwjtJYIeqFd/oefXOtaQH3x/SRHWOTgrVb0r Gibx5pRSEXPtU5RszSAsYdXlksaUzjZvm89bhkGC6UebDYXyTjBD2rAd5gadjpkPV5A0 ckNZAae4Wsp8cNcPs9ViwcnhQ4jm8nHAW6/2ncpcoqa4uBbdpmGEN7D8lj8v7cfJ6EfU C5vNm8Dtq7ohSCGX8pp1fw5WmO6m5Rv9CgmXGGDiUiad5atcXA2vAJcEVmKdEM/kZmMn ZRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kKsH8yPF; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si606522edh.491.2020.11.05.00.56.05; Thu, 05 Nov 2020 00:56:29 -0800 (PST) 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=@linaro.org header.s=google header.b=kKsH8yPF; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729779AbgKEIxV (ORCPT + 99 others); Thu, 5 Nov 2020 03:53:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbgKEIxT (ORCPT ); Thu, 5 Nov 2020 03:53:19 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E97C0613CF for ; Thu, 5 Nov 2020 00:53:19 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id c16so757040wmd.2 for ; Thu, 05 Nov 2020 00:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=WpbbC60jA8vbXB1BII+d/WIO26oOwmqU8T35Zpa5f7c=; b=kKsH8yPF3VunpoDOaD8BENd9pyU0Ual13erj/sQR31jv+GDFWA9pclNrwxmn/WtC+9 lSSE3k/BLKEDq5JogMrrtnmIeb2LJKIu4qQOsaAQdgJoGbmvuNSt8XbHyjeQP+jGLFk2 MHvCjNoAgegIuUDVqvl8R2lVSwIQuN/AAX9WHVIF2qsT5dkgowHFz4u9N0VB9PiWGIpm 7AfIjN+wodrP1Jk9kyBqkFPEq8KyKG9Slym0TMSSRZb/zY3ot2+HjQc7+9Yjmm5sMp1I hchAY0hXvW6Dyr7YgXs9Og6PoC7FyV0MHi0WuAgYC+Ed0Fpu6YUYIxdE9ZSjIgRJ6m6b 2WWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=WpbbC60jA8vbXB1BII+d/WIO26oOwmqU8T35Zpa5f7c=; b=l3a9FKkaPYr/qEMyvI9UoCx5R+HyZUlbyaQq0iiQZcS5UVTg18Td6hafKgycsO+cVc mkImUQbyhnZ4YIpSvvXNve2gy+eHFKGgV21Y5llYMybiPQaZw9eGjZrVpSqpzsmcodkm Z4/4FEuWCjNijWr0fLcH/a6FcLxKr1KSMGe5PalRR/S+YMump0vbM7f+5vPVrmZ0EDDP AckZUX7941orGtG8NHhYBhGe3RmqNn6gb+1cSO0k72vEEjBM7yp1ckaC/D8aTCFWrZzj I0tHSRIgdlf942niRMzUf44quvLvaurYn0ihcpViw9H3UtZbA9E8eMt4Ml6IsvrXreOV s/9A== X-Gm-Message-State: AOAM531cgxgRXiw/uopoGP8/2pbb4dnjqtqiogJPQkgIHpytLQ7MtDZ7 ixj9HND/hmPEgagRGygTYrSKisS7IDJdpWaV X-Received: by 2002:a1c:7e87:: with SMTP id z129mr1514050wmc.176.1604566398176; Thu, 05 Nov 2020 00:53:18 -0800 (PST) Received: from dell ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id d63sm95828wmd.12.2020.11.05.00.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 00:53:17 -0800 (PST) Date: Thu, 5 Nov 2020 08:53:15 +0000 From: Lee Jones To: Jiri Slaby Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Nick Holloway , -- , Marko Kohtala , Bill Hawes , "C. Scott Ananian" , Russell King , Andrew Morton Subject: Re: [PATCH 12/36] tty: tty_io: Fix some kernel-doc issues Message-ID: <20201105085315.GA4488@dell> References: <20201104193549.4026187-1-lee.jones@linaro.org> <20201104193549.4026187-13-lee.jones@linaro.org> <715cfe26-18d3-a035-0cf8-958f1235b4f7@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <715cfe26-18d3-a035-0cf8-958f1235b4f7@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 05 Nov 2020, Jiri Slaby wrote: > On 04. 11. 20, 20:35, Lee Jones wrote: > > Demote non-conformant headers and supply some missing descriptions. > > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/tty/tty_io.c:218: warning: Function parameter or member 'file' not described in 'tty_free_file' > > drivers/tty/tty_io.c:566: warning: Function parameter or member 'exit_session' not described in '__tty_hangup' > > drivers/tty/tty_io.c:1077: warning: Function parameter or member 'tty' not described in 'tty_send_xchar' > > drivers/tty/tty_io.c:1077: warning: Function parameter or member 'ch' not described in 'tty_send_xchar' > > drivers/tty/tty_io.c:1155: warning: Function parameter or member 'file' not described in 'tty_driver_lookup_tty' > > drivers/tty/tty_io.c:1508: warning: Function parameter or member 'tty' not described in 'release_tty' > > drivers/tty/tty_io.c:1508: warning: Function parameter or member 'idx' not described in 'release_tty' > > drivers/tty/tty_io.c:2973: warning: Function parameter or member 'driver' not described in 'alloc_tty_struct' > > drivers/tty/tty_io.c:2973: warning: Function parameter or member 'idx' not described in 'alloc_tty_struct' > > > > Cc: Greg Kroah-Hartman > > Cc: Jiri Slaby > > Cc: Nick Holloway > > Cc: -- > > Cc: Marko Kohtala > > Cc: Bill Hawes > > Cc: "C. Scott Ananian" > > Cc: Russell King > > Cc: Andrew Morton > > Signed-off-by: Lee Jones > > --- > > drivers/tty/tty_io.c | 10 +++++++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c > > index 88b00c47b606e..f50286fb080da 100644 > > --- a/drivers/tty/tty_io.c > > +++ b/drivers/tty/tty_io.c > > @@ -2961,7 +2965,7 @@ static struct device *tty_get_device(struct tty_struct *tty) > > } > > -/** > > +/* > > * alloc_tty_struct > > * > > * This subroutine allocates and initializes a tty structure. > > Why do you randomly sometimes fix kernel-doc and sometimes remove functions > from kernel-doc? What's the rule? The decision is made quickly (I am fixing literally 1000's of these), but the process is definitely not random. If there has been little or no attempt to document the function, it gets demoted. If the developer has had a good crack at providing descriptions and/or the header is just suffering with a little incompleteness/doc-rot, then I'll fix it up. Here for example, no attempt was made to provide any proper documentation. > For example, alloc_tty_struct is among the > ones, I would like to see fixed instead of removed from kernel-doc. There is nothing stopping anyone from providing said descriptions and promoting it back up to kernel-doc. If you have good reasons for it to be properly documented with kernel-doc, then it should also be referenced from /Documentation using the kernel-doc:: notation. Also see: scripts/find-unused-docs.sh -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog