Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp973657ybb; Wed, 8 Apr 2020 13:41:57 -0700 (PDT) X-Google-Smtp-Source: APiQypIqGnHh/vqUHGcbKf0zhKDrRbkkXWq19f3G58RG//tNNj62n+1GrCFYw6nxl1/kOM3K4Q2G X-Received: by 2002:aca:b245:: with SMTP id b66mr3951896oif.170.1586378517296; Wed, 08 Apr 2020 13:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586378517; cv=none; d=google.com; s=arc-20160816; b=p7sjc+dmEUkNVEpgcOYL/MKeaxmAnxPfv/EKsSgkXgK1xCZLNWrbjQVygGrSdu1hy0 CMUpgIoDShFAHlW6K7nVuqGjXfTAGjEhWrGkoU49xWgGJjf/bpaxWS2riCGiRYbstYke b+0eAsYCOwzRmuytLnCfxLXjNq5NGwikqTQk6lxbSHXcD7Knho5jM70f/83bw0CZ/Zzs I7ARLKM0w7Fx4La18KT0N2PqskklR1S6Fn42FCldQYRRsnF85413rr3j96RxkfTZYWON pyt5/gA2f0gDi2Drj/SgSjQPMZaTbESQmzCI1nAnjWuF4LRArm0BDYnzPhasInnjpBLp PZdg== 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; bh=PiU2nyxYs+ZuZYpfplhJB684M68ejmcd39RGjgjoHo4=; b=WCUEGsagW+wuMzVuDe5/wug+yS4X8nJJlIwdaotqy5LdsvEZsNPzDXKbenejHnZi6B UufoAhQRFS1IuRwoc6ZBmF++/UwShavhRkS9s4/Czp2ezaDpD1xYYjBYUVhr7yaLXkS1 dpRecioKb7FNyTQhWJg+e9AMnVMrXuCRWZ6MSHj6KOi7OSSZNpCYbDPTFd0emDf47yEZ RZ0h3+ZqWQs6jGSxKWrmCYTbWRCPQgvucGjwD896gh2Dse4tgWXgGID66qZUwHOFQwx/ XWFT0v/njD93YZjVmt1u1DC979U96K0L3pdRzZZD0uV6VyetoVE6SXB9heny50IlkSg7 pqAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oO+ypjTJ; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si2316915oib.201.2020.04.08.13.41.44; Wed, 08 Apr 2020 13:41:57 -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=@ti.com header.s=ti-com-17Q1 header.b=oO+ypjTJ; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728942AbgDHTuM (ORCPT + 99 others); Wed, 8 Apr 2020 15:50:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46294 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727903AbgDHTuM (ORCPT ); Wed, 8 Apr 2020 15:50:12 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 038Jo14V094903; Wed, 8 Apr 2020 14:50:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1586375401; bh=PiU2nyxYs+ZuZYpfplhJB684M68ejmcd39RGjgjoHo4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=oO+ypjTJtQ1+nKZMGj2tJ4IxLqCrnM1YNk6BdZfmVNX4W4eYpITOoHsEOskvz0R6b Y5mAssHsmOUvD7H8I69rPtRnj4Vx/aZYHNJFKlDgS74V3/K3SZyH27aplCQ1QLfy+A A7nYQTlCzNAZnb5lTyURLc92mz85F6Uy2fVs0ynM= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 038Jo1wS056126 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Apr 2020 14:50:01 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 8 Apr 2020 14:50:01 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 8 Apr 2020 14:50:00 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 038JnsLe093482; Wed, 8 Apr 2020 14:49:58 -0500 Subject: Re: [PATCH v2] dma-debug: fix displaying of dma allocation type To: Christoph Hellwig CC: Marek Szyprowski , Robin Murphy , , Sekhar Nori , References: <20200408194300.21426-1-grygorii.strashko@ti.com> <20200408194527.GA13647@lst.de> From: Grygorii Strashko Message-ID: Date: Wed, 8 Apr 2020 22:49:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200408194527.GA13647@lst.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/04/2020 22:45, Christoph Hellwig wrote: > 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! Yeah. Sorry and thank you. -- Best regards, grygorii