Received: by 10.223.185.116 with SMTP id b49csp3656123wrg; Tue, 13 Feb 2018 05:50:01 -0800 (PST) X-Google-Smtp-Source: AH8x226Tk3/3RjC5o9BRyvEl2lqTKsQW2cQniZP2CC7oq/AD0nSacdphBn8CggWVH5aYX4FFuY4B X-Received: by 10.99.114.86 with SMTP id c22mr1037469pgn.41.1518529801247; Tue, 13 Feb 2018 05:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518529801; cv=none; d=google.com; s=arc-20160816; b=lpm9H53qqI1bSk3FZnGXCJek6xPx2QMf/9ONy0IkopyTZvf58xfTTRqWcoZTyMgeZM ALK61RjCpC3NzcNvcEDIMQOmSjK+FHw0VUs7EVedaA509tLwbPVyXlH8Mi1PurzDdy9X scdsV7xfk/SaJrDQWk/TNt/JrB6hbbnfJZiYCQlYwwwuKSMIU7hv4+/yjuD8LegLkL9Z i7XabAaoXq0qLMcvzYLw+cSFIMTjqEnz1SJSEg1gLMKtROmBJh1ORBGxF/d1Mp3LPFFN ik2nuY0VCqeteq2xCu32fGB8ykKxVFU1MevULhba+4alJQ9af6CjHaedu9YVMNZ1PnXp Vwtw== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Hd4uv1W30YQYcKCVeQ5wH/JmuPefGOlDVBobSks8U+k=; b=JTTFNNdRfQ7kP4hZAeh5nOz9wCCiEXi1r370UH73wHQsrZQzEC/pivnyRtRDlN+Joo hnakMIipANCQSxE2BTajvRiBy+Su6V+Vdem8OsLo5jJiAqXhGaMWBeVV047ZhyDUm9Qr dHSOQOylVQRlpEiKQlsCpiLCx2Cb4L2ZlIVAFagmhEJ+aDK1OgMGYCrmhtPZaWwLgfo8 JZFuRFlygn/vnQSFOQfWqsqDptF1yBzP6U5INtsXSjat2Hu/dxwiDCdvdPB94TH6gcii 35k7bx5WMTb10hDxuYbzuef5VLhakrxXwQ2WLPI+ANNxm+QiJE3p8YqpMsrJPj/b5eYB kJtw== ARC-Authentication-Results: i=1; mx.google.com; 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 j3-v6si5430333plk.506.2018.02.13.05.49.46; Tue, 13 Feb 2018 05:50:01 -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; 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 S964927AbeBMNry (ORCPT + 99 others); Tue, 13 Feb 2018 08:47:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:41551 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964832AbeBMNrx (ORCPT ); Tue, 13 Feb 2018 08:47:53 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 82190ACC3; Tue, 13 Feb 2018 13:47:52 +0000 (UTC) Message-ID: <1518529671.3592.9.camel@suse.de> Subject: Re: [PATCH 1/1] nvme: implement log page low/high offset and dwords From: Johannes Thumshirn To: Matias =?ISO-8859-1?Q?Bj=F8rling?= , hch@lst.de, keith.busch@intel.com Cc: javier@cnexlabs.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Date: Tue, 13 Feb 2018 14:47:51 +0100 In-Reply-To: <20180213124916.28653-2-mb@lightnvm.io> References: <20180213124916.28653-1-mb@lightnvm.io> <20180213124916.28653-2-mb@lightnvm.io> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Johannes Thumshirn                                          Storage jthu mshirn@suse.de                                +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850