Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1177186lqj; Mon, 3 Jun 2024 12:33:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlb3ce4NHj2RuGQeW3yqb8JOEVDzrRYF22TlZS05w3gEFR+NCGCnotLVmmf+0xFPnosV22MAcGUxxBy/i6ABAS/BRDUxaSYmJ70srYGg== X-Google-Smtp-Source: AGHT+IHlm5knSE/J7OVuKXty7a069g9sRexapsY0Ds8roQ26gfECrkPAEMTVfqSYmMqbYcq41L9i X-Received: by 2002:a05:6358:989d:b0:19c:2984:3d67 with SMTP id e5c5f4694b2df-19c29843fe3mr163395455d.26.1717443211253; Mon, 03 Jun 2024 12:33:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717443211; cv=pass; d=google.com; s=arc-20160816; b=bJj1xRuNJpUXFdoBWHKXvvR6+zLUqOBxc3hL4crtl6fbkTohRmNakf3fWNTk4SJAyz sDxPNuinY4904AGF8uNGxPrfCneH1tjW4Q7dVyakGHGTFtgVGkWLS+pFN4Rf1O5oO5QV rehIXLp//Cfxdi2UGD4u/bLdVYHzekXej7q1mIta1wvxkcJmRs5VAMWAdwxHCM9X4L58 P4QhJ/61j4OSyyNzOlNW9eH5JormFzfmoq3iik96i+z7vaMsjPkb6u5TiJtQriJ6Q+Sn HqVU2VvXIskCqsPOu76CNr9N7szdadCzyZVWrgYc2P09HXrAEAW5GhbcvEy4r/i1smSs uNhA== 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=IVEE7o4fXsMueSK8n99LMiuJgFXva7iOGWlmK2XbhVA=; fh=hrygdMBBG8EY3a7O8ghODumZ/ujel5eMkjEaiXCSRu8=; b=WPlqHSiZbikew6/yoiLmqK9YEQywGHdZiNdnH+OdQOFExc7DERW/4K3qeyO961Cimz ZRLfRFYPFFeCUsQ6saEgLPNLgSTEGzElG44Ls0GUFDIx9297MGb7rbf0HLlKMDx0mk85 WzERDlmMKkvuUWzI1FOURmrJRtm+G+QYmQPvuy792Q5Mo4LGMPBXbPpM0Q+bD0V/H86s S15lZnri+DpTF/+KaLDogEjaPQACfkh4sTADlInU1WcnMHzqavdwp2sVkYAlsAc1QGVr 5pydGeOsJQOA/XKD828/hMYMU/xkyRoRIyAshUXacAsgCnjZc0SbngebDRVziH9bBahh 1bFA==; 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-kernel+bounces-199648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199648-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35a0e6a78si7065994a12.336.2024.06.03.12.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 12:33:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=tuebingen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-199648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199648-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 B175328DF27 for ; Mon, 3 Jun 2024 19:33:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4497713A3E3; Mon, 3 Jun 2024 19:33:25 +0000 (UTC) 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 83F0D374EA; Mon, 3 Jun 2024 19:33:20 +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=1717443204; cv=none; b=DfvIrzAcod4y2olu4UFwl0RaMECxLo6zTL25CDWV5izg5WF+eOpO+k53yVR+AXt9zzCkcyjckblCVccjJVFhv6ReEOEkp377L/UZf75CsiCd8gyemQwkskHpYT7pJofGlkh0pX9Capd0OSNy1661kv8eLjqgS3QsQ8gwcO/ouOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717443204; c=relaxed/simple; bh=ZFG0RzAoaOkp+zsaLv13A2Z5uR/A9GDeP1h90WlRyV0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZQHsKGh3tfZeqUIazFYkR6t1hAod/SiHKqUT//T0zsdGldbGICF7VUj4l7yJQe1Q8z7gc017vHdn4MTtiZam5p8NPxKPXeYnzG7URRCK2pC5vDYKbYCvQP3l03f7AVV39nIgr1NYPoHspOZcqloqxHBviISZrv8LKbO/JG9DrPY= 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 1sECtE-0005IN-0g; Mon, 03 Jun 2024 20:58:40 +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 55632179; Mon, 03 Jun 2024 20:58:39 +0200 Received: by mailhost.tuebingen.mpg.de (sSMTP sendmail emulation); Mon, 03 Jun 2024 20:58:39 +0200 Date: Mon, 3 Jun 2024 20:58:39 +0200 From: Andre Noll To: Ahmad Fatoum Cc: Dan Williams , Herbert Xu , "David S. Miller" , Jonathan Corbet , Andre Noll , linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v2] docs: crypto: async-tx-api: fix broken code example Message-ID: References: <20240529-async-dma-docs-v2-1-8faf87e72e6d@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240529-async-dma-docs-v2-1-8faf87e72e6d@pengutronix.de> User-Agent: Mutt/2.2.13 (00d56288) (2024-03-09) X-Spam-Level: $ X-Virus-Scanned: (clean) by clamav On Wed, May 29, 10:08, Ahmad Fatoum wrote > 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 > --- > Changes in v2: > - commit message: fix addr_conv typo (Andre) > - commit message: note addition of missing semicolon (Andre) > - add header include (Andre) > - shorten code by removing redundant variable definition (Andre) > - Link to v1: https://lore.kernel.org/r/20240523-async-dma-docs-v1-1-b900e0804e11@pengutronix.de Looks good to me now. Feel free to add Reviewed-by: Andre Noll 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/