Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp10526lqq; Wed, 12 Jun 2024 14:41:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWubU0dlgjgYWOO+mKDkdrH/qmqV/gZTXKGvi8nCRFOHYkbIQwLBRswtgX6i3ofm2/yR/95RSuPn/FtObEATd0uHBZk9orGKy2/PR46Xg== X-Google-Smtp-Source: AGHT+IHgjhv/20PIBOOz2LyUqPuamBOO/ajNl+1NMP6/HLRykoiXWavQ/jnKluaQSTSHsOpJF5U4 X-Received: by 2002:ac8:5fc1:0:b0:441:59c6:770d with SMTP id d75a77b69052e-4415aca85cbmr27238521cf.60.1718228473523; Wed, 12 Jun 2024 14:41:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718228473; cv=pass; d=google.com; s=arc-20160816; b=xdzNusEjcdyYZAN6GLUpY3TYxAApryh2MFpAoG/a5ZLeamjGkpT5EtQpHe3cPMRbQg 4hL+0gjLhod2dbP8UT2j5ooCqdLBneWyKvdD+u18gsV4HsGsAqVQrDdV976flLx0eedg 1gWFMnlsZ3Px9wc36fTANJ8AtnVEEYV9ubaKNqaVKHRuEF8wozuJePxUdYZUJ39jVSoI NeDQL9QhKeFD4acug742wQWL8ahs8vFNRxIjslp6FPNPdFwSrmL1g7DImU4O79Wf1G0b fRnntvTWTUzA9FTKy6uNzPrBTZZP9Vgdo3GVr+Nl6fcNwCM5POZ5wwnRM22IR4O1ukgg vt7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=qIc356MqW+8GvLC3z6w6lKJewxejf1SBuJ5raswiJNk=; fh=lGcpPTS9Rsyv3w0fqZcFFU5phfZG7mT2pLcEYNdj9Eg=; b=hC/0b8sKgOxwZcYCYEDTrnWxE2eVtv0iBX3RgZWSejt292MZjAOPO5zpa0832sF9/N uG4K42piWFYdrsA7fTEzRxzbvhTNfiLHW6S5N5ZtxDq7HssJq+ONJmLJ50IBVbcvWqN4 zFMsvF0EfXiESKIMmqd0Wk15r2BqXGcaz2tkmYrwDVDsUMsZ8Cc4AkHPfODL0OGjjDKL yu+efLeXMoOZ0cOAt/S6YPP/JDjHfzSpZJzIlISJcto9hfmeMgZaTor2kwe3W6iAguQA AGGkeWeWL6yiAnOKC3ypENagpWgkOefclFjfjoN09gMMUFn4mMshyh/DKps/jyMUh4YB 4I8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=hUOX1iOH; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-crypto+bounces-4923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441ef3ba038si528851cf.147.2024.06.12.14.41.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 14:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=hUOX1iOH; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-crypto+bounces-4923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 422761C212DE for ; Wed, 12 Jun 2024 21:41:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1D7D86277; Wed, 12 Jun 2024 21:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="hUOX1iOH" X-Original-To: linux-crypto@vger.kernel.org Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69CFD84FD6; Wed, 12 Jun 2024 21:41:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718228467; cv=none; b=ttWhKLp3BXd35zF5sV9EKypfDWBdPU3evsK0zn6tJSWct9XMeCWfhjKZZ3Ya8Y0A0FxSSTojg34NGEtEITE2WY8jt+miL70Gw6CYvDPPvhjRoI0LMM2JZvGmhxm2qiqGXUD/ej1384JUdjqIJ7QE6dlavVxq1UYbqx0rA70lXHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718228467; c=relaxed/simple; bh=ziYzFLawczmHhgIWSrqFxQLHUdUZWpR/vS18tblY604=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=cVKXr/OzrtkagGuXXFoyNIgA17+jkr2+IFPD0fNWvoC9099bRrkMsJug0fgF0eLXkY4E4sCGcWa8yTpwKCCmF1lF6VBKISRhAwY6liOV6GbflHjfg4+wrqpxvQ+Xu2vU5G/Ibx1ffNc3PEG2dziXUkAq3BiAK73nzH5fdpqpzEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=hUOX1iOH; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 6BBE845E2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1718228465; bh=qIc356MqW+8GvLC3z6w6lKJewxejf1SBuJ5raswiJNk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hUOX1iOHRgjtb2Al4eoDjrXBk8jheHUTSOe0XcRV4PQozwJAJfhTVtwOHuv0u803c n4aCxxAAd4XyGfkueM5FNjKlJxpt1vsInQhqkMeeDcaR4St3WvNIdU340VMkEFdVP4 FP03i0wvLI4x3xMfMACDYHlY4I0F3gHek8upcxi10MX4m3rySdFHnxpnx/BmnPGaNF RvbRxi27E9fQuWzWzmEXzlLfEzpx0+8GkEtR9dL7o1zc1kR+p6e2AvtqWj0t40vVNt XaKn06Z8hbfbXiCcJkcMaU+LkBHgDDPtjNiurP4wi0GT1zxupGJ3l+7ZmdQIrUKcQp mpzxjSXy/qNOQ== Received: from localhost (unknown [IPv6:2601:280:5e00:625::1fe]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 6BBE845E2C; Wed, 12 Jun 2024 21:41:05 +0000 (UTC) From: Jonathan Corbet To: Ahmad Fatoum , Dan Williams , Herbert Xu , "David S. Miller" , Andre Noll Cc: linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum Subject: Re: [PATCH v2] docs: crypto: async-tx-api: fix broken code example In-Reply-To: <20240529-async-dma-docs-v2-1-8faf87e72e6d@pengutronix.de> References: <20240529-async-dma-docs-v2-1-8faf87e72e6d@pengutronix.de> Date: Wed, 12 Jun 2024 15:41:04 -0600 Message-ID: <87cyolon4f.fsf@trenco.lwn.net> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Ahmad Fatoum writes: > The code example fails to compile: > > 1) addr_conv is defined twice, once as a VLA, which have been phased out > > 2) submit is not a pointer, but is still dereferenced with -> > > 3) The first call to async_xor() lacked the trailing semicolon > > Fix these issues and while at it, fix some code style nitpicks as well: > > 1) make the functions static as users are unlikely to export them > > 2) include the relevant header > > 3) Shorten the example a bit by removing a redundant variable > definition > > Fixes: 04ce9ab385dc ("async_xor: permit callers to pass in a 'dma/page scribble' region") > Signed-off-by: Ahmad Fatoum It looks like nobody has picked this up, so I've applied it. Thanks, jon