Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp973628ybb; Wed, 8 Apr 2020 13:41:55 -0700 (PDT) X-Google-Smtp-Source: APiQypItN+lkRBAnHtzRjFPRGOSzMhIr44CVQ7mBO2/MW0NRLYNRC0IpC7qNkBKW06BggfyhQhMt X-Received: by 2002:a4a:940e:: with SMTP id h14mr7491829ooi.26.1586378514917; Wed, 08 Apr 2020 13:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586378514; cv=none; d=google.com; s=arc-20160816; b=xDitPgk078a1jQo3oh4yq8mVB7m4GNMKvZir5RElTDKXVkSMiJ/yRazjaVLMxcqKe1 2gFrlU7W9v/C/uQCgd1FKYHK3Keqllce3oorvNBHymVIVBsWCCwunFqVwIeGOELjGxLr xtNC8Dmkt8lz4+oBeYqR9DHVaNhLibMGzaCubEap5ThnGv/36q5tXMGAnNdogdXrmYV5 OwjSh9KvH+SWLRfq9UFS29SXiT3c2v6wKhulPQB//zHm7F4GxEahNxnQ/3EqDoeQucc/ 3NB7g2dpFVOf1TcB5Sklr3TiTsnl5XYldopudpXMEkUB3hiRQwW4+OVIkHQSELXkLNGj FDEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R9yk9ke9jwvCx9BmCXls7u+jFT5taDzpCM7A4ih5h08=; b=v4YxBuW/h65TKR5WIfrw18RiczAGwy5L3EnRZ19ofHD6L5NEHLYt4X8S2caxxiwOHO c+52WacIO/Nnede3lzccLtsxDhb5ddZ1eiw2kEVZxRsVmZA2dySKxuGKeRF+NUo9brUZ 7khufXehV/a4+ur2wF3/GIPyKcDh9bj3GTdA9ClphRy2Q11oPXxNa1A7qWClsfzFXnEM GMfMqp9QXhZQfC/KcGFBgjbZlOx0hnRyriUR9glaXsKaBuHKpAvMWNhGNGhLvl/b3nZO pDir+J3LnR8H7jrAEcQoWcDOU+8Vp0RLgN+cNih4zxGE8JH/iCjGph66LttbEQyQYNbl lk4Q== 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 q21si2872633ooq.38.2020.04.08.13.41.41; Wed, 08 Apr 2020 13:41:54 -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; 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 S1730089AbgDHTpa (ORCPT + 99 others); Wed, 8 Apr 2020 15:45:30 -0400 Received: from verein.lst.de ([213.95.11.211]:43872 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgDHTpa (ORCPT ); Wed, 8 Apr 2020 15:45:30 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9488868C4E; Wed, 8 Apr 2020 21:45:27 +0200 (CEST) Date: Wed, 8 Apr 2020 21:45:27 +0200 From: Christoph Hellwig To: Grygorii Strashko Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, Sekhar Nori , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dma-debug: fix displaying of dma allocation type Message-ID: <20200408194527.GA13647@lst.de> References: <20200408194300.21426-1-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408194300.21426-1-grygorii.strashko@ti.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 08, 2020 at 10:43:00PM +0300, Grygorii Strashko wrote: > +static const char *type2name[5] = { > + [dma_debug_single] = "single", > + [dma_debug_sg] = "scather-gather", > + [dma_debug_coherent] = "coherent", > + [dma_debug_resource] = "resource", > +}; We actually only have 4, not 5 elements now (and don't really need the sizing anyway). But I can fix that when applying, thanks!