Received: by 10.223.164.202 with SMTP id h10csp3459326wrb; Tue, 28 Nov 2017 11:39:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMbPdrZ/sg3W3fEwrziMuERAr/mywJT8jnkFRq/LA2YToXkPsy4sfxkMvelrzBEqLhosJN0B X-Received: by 10.101.78.2 with SMTP id r2mr249936pgt.320.1511897971057; Tue, 28 Nov 2017 11:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511897971; cv=none; d=google.com; s=arc-20160816; b=r4I/gni+nnfy8sA3kt7W3B8w4i55CwFWuzr7BE9j82ODzNK/I6LSnuvfPkWdJgyDT5 cNgXspB87IiyRKHWExzZX7CbdrkR/0QfdKljJn+UFDd6Qq1G74tLNYKCaO0utP4Rb1Fr PWKN6IyZV1bdjOmBjsUTciAq4zS6IKfK2dJUNZN4ErkmEM83474gGJKOSqwyM5vm8Mbn jverXwzwFW+6N57ZntK54lor6ZPfhrcViIz9CseBMwyBEIrXlgflup0guekDgn5W0FfM tehVVcaPJP5rVn4Jilk+h/vnmM15C2eG/iW8QPLIBvnLaIqJWnrSROvVb01AN/62cG1+ HaxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=YOqfu4ubeEJk47RZKxyIf9HsTCxk3zoEXXl1gme2F/s=; b=J9FNxflHbC1Q/N7PzVz2ZRn/k6nFhVuchXvFHCXVIjJq0Z6HHIUKNZkg6N+6sZE0ed ZITzKuen4i9BfWxyr/ejv6EZ9lnIgjm5iWL2ekWD34eMMUnU64r3oCknt3dehhxSmC1R 4AL+GCZ3rg9XtUxL+IymlzjhSjLAZeTE+7yoBWSrlF2fpPPoXun+5m0005tD86XP+EAM OYsksAn6oKuN25zgsJw7SsPc38Pn0CIYhXwfVTPo/VDYbV0AUiWChUR/BEtrNZks5C3d 1ACLCGXFD0+X1ysJj9L1p2ZH9NQZF3yj0RbIQTghgytVEPiyLiIjACb0g51kHbye7TU3 nfrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fc5qD10E; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si25963421plz.611.2017.11.28.11.39.20; Tue, 28 Nov 2017 11:39:31 -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=@gmail.com header.s=20161025 header.b=fc5qD10E; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932263AbdK1ThR (ORCPT + 71 others); Tue, 28 Nov 2017 14:37:17 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36822 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932106AbdK1ThP (ORCPT ); Tue, 28 Nov 2017 14:37:15 -0500 Received: by mail-wm0-f65.google.com with SMTP id b76so1698370wmg.1 for ; Tue, 28 Nov 2017 11:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=YOqfu4ubeEJk47RZKxyIf9HsTCxk3zoEXXl1gme2F/s=; b=fc5qD10E4lQGkqVIfPw25ce9PTgFYhFkcBwnO4O+6GciuFP5/dl2Ypj3cSnlwvw1ur lHHQfIv14uSC9woJweFlSM1z7YiSKAnO0acI3ByT+ebcXPpGgC58OPudOmEN0iotiHnK clt86MZ6pUiEuCqpM3bqpM2QxDEw6zAXD18WOKvaaTsfOqoUGrxMpgZTJDyyKJiai5rH wyeAbnMxg4HlYAPe0PbT1L99+f0NUFmWKwgkwAhxY2X9fhND5Nn9A/FdkEuYHieJX2vH Cbucn55PEkwGhTDhexg4pJp7+foHERQEJLrH5VDPl4GPpx5wKg+GUcCDXpJsEmfbx0sa HuEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=YOqfu4ubeEJk47RZKxyIf9HsTCxk3zoEXXl1gme2F/s=; b=tdUU1ZcYSUY0wAt1xW4Dw1HRGZFLad2zJ15kx8UXGYq6HHxAWeJJ4CuhQ0yZsCMI4T XdoTrz1yuhRciLIfVpJjchtiS/Mx9AaoArH0LHZDop2d+kx6/4CAI3V717hGiAg/f39P dUWJUc4a5zDhJaUY6+c5FYs1EUoldTdQsSUpQaCZLUB5pJSdE2hx3SvVSjoR83n3+hjm 1SIe+31sx/tt3mZSI7hJ9A8GoDdZ/6dkjBeSwmaB5df2FpKwhq9WnIlCUGkdZt0hmagC uL5TeOoFVaU4o3Rxn3sVV3+srbkV16VY3Uk+tQwhkOwNY1Mf59nSP76ZsVvEZYfqCr0Y UeYA== X-Gm-Message-State: AJaThX7GzNiUQDH37zisTm/6z3HtA6+NOTz/x4jeBnDPoNJoi+BWsQG3 VVopljnrDk5CzoTwceJvwSvXfOcr X-Received: by 10.80.205.156 with SMTP id p28mr4206686edi.255.1511897834809; Tue, 28 Nov 2017 11:37:14 -0800 (PST) Received: from ?IPv6:2a02:908:1251:7981:b169:9ad5:fb55:6cfe? ([2a02:908:1251:7981:b169:9ad5:fb55:6cfe]) by smtp.gmail.com with ESMTPSA id d5sm130524edj.65.2017.11.28.11.37.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 11:37:14 -0800 (PST) Reply-To: christian.koenig@amd.com Subject: Re: [PATCH] drm/ttm: Use a static string instead of an array of char * To: Joe Perches , linux-kernel@vger.kernel.org Cc: David Airlie , Colin King , dri-devel@lists.freedesktop.org References: <90a51402c03cccb94f61fe6aee89303d13cb18af.1511897429.git.joe@perches.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <0ab8a8c7-71a5-21a5-992f-45c79ab24f4c@gmail.com> Date: Tue, 28 Nov 2017 20:37:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <90a51402c03cccb94f61fe6aee89303d13cb18af.1511897429.git.joe@perches.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 28.11.2017 um 20:34 schrieb Joe Perches: > Make the object a bit smaller by using a simple string instead > of a format string and array of char *. > > $ size drivers/gpu/drm/ttm/ttm_page_alloc_dma.o* > text data bss dec hex filename > 8820 216 4136 13172 3374 drivers/gpu/drm/ttm/ttm_page_alloc_dma.o.defconfig.new > 8910 216 4136 13262 33ce drivers/gpu/drm/ttm/ttm_page_alloc_dma.o.defconfig.old > 25383 5044 4384 34811 87fb drivers/gpu/drm/ttm/ttm_page_alloc_dma.o.allyesconfig.new > 25797 5428 4384 35609 8b19 drivers/gpu/drm/ttm/ttm_page_alloc_dma.o.allyesconfig.old > > Miscellanea: > > o The h array had more entries than were emitted, all are now removed > > Signed-off-by: Joe Perches Reviewed-by: Christian König > --- > drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c > index 6b2627fe9bc1..bda00b2ab51c 100644 > --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c > +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c > @@ -1244,15 +1244,12 @@ int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data) > { > struct device_pools *p; > struct dma_pool *pool = NULL; > - char *h[] = {"pool", "refills", "pages freed", "inuse", "available", > - "name", "virt", "busaddr"}; > > if (!_manager) { > seq_printf(m, "No pool allocator running.\n"); > return 0; > } > - seq_printf(m, "%13s %12s %13s %8s %8s %8s\n", > - h[0], h[1], h[2], h[3], h[4], h[5]); > + seq_printf(m, " pool refills pages freed inuse available name\n"); > mutex_lock(&_manager->lock); > list_for_each_entry(p, &_manager->pools, pools) { > struct device *dev = p->dev; From 1585339733630602047@xxx Tue Nov 28 19:36:26 +0000 2017 X-GM-THRID: 1585339733630602047 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread