Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1390069rwb; Fri, 5 Aug 2022 00:37:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR7OCR6N/nfygQ+OK3gyi+Lx85dVha7mbkK6+pRytRfL3ypRdseiHXGpFUMM3qauMCF4PLmH X-Received: by 2002:a63:8049:0:b0:41b:e8db:d916 with SMTP id j70-20020a638049000000b0041be8dbd916mr4729749pgd.40.1659685035506; Fri, 05 Aug 2022 00:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659685035; cv=none; d=google.com; s=arc-20160816; b=QK4hUdOvRfx18Fy8qvS6qCth1ala6CFSXkj/t0/FC4aHFmZZQyNjRWbGoq9hIvb2rY AzpEWF9Es0DhFKV5IProPQOMPQaSzBE85Y9Bp6HIBgKBPJUVHQrKGcFwYZcsiFs6Sr0X f/iak2kv6RLSsY2PNvj02b9gsbV5wBmrmyVoM0FhiA1/FbekJpGPFKmhG73YMiJsdPXT K7K6qnj3xgvIL/dtVEVsjky/+2JyypEcOd/q5SARK6mqctJtp5QBm2IFzhaTcTKTrB5B oWZONtil+2inqKZ87VJcigoh4wC5UTYS/sGIILwCMBbNPvgu7BT9Bc7tgtT8Uf+LtUrd E+7g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yr7z6nhbzNogiIJ70Stp2xv6QZqdUY8fItjrb+K2Wss=; b=GNTb6jA7XnJdR+EBLMHEwtN6c2wacl2HcwxGNYFDqLlEL6BYLHQ1riorlMapRrHajR RmoKQHz9qxg8z2RMnWjUYhLXpfVqa8yO5QcSujP+i2dQpu9S53IfbFeV6tvejyMza5fn nuv/sAlG3NjYvfI8+O4svSk+9fp7GU7Y4dwR/PzMnMY8eObGdDhYkseqW97zhwOo0Fx3 bJ03BGHBLVzALIoAdfx/FEKa229btdqfnynLc1MJemZ5Np7xt0eT4wfaa8EGaJFB/fIW LDgpJqKPUjfIwh1udc3eu6UBJgeJg9Ba4WhAx2pizFNpeVWBCD+XrPsY2zcI/eKmKIQD /vPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=azUJW5HY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a634607000000b004161b3b9565si2217805pga.590.2022.08.05.00.37.01; Fri, 05 Aug 2022 00:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=azUJW5HY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235498AbiHEHWT (ORCPT + 99 others); Fri, 5 Aug 2022 03:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbiHEHWR (ORCPT ); Fri, 5 Aug 2022 03:22:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7F818397 for ; Fri, 5 Aug 2022 00:22:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2BC3DB8275D for ; Fri, 5 Aug 2022 07:22:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 924BEC433D7; Fri, 5 Aug 2022 07:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659684133; bh=7u3HxRp5NFkFE+bl2pbrO1Vom3p6Ci1YJ5qGLzvW4kE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=azUJW5HYl58q1jtoW4R7du9BvdG+qkRb7prxjH+hedfeH0LmF3zZCxUUe+xDopn4R WJ/drZzI97s3LMWdGFFxeaq9CIB/7HPxRx9dY2OaYzOI+J3zI8TTCkSZrl22v0+mfy KSMO02rpN6P995pDym/k/rwdDRvyz79An4JOD1boHBR3bulgkQOoLWNEEFLLcx8mcT Sp7YKaUVQNlUbxJcvx0r+FON07ySnLVMCNOwbAKdmDt0iik34ZYW51BdACFDSYhokR ZIi6wFKueDQbygGVQy9R85SZwNNohoPPc6nQc89nkK7rEs2aitDagfzNZF4C+Oxw/Z 0TdtHLp5Pgreg== Date: Fri, 5 Aug 2022 00:22:11 -0700 From: Eric Biggers To: Siddh Raman Pant Cc: Jonathan Corbet , David Howells , Randy Dunlap , Mauro Carvalho Chehab , Christophe JAILLET , Eric Dumazet , linux-kernel , linux-kernel-mentees Subject: Re: [PATCH 2/3] kernel/watch_queue: Improve struct annotation formatting Message-ID: References: <6bac2d4c2b50d921eb16fa5344ffe258be90c651.1659618705.git.code@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6bac2d4c2b50d921eb16fa5344ffe258be90c651.1659618705.git.code@siddh.me> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 04, 2022 at 07:00:23PM +0530, Siddh Raman Pant wrote: > Improve formatting struct annotations in watch_queue.h, so that they > fall in the preferred 80 character limit. > > Signed-off-by: Siddh Raman Pant This patch isn't just fixing overly long lines, but rather is introducing kerneldoc comments and documenting things that weren't documented before. That's fine, but please make the commit message accurately describe the patch. > diff --git a/include/linux/watch_queue.h b/include/linux/watch_queue.h > index fc6bba20273b..c99c39ec6548 100644 > --- a/include/linux/watch_queue.h > +++ b/include/linux/watch_queue.h > @@ -18,57 +18,103 @@ > > struct cred; > > +/** > + * watch_type_filter - Filter on watch type If you're going to use kerneldoc comments, they should be correctly formatted. This is not, since it's missing the word struct. You can run this command to see the kerneldoc warnings: ./scripts/kernel-doc -v -none include/linux/watch_queue.h > + * @lock: Spinlock Please make sure that comments provide useful information and don't just repeat what the code says. - Eric