Received: by 10.223.185.116 with SMTP id b49csp3660215wrg; Tue, 13 Feb 2018 05:54:25 -0800 (PST) X-Google-Smtp-Source: AH8x226Ct6pbXTuWj+CoUrJ4G/RkVjyr56kYY12JP0BvQmEPjaJ4BdWEO4QBQa4lDa1Pb86fOKZf X-Received: by 2002:a17:902:788b:: with SMTP id q11-v6mr1193159pll.378.1518530065693; Tue, 13 Feb 2018 05:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518530065; cv=none; d=google.com; s=arc-20160816; b=ybG1p8Pge07bLg8n4Nobw8r4ZgWYWZw3ForvaYx+TvlZ/VotGRlWyvqR2yBY0VYGyM ZxKYnKNK6Ibr3pqE6LpKK8YFqXdmVQ0z3cWqeBdmvUCemKIceJiSfI1Az7j6W6u8xW3q kcgS00GODeV3HxaYugO0SnSnbS7gDG9rl7TZPsrFfYkj9liWUYVrWm2R7xQNDOCG1XJ4 9avMrbEqq1XooxJRQ2pzV/HEGVbPnlSZZsOFRBYFOOCsEMqAEcmLdUuOnWIkSUIv5fUO IRKX9/p4sKaI2JdoqOlGX1UJkV6VxFddVOnFlYquZBqWVzULEI/ZqQ/QzXY7IYl51hUt yvlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=CJVJeaGkBG58a3T/g5Zc7bvoDh1ZkAGNToDjyWtEvyw=; b=DVqbr6Bf0+d2csHMhK2bwkoCtItCEQMCgqDAh6UEMvKWJ2fc2Py7z9N7cBe+UadD8I WDZBeY/KFV1sk02bC1h9DaGTRc5ZYgOIae/avFEwwaXERIG8+Tby3JpoOedJjpOMqzWi lNe1sGFB+icU5eN+GMDQpqcy/lrpgSBEEzXa1a6XlriflBP1T8bANxI1t1jqLpwbYZGW 0suA/NAddUn1s5oM3PRGkMNC3wWvNIPEVkPf/yajZ5M6XeXNqZ27lAQJUWU1sv553pcc dLNWp7AGarQDr5kZoxy1NBbkFd6QDh/lW+WmkOIRi7x+Srlr9bijYLdXJ5ZdgbAK5/eb FzpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=HSU6sYW5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13si3168748pgs.349.2018.02.13.05.54.11; Tue, 13 Feb 2018 05:54:25 -0800 (PST) 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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=HSU6sYW5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965014AbeBMNxF (ORCPT + 99 others); Tue, 13 Feb 2018 08:53:05 -0500 Received: from mail-lf0-f49.google.com ([209.85.215.49]:33358 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964832AbeBMNxE (ORCPT ); Tue, 13 Feb 2018 08:53:04 -0500 Received: by mail-lf0-f49.google.com with SMTP id j193so9191198lfe.0 for ; Tue, 13 Feb 2018 05:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CJVJeaGkBG58a3T/g5Zc7bvoDh1ZkAGNToDjyWtEvyw=; b=HSU6sYW5E0oC6i98+xLkwph4/5gl+ZokmlBhxwwS9KXdxsZ+Cd7jPnzo7xyL3lNabx 23OesjH8sg2hOsOafB7eqeRivyOEVg9YdDDQZd9liWpatIj/jHqsxd/IE/UuU7xwxyMZ MF20gqpK2zffFl0jhDQy5ASeNoH9Uf2eo8SSmqZa9PA6jK9Q3RfzDuxEw/DOTKPG2jC4 2DFUuPHyw88DYYqXKFsOKrP7ZNWNJrnVQlhl3uxhyFz9WGM//F7cni7GOHyKgL+4P36U zBna4MmiqwfBFHsZmdr72ub2QqcxPTDVYbpt1w16yqjKO9FAzrYIhB3VbHzK7UvgnMBI MVIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CJVJeaGkBG58a3T/g5Zc7bvoDh1ZkAGNToDjyWtEvyw=; b=bPvAuTyOIm28GXjEYfwoT7r2mvGl2b2GEvuDcXrRZh57fVT3cRrP+Qkk10Qpqt96eu U4ru/fL0FdW5Zk0MgEYZ5qjIcbHLxFJ8NpgUcydNHKqN8Ha78ZQ1F2UqrG9g4xSZ68zP Gzjkm1fvdrcmhjR2Had8KtgHBy+IreIOBxosDppTRmCcxv+v34fNB61bQ7X+cVdarFyk Eixwyn58OtlefNEuV4zOOeJKRhqM/Ba1gmfRe3ThtHByhMn9uBIeuICrXXPRD1flAYUv Bn1LxvgznjUaPAoZFY3Swq+NaaQv3lI7kVIX1y9jaEOEmpTVVLYVKaNRK/WzkhkbUIJN nj2Q== X-Gm-Message-State: APf1xPC9+lXlgmQNQ8d3bfjh5kl30BdniW7dAO4c2cwGtHJFieYZPk9o ISyQP9opWKe5gVH4y3KzM93suw== X-Received: by 10.46.19.17 with SMTP id 17mr1041521ljt.102.1518529982974; Tue, 13 Feb 2018 05:53:02 -0800 (PST) Received: from [192.168.0.10] (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.googlemail.com with ESMTPSA id i6sm2047006lji.26.2018.02.13.05.53.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 05:53:02 -0800 (PST) Subject: Re: [PATCH 1/1] nvme: implement log page low/high offset and dwords To: Johannes Thumshirn , hch@lst.de, keith.busch@intel.com Cc: javier@cnexlabs.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org References: <20180213124916.28653-1-mb@lightnvm.io> <20180213124916.28653-2-mb@lightnvm.io> <1518529671.3592.9.camel@suse.de> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: Date: Tue, 13 Feb 2018 14:53:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1518529671.3592.9.camel@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2018 02:47 PM, Johannes Thumshirn wrote: > On Tue, 2018-02-13 at 13:49 +0100, Matias Bjørling wrote: >> +int nvme_get_log_ext(struct nvme_ctrl *ctrl, struct nvme_ns *ns, >> +     u8 log_page, void *log, >> +     size_t size, size_t offset) >> +{ >> + struct nvme_command c = { }; >> + unsigned long dwlen = (size / 4) - 1; > > Consulting my long gone maths knowledge suggests the parantheses aren't > really needed here. > Heh, you're right. However, it does make it a bit more readable? The untrained eye would properly mess it up was my thinking for keeping them.