Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp1046020lqp; Thu, 23 May 2024 07:35:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6so9M4DUbuznTbfGBCQ7ttlHokkYHiKDP2jqiPWW7eP1owPhbSnViovvz9NBHyDAtzxHnQCfKlEQxYG88+BkOgGj7oy7kWX+jMiV5xA== X-Google-Smtp-Source: AGHT+IH7a3Kv/DoL9AvYqy2CXBY2+crZmvFbT2C2IWlZ74KE9UQuxUGWbKeayVska9/4jKrXD5az X-Received: by 2002:a17:902:6b43:b0:1f3:396:9cb3 with SMTP id d9443c01a7336-1f31c9f4df4mr44709715ad.59.1716474934700; Thu, 23 May 2024 07:35:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716474934; cv=pass; d=google.com; s=arc-20160816; b=DtUYSA8GfGcovjaoLpqwB6R7FIXz5kMF/NOYu2n0rAXiF/QjWA2uMTFUI8etM22tqZ ietcVFiBSSkBHEk7de7k1ghc0MSaZuhfFqvbr316uBCPa+qLEjKsMndxu2249j3wxtKT BBJ88U1jwPJYpicdyLQjVzMK7uLeWAs4YW0TWRzElODEy6I4cYDIaa0GqOoR567zfCMU vN9n90s+NzQ6qBK8WOu8GmR/A0wCitgkY8N8/mPHJbWVx/qNb+bRUPjUf4AjdmQ12Nms 4fcfj1mLr6SchsgJ2zjdFjsMmSqOb/5mtOvmoFyIVoyCm+nQ0FrohQfoaDOzh0GH5MyP L8Tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=O/JRuCogVmp0UHIzV/tbx/ddEGR/7DonzmoKTyHUT/0=; fh=yvfgpfp7kalU323no14rsHK6fhj660vGKnZ5+Bb3OMQ=; b=TDgqq29ZvCCqLSw/+13KVVD1Np8G/HX+cTq7NgXEW01mQfaw1xh8PsqMv8+wDaOJ04 GaOMD7z37hj0t95SH0Qk+FOsiip21p2qRj63/S04tPJnpv8fG3pQq79m5+VfiyAFnZBm vJ+bbyf8oQY1vNdnOTlemyku3ZS133O1j57PMxB/ex5SKCADt2YcW64VV2t0gP7ulQsD SIfvsyX1H3f7vxKQFjLqYOS+800WbvYbLWEljLRjYgJHYS+Gz4RomMpaoupU+5bSEFFI KTbnEQfiOHldoX0rLwj3eqXr+JhLDfgTStvN09oEY9Yo8ip5O5f5En0nypszK6JzqPeX SmOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=tuebingen.mpg.de); spf=pass (google.com: domain of linux-crypto+bounces-4361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4361-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f32a9f5bb3si27827015ad.405.2024.05.23.07.35.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 07:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=tuebingen.mpg.de); spf=pass (google.com: domain of linux-crypto+bounces-4361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4361-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F40D82816FD for ; Thu, 23 May 2024 14:35:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1061213BC13; Thu, 23 May 2024 14:35:29 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from xmailer.gwdg.de (xmailer.gwdg.de [134.76.10.29]) (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 095261EA74; Thu, 23 May 2024 14:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.76.10.29 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716474928; cv=none; b=abLdKV2ij0Pwfexy0cS3/WggqlAYTpHaTe4VaSoBbJEGYtJDS2UXkT60JomI+pZOkUDlMsAZukj5JHak20wwidQHlDLHwnNIXlVu4UlZ9tiV5Jder5yYP1CM+CA3aZk1nREx/JH9zjK6IbIudXbeQbq4Gkddc2b2JKX9xKxh8xY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716474928; c=relaxed/simple; bh=DqNAaMwLUQKqQeSpUg1T7UK/osvQjYsNfnoBau1Fld0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YmdDSy3SvLdRCLwaz3gksYbrGnFdyw7NLXS2Cln4F0yBetiNQrTZLkJNyuc6WfpioJ/J369f57Udpa0DofGXpps0EH7BjJohhK2FeORCU+BAXXqLw/shy3aqKQLnWVtTF0kIQv8mc2T5ElpyEiKeMOD7KH92U5cWnmo+l7GRlbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuebingen.mpg.de; spf=pass smtp.mailfrom=tuebingen.mpg.de; arc=none smtp.client-ip=134.76.10.29 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuebingen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuebingen.mpg.de Received: from mailgw.tuebingen.mpg.de ([192.124.27.5] helo=tuebingen.mpg.de) by mailer.gwdg.de with esmtp (GWDG Mailer) (envelope-from ) id 1sA9Fd-000Fu8-1x; Thu, 23 May 2024 16:17:01 +0200 Received: from [10.35.40.80] (HELO mailhost.tuebingen.mpg.de) by tuebingen.mpg.de (CommuniGate Pro SMTP 6.2.6) with SMTP id 52279345; Thu, 23 May 2024 16:17:00 +0200 Received: by mailhost.tuebingen.mpg.de (sSMTP sendmail emulation); Thu, 23 May 2024 16:17:00 +0200 Date: Thu, 23 May 2024 16:17:00 +0200 From: Andre Noll To: Ahmad Fatoum Cc: Dan Williams , Herbert Xu , "David S. Miller" , Jonathan Corbet , Maciej Sosnowski , Andre Noll , linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] docs: crypto: async-tx-api: fix broken code example Message-ID: References: <20240523-async-dma-docs-v1-1-b900e0804e11@pengutronix.de> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240523-async-dma-docs-v1-1-b900e0804e11@pengutronix.de> User-Agent: Mutt/2.2.13 (00d56288) (2024-03-09) X-Spam-Level: $ X-Virus-Scanned: (clean) by clamav On Thu, May 23, 15:18, Ahmad Fatoum wrote > The code example fails to compile: > > 1) ddr_conv is defined twice, once as a VLA, which have been phased out addr_conv > > 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, make the functions static as users > are unlikely to export them. No objections, but please don't consider me authoritative. Two nits below, FWIW. > --- a/Documentation/crypto/async-tx-api.rst > +++ b/Documentation/crypto/async-tx-api.rst > @@ -150,38 +150,38 @@ of an operation. > Perform a xor->copy->xor operation where each operation depends on the > result from the previous operation:: Maybe add #include > > - void callback(void *param) > + static void callback(void *param) > { > struct completion *cmp = param; > > complete(cmp); > } This could be simplified to static void callback(void *param) { complete(param); } Best Andre -- Max Planck Institute for Biology Tel: (+49) 7071 601 829 Max-Planck-Ring 5, 72076 Tübingen, Germany http://people.tuebingen.mpg.de/maan/