Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4327246imw; Tue, 12 Jul 2022 06:12:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tgaHbsinSWr9V8JfiC4e3EwFj2PWS+NArgEbbO+4dnIIcBSpIRq47vOm0UTLAionFAaVtU X-Received: by 2002:a17:907:6d0d:b0:726:d066:4631 with SMTP id sa13-20020a1709076d0d00b00726d0664631mr23989140ejc.271.1657631527959; Tue, 12 Jul 2022 06:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657631527; cv=none; d=google.com; s=arc-20160816; b=nXvCTXsFQw8Z/oH/5zpOGw1WFMnoc3fsUETVmNKihcPKF7WVNrBJilCOMdHl19HlGa h/gKwGTCXIijnJ8+Udx2k4/beVOvyEp4pxfkgFJHs1nNEApPbM14UNXckjFMDFSq37dl INH4JtvMGslaGvy9QuEaKwf3MSpFD3D/+uk6FNEigltZWfLJ5TF0h146IaSSlCl2pVtN SUW2dh5kntkNnlhGWQp3+yby7wYEbN4RUQS3ditimW1qXOxUFgOKaUEsuHBQtsfZASuL S4gkgZUbyugRthDfrqN2tMnlbBfSTSA1eyu2dEyFOJCAMXSnOttYMaaIIYRyZnmuu98v cf3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=QTFaaFfrmflBfN2tiPMpqSNmnH8IeA/fkfWvf4+Z6SM=; b=FyLLf+k/BvKfOOIjDME1VZDtSP6AGw54vo2ynNA4KLSY0UUBSYyqH4KKNc06MkOCJx DW7vUm735ST6L7x52XHGgbYNfy2uILe7FWXPcB+9RK2sThaWYjwjRmWktcQpaXqyU8nx t9tBtKbUadZcAUfiBYNDGanPjyxWA0KSuUNwVQAT/kMxnAegQ6RK3hqF6bkrwwIOEAVW k8C85ILJtaI6N9LYIcQPb51CvyXaOAnfN4zXm/2iqobSDdMfpPwSQGu+UGOOv2As3MVH w64x3qW5Dy6/X25+w8OA6fpuQj1WEsI5jJVWL9lgRusq81SOWtkHGYTVhSxE7sVin4r/ fLRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=O9ktPBSp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft21-20020a170907801500b0070d5a5343a3si11072955ejc.353.2022.07.12.06.11.39; Tue, 12 Jul 2022 06:12:07 -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=@lwn.net header.s=20201203 header.b=O9ktPBSp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbiGLNFn (ORCPT + 99 others); Tue, 12 Jul 2022 09:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbiGLNFm (ORCPT ); Tue, 12 Jul 2022 09:05:42 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5CE33A28; Tue, 12 Jul 2022 06:05:41 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id DDEB22B2; Tue, 12 Jul 2022 13:05:40 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net DDEB22B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1657631141; bh=QTFaaFfrmflBfN2tiPMpqSNmnH8IeA/fkfWvf4+Z6SM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=O9ktPBSph9PmD4wdt38ZJz8NisWq7wufs/AOPcMJ1YeK52889vEPQo5xBWEIp9eMj GNqEx1/kzx7IIig1+Xsam5nnR+a9ilxVFaqEp9WQTDgIw33DzuvhdPqBWTVnynElpB 4KMoo+UninwEJlRYGz6bxPV+dBL2dFlL+yX9WvLbkrsm9aq4AwmKQMjDXdbaaWpPLC PrDIdtnUOfx7Eap310fAWvETx6U8QfPNirt6/7nXMZn0ntpBxaTWkyJP9PsWimoLyL B6j6/oYY/HUDn3OFxcZneVDa4NTVA5YmVy3rYK2HRRVDmHuF4s4QNZFDHTZuuXWraq PEMrj7nh93v0A== From: Jonathan Corbet To: Dov Murik , linux-doc@vger.kernel.org Cc: Dov Murik , Eric Biggers , linux-kernel@vger.kernel.org, "Jason A. Donenfeld" Subject: Re: [PATCH] Documentation: siphash: Fix typo in the name of offsetofend macro In-Reply-To: <20220712104455.1408150-1-dovmurik@linux.ibm.com> References: <20220712104455.1408150-1-dovmurik@linux.ibm.com> Date: Tue, 12 Jul 2022 07:05:40 -0600 Message-ID: <87fsj6bhwb.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Dov Murik writes: > The siphash documentation misspelled "offsetendof" instead of > "offsetofend". > > Fixes: 2c956a60778cbb ("siphash: add cryptographically secure PRF") When you send a patch with a Fixes tag it's always a good idea to CC the author of the patch being fixed. Adding Jason...let me know if you'd like me to grab this. > Signed-off-by: Dov Murik > --- > Documentation/security/siphash.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/security/siphash.rst b/Documentation/security/siphash.rst > index a10380cb78e5..023bd95c74a5 100644 > --- a/Documentation/security/siphash.rst > +++ b/Documentation/security/siphash.rst > @@ -85,7 +85,7 @@ Often times the XuY functions will not be large enough, and instead you'll > want to pass a pre-filled struct to siphash. When doing this, it's important > to always ensure the struct has no padding holes. The easiest way to do this > is to simply arrange the members of the struct in descending order of size, > -and to use offsetendof() instead of sizeof() for getting the size. For > +and to use offsetofend() instead of sizeof() for getting the size. For > performance reasons, if possible, it's probably a good thing to align the > struct to the right boundary. Here's an example:: > > -- > 2.25.1 Thanks, jon