Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1367907yba; Sun, 21 Apr 2019 05:24:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrlVnb5iR02jktltgCQJWY2WREJk0SnGWQCMjjVW/wMfjJtZDJy2kUvCq3PHFKy6PsP45p X-Received: by 2002:a63:3dc8:: with SMTP id k191mr13701710pga.286.1555849488127; Sun, 21 Apr 2019 05:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555849488; cv=none; d=google.com; s=arc-20160816; b=vl8xfi9M4E0T31LVi48N3YSmMdgaPNJc2rHH0xFkkvsGZkNqxUT6dpY0c3CaheGN6R Tkam2IUnbrrpXTdbSqOOxBb+T7+tNqH0RcBmoDFAd8erYAMrPeki0A1c23QIa6Qt7DoR 87bQ+a2kCx+KVbAEXA1uvR1Y6vXiDIl6NfBGIIjWjg6q6izaBT6OooCtT04o4I/utNnp x9QdKFfRtCUOEc52DfNfY5/FVbbj49/JA/3lWH5cE+AcAQ0+LFNbMwnAmTY2Ht2qhPPm E/l3dG6mUlG+aJBrjm++6U80Jkt4fPva81Ee0Kh0vp/6y0S3dWnpYzEz5PAiIGQ/9Ckg 6kuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=hRuqolwJoAT78yTwRbNT0wP5hMUVSvWKN3hzr4UOgnY=; b=KGFy8GUCAmKCP70qTQ403WU0dIahAd+v6tW9mebmcuMOxueNYJv7Y/LW2AwaU7KVv1 tuoxiMzlitZAFl3sHFLft3QoD/xF9q4BFCvAKtjutgQqcF5iP0fN3nq9rYv+m49d+3AG wAaHOolwd6KFjkhjDHn7y89xQXZGlKyjrKy1nw4hxbQEAIp/i084Cm2doaerGR2u7te3 H5A1vjJgREre2kEZUuyYLO7bq12/Wu6dAPpCunb7V8INXbwX1GUYHz9bvW/qVKHo6o4D X9EwP1yN7Cu7kf7Y199GMzF9gp/d6oCMAtL3qhLG8aKq+HGbXxSxc4e1atghQ5DlUPZy 1AyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mHhb2n50; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si10282743pls.43.2019.04.21.05.23.59; Sun, 21 Apr 2019 05:24:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mHhb2n50; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727304AbfDULzc (ORCPT + 99 others); Sun, 21 Apr 2019 07:55:32 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:4815 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfDULzc (ORCPT ); Sun, 21 Apr 2019 07:55:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1555847731; x=1587383731; h=from:to:cc:subject:date:message-id:mime-version; bh=hRuqolwJoAT78yTwRbNT0wP5hMUVSvWKN3hzr4UOgnY=; b=mHhb2n50zMZqtvd2mO0yX8L12jrG9mcuycWJatN+f43KEIBtXokkxM25 TQA9oVkpdaA3QhmQF6ufsV/F0T3/u+WBWBaIcJWGydHhZFZ4nAiitw70K gQ2mnUKwNKdPkrliOnQD0rw7/oXpcJLbs6zKI4Y9UklCIg1Ir6a+XM08h 0=; X-IronPort-AV: E=Sophos;i="5.60,377,1549929600"; d="scan'208";a="800574847" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-8549039f.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Apr 2019 11:54:02 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-8549039f.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id x3LBrTdY040842 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sun, 21 Apr 2019 11:53:34 GMT Received: from EX13D19EUB001.ant.amazon.com (10.43.166.229) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 21 Apr 2019 11:53:33 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13D19EUB001.ant.amazon.com (10.43.166.229) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 21 Apr 2019 11:53:32 +0000 Received: from galpress-VirtualBox.hfa16.amazon.com (10.218.62.27) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Sun, 21 Apr 2019 11:53:29 +0000 From: Gal Pressman To: CC: Mukesh Ojha , Gal Pressman , Jason Gunthorpe Subject: [PATCH v2] lib/scatterlist: Remove leftover from sg_page_iter comment Date: Sun, 21 Apr 2019 14:53:16 +0300 Message-ID: <1555847596-1754-1-git-send-email-galpress@amazon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit d901b2760dc6 ("lib/scatterlist: Provide a DMA page iterator") added the sg DMA iterator but a leftover remained in the sg_page_iter documentation as you cannot get the page dma address (only the page itself), fix it. Cc: Jason Gunthorpe Signed-off-by: Gal Pressman Reviewed-by: Mukesh Ojha --- Changelog: v1->v2: * Reword commit message --- include/linux/scatterlist.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index b4be960c7e5d..30a9a55c28ba 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h @@ -340,11 +340,11 @@ int sg_alloc_table_chained(struct sg_table *table, int nents, * sg page iterator * * Iterates over sg entries page-by-page. On each successful iteration, you - * can call sg_page_iter_page(@piter) to get the current page and its dma - * address. @piter->sg will point to the sg holding this page and - * @piter->sg_pgoffset to the page's page offset within the sg. The iteration - * will stop either when a maximum number of sg entries was reached or a - * terminating sg (sg_last(sg) == true) was reached. + * can call sg_page_iter_page(@piter) to get the current page. + * @piter->sg will point to the sg holding this page and @piter->sg_pgoffset to + * the page's page offset within the sg. The iteration will stop either when a + * maximum number of sg entries was reached or a terminating sg + * (sg_last(sg) == true) was reached. */ struct sg_page_iter { struct scatterlist *sg; /* sg holding the page */ -- 2.7.4