Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp327064rwb; Mon, 26 Sep 2022 20:00:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4CgW+9usnj8OQI9OngB1RjKpUflepJT22A6SkNrRM3RJTsj16Npqc6I8wzJxvp104sVOPx X-Received: by 2002:a63:847:0:b0:439:22e4:8e49 with SMTP id 68-20020a630847000000b0043922e48e49mr22106632pgi.165.1664247642332; Mon, 26 Sep 2022 20:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664247642; cv=none; d=google.com; s=arc-20160816; b=FX6xz6t60Pn7qcM3DeRSdsbzDRUeKlVJz9UMr5NPHGKawKcnHKmB18kNB26GlEmv0x FSoiwwyYddKKUH//t343DhM1H5o1VDvS5cn3zN/FjWD8Q+7zts+TeMAtmOsNTmxpGdam zZhYTJjqlBhiE1H5TLnEiGF+cInA6IasDoejvm1ICW9DnVgFfsiEucLwChuH0noifiW4 u2/BXqgL3lkSOdHxNiCzVgn1clG9szjz5kTTTuAKfqALBf4fkckhfMoMgXt2MJYReLGv rnthY68QSr+uiVzemRP1sj3qa+muE4Wbn94deaS4k08QsRHvy+Vp13hP97NzhThd2r1A LD5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uVSDX283H5TLgkOzDymE7tG05Kgkflu8UK7iAbsdboU=; b=JPgg7I/8o/Ebs3sdKmoXLBACAGyOei9eria8ZYcaEDFZm3C+QoGIVkRg58LVbrom0S OGPihItuYu92VLUIDmPBdlKtWsMVLS2z8Jea6Hs/SrHGJaGnViWtj9qajfZ4vuRNJj1L lfA8YixG1KsMvsnCwZySesAZP15U3nE/l/AM4Lq3lTM7pRCDNRyd/q61Qk/3JyCAI7F3 Rm3hXmpKZ42aaT0y8lCSjV9f46bAblVXUq5tJjSTj6o0U0hyrtyJYDjw+7KXLXfxAbCB /N/b7I778QituJQoiYSyCQL3uSsctRtY/yazJW9KF9afOBgvKfw2hY8nbBQnMHW+1x/Z OuMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="c/RqcdJo"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd32-20020a056a0027a000b0054ac034d8d5si680262pfb.184.2022.09.26.20.00.30; Mon, 26 Sep 2022 20:00:42 -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=@gmail.com header.s=20210112 header.b="c/RqcdJo"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbiI0C60 (ORCPT + 99 others); Mon, 26 Sep 2022 22:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbiI0C5w (ORCPT ); Mon, 26 Sep 2022 22:57:52 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00F54DB4C; Mon, 26 Sep 2022 19:53:42 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id g1-20020a17090a708100b00203c1c66ae3so8813528pjk.2; Mon, 26 Sep 2022 19:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=uVSDX283H5TLgkOzDymE7tG05Kgkflu8UK7iAbsdboU=; b=c/RqcdJoO27QwlNbfMvLMb7gmXT6fAo6t6bl6Cqlh3sxssmDGtvTt4s3LqkqX0A/0o S1bUEfXxTjLpMUP3t3mIUcXXSTx66VoJYOrTHgle0H54/o1XEawTJHPS2q86SuFghjV2 hatIXXP5uZoF1ug5+MykghIUKvlDsZDOqqewiICSfGvhUQVG8POWyZO3Plu5AS+x/3zC qOgwQlFez/RDeRiRdnDe7JNReOG3fGui4OXmHMJiCHTvS5sUWjyidlrG7fHaSWb17UNv Zbm5sFuMwVEd8giDvACuHAlw4rmUyMDP45piY66CsrUcaXqu3W3ybS9stpISvfxAu6qF 0mrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=uVSDX283H5TLgkOzDymE7tG05Kgkflu8UK7iAbsdboU=; b=hwNGErtK1MupCXkADcyT9LRzQHW9puK9FIju7ltnaXoHS6d+mGWY5tqolN5P/swcDb olq1nycCcOTo/eRbl6LKFA7FppFlAcGUhp11VNYy/hF4pvlkr0DY0408kTPBmUnL2GNF 4dkV4CIZh6wGHkXeL39XoxcKB7fQC4k8bdnU+t7+3D0T8peRqV/0I+BJgSQIYvjR50Rn Xl/pkDG96f4kj0qzXub4pMX4MVE/67cYoCYRWyQXKtpBXaqKlOV3HO3JLCZkPAveI1/X dDX/uUPN21ZhVZ4CW22JyW9bV8PqFieOs9KrnwNDXk34FfnleG9yvdc7Gpi4gPAa+X1m cIwQ== X-Gm-Message-State: ACrzQf0f8iDGmQa2jWM0ep4jOADZu7kT+UsxB2LUn6GhXLwEIbBpg6Ht iqhV2eGc4s+ZBFn2kbx7uS8= X-Received: by 2002:a17:90b:1e01:b0:202:ee2b:c856 with SMTP id pg1-20020a17090b1e0100b00202ee2bc856mr2005411pjb.29.1664247222263; Mon, 26 Sep 2022 19:53:42 -0700 (PDT) Received: from [192.168.11.9] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id a4-20020a1709027e4400b00173cfaed233sm189404pln.62.2022.09.26.19.53.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Sep 2022 19:53:41 -0700 (PDT) Message-ID: Date: Tue, 27 Sep 2022 11:53:38 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] overflow: Fix kern-doc markup for functions Content-Language: en-US To: Kees Cook , Matthew Wilcox Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220926194713.1806917-1-keescook@chromium.org> <202209261408.59F78C0D@keescook> From: Akira Yokosawa In-Reply-To: <202209261408.59F78C0D@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 Hi, Somehow Kees added me in Cc:, so let me comment. :-) On Mon, 26 Sep 2022 14:09:10 -0700, Kees Cook wrote: > On Mon, Sep 26, 2022 at 10:06:19PM +0100, Matthew Wilcox wrote: >> On Mon, Sep 26, 2022 at 12:47:13PM -0700, Kees Cook wrote: >>> -/** check_add_overflow() - Calculate addition with overflow checking >>> +/** >>> + * check_add_overflow - Calculate addition with overflow checking >>> * >>> * @a: first addend >>> * @b: second addend >> >> Why did you remove the ()? And why didn't you delete the blank line? >> According to our documentation, the canonical form is: >> >> /** >> * function_name() - Brief description of function. >> * @arg1: Describe the first argument. >> * @arg2: Describe the second argument. >> * One can provide multiple line descriptions >> * for arguments. Matthew, you call it the "canonical form", my take is more of a "template that is known to work". >> >> I don't usually complain about people getting that wrong, but when >> people correct it to be wrong ... I'd say "wrong" if "./scripts/kernel-doc -v -none include/linux/overflow.h" complained or the resulting reST doc didn't rendered properly, but that's not the case here. > > Hunh, everywhere I'd looked didn't have the "()" (which seems > redundant). The blank line was entirely aesthetics for me. If it's > supposed to be without a blank, I can fix it up everwhere. So, I think this is more of a territory of preference or consistency rather than that of correctness. Those extra blank lines can be confusing as most people expect it in front of description part. get_maintainer.pl says Kees is the sole maintainer of overflow.h, so it's his call, I guess. Thanks, Akira >