Received: by 10.213.65.68 with SMTP id h4csp1536993imn; Mon, 19 Mar 2018 06:56:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELuxDNcAw48HjJymOutidVukdmNAPIhT4/htXlEh8t0nboUD+GDGn4C9iOBcy796oE/nQtVP X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr3910135plb.336.1521467779067; Mon, 19 Mar 2018 06:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521467779; cv=none; d=google.com; s=arc-20160816; b=0yqysd5xlHv9UQ6LpSbgY/fBqqab666Pg5Q5PytLGKmABgrMpLPN7N/TJpzbsYvRID b2qiVzzW0O4H9p9+0Q4wbGl1+eTyFsX9JcdL253PvNPtIxX6CEzb95c15RbV3/DKAlK7 HaXHC8BsZufzNGP6K0/MrUdZyEd8IHmEUSq2XDOrPE0jw1mwrSoPsvstDq4iA8NTbETw PvwRKF4WyC9reasGZHgL97zMgJPsAYQE2Z3Ns2ScmiyB02vFGbDEdZpnAIrvGXYnYRlq 5bTRj58EkO3/VE+/lgaUvYO7Y3QDntrcf5S0Y00I1zavZrMpy/yWFomzV9qJO1wWpCBq 0kRA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=cMMBo6Ig2DReddaVzF+Mdqc5VhWkMCOaMqq069gyY+o=; b=CmVguKESOqabaCkpXNncPqZ4kKkJLI1lr6cAVmKUunanKxeOQG8MmdElANGVcP7eWf uN0D3ySJODAsJ0X5LkFvNFmPpqgpqPgZGsUiYL8FKu3MuUkYxf4+uN0eNQDOmN9S98C2 TC6K2HpMNR/TISbXBaXaLj1SuK6MHnrlaUMx6gzsb97wlqX61hH/1S8UGcashWi90Tmn +wKpPSiHzmFt3LqGOGUzc1rqabBVuhIzn0C5yC2G5eMot5E1h9ylxzqIHtX9nRwxlIFb UzOXEjxu0kJLdeI5NqZk/U6HPw0Rop3YGT6S7NBgnVYYXpAK5+F1WwmMXtAWBqv8lzk6 NySA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=OShEjta3; 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 b35-v6si51904plh.84.2018.03.19.06.56.04; Mon, 19 Mar 2018 06:56:19 -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=fail header.i=@ffwll.ch header.s=google header.b=OShEjta3; 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 S932998AbeCSNyE (ORCPT + 99 others); Mon, 19 Mar 2018 09:54:04 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55001 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933417AbeCSNxz (ORCPT ); Mon, 19 Mar 2018 09:53:55 -0400 Received: by mail-wm0-f68.google.com with SMTP id h76so15350224wme.4 for ; Mon, 19 Mar 2018 06:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=cMMBo6Ig2DReddaVzF+Mdqc5VhWkMCOaMqq069gyY+o=; b=OShEjta3BEbdBD+6M3JZsDZo5VLU6rK0nR5D+3fXL04gqUYyxHQt98S3uVkEOKCEUI bNtGHLscXbdPIkewgP6oIrdS9J9jbehTlG0nzf7L2US6411gP/C0m9c4V0wsB5a8j3jE P0acuKDvJIsdsEUlyTvauQ+qhkOWK7opujbY0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=cMMBo6Ig2DReddaVzF+Mdqc5VhWkMCOaMqq069gyY+o=; b=UUlOsFPORFADlCpK7SgyWqaeTCo9gGAseZy4X+2FMTLNDwqAeEIxGnA/A9Knn6iDLo eOTx6QW2Od64elcFWTH30hJYRN894cnRIAIZJY417iSnRBGw/e7qz/tUGqKf8qykoc1X KmhkXl2jaC17/7vhsLzOGc5yZKxj4lzPzrEblEJgccVngtR6OGHBHTpIU2RqkxGV/UeN wR+k+RLUEVUBRUcE44FCKECZmIf1VS8T4NK8HbYGmhDVY8p4o3FeUWzNd5qOcxzm0dah WkWvkN+rn8RLeWUMF78UauzytRp0H4TFJIIDIDQMS+qtl8b62/nm2r1jhtNzuzbLTWdI D0FQ== X-Gm-Message-State: AElRT7EcPtWCFdjSoS01wYkUgnXujbPnA8rTZ4DRpyCFog7Ld0V7HKa6 30DKSFFAmlyQWLUADX5babQnkw== X-Received: by 10.80.164.193 with SMTP id x1mr13668067edb.156.1521467634628; Mon, 19 Mar 2018 06:53:54 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id g12sm233210edb.59.2018.03.19.06.53.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Mar 2018 06:53:53 -0700 (PDT) Date: Mon, 19 Mar 2018 14:53:51 +0100 From: Daniel Vetter To: Joe Perches Cc: Daniel Vetter , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: Reduce object size of DRM_ERROR and DRM_DEBUG uses Message-ID: <20180319135351.GL14155@phenom.ffwll.local> Mail-Followup-To: Joe Perches , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <016b5cb84cede20fd0f91ed6965421d99fd5f2ce.1520978414.git.joe@perches.com> <20180316074150.GE25297@phenom.ffwll.local> <1521203342.6119.5.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521203342.6119.5.camel@perches.com> X-Operating-System: Linux phenom 4.15.0-1-amd64 User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 05:29:02AM -0700, Joe Perches wrote: > On Fri, 2018-03-16 at 08:41 +0100, Daniel Vetter wrote: > > On Tue, Mar 13, 2018 at 03:02:15PM -0700, Joe Perches wrote: > > > drm_printk is used for both DRM_ERROR and DRM_DEBUG with unnecessary > > > arguments that can be removed by creating separate functins. > > > > > > Create specific functions for these calls to reduce x86/64 defconfig > > > size by ~20k. > > > > > > Modify the existing macros to use the specific calls. > > > > > > new: > > > $ size -t drivers/gpu/drm/built-in.a | tail -1 > > > 1876562 44542 995 1922099 1d5433 (TOTALS) > > > > > > old: > > > $ size -t drivers/gpu/drm/built-in.a | tail -1 > > > 1897565 44542 995 1943102 1da63e (TOTALS) > > > > > > Miscellanea: > > > > > > o intel_display requires a change to use the specific calls. > > > > > > Signed-off-by: Joe Perches > > > > Impressed with the size of the bikeshed piled on top of this I decided to > > cut this all short by merging it. > > Thanks. > > There was a similar patch for the DRM_DEV_ macros > awhile ago that also reduced object code. > > https://lkml.org/lkml/2017/9/25/247 > > Never applied. > > Want a remerge resend? Yeah dropped out of my inbox, resending is easier. Please do so. In case you wonder, I try to fairly intentionally drop stuff on the floor, to force other people on dri-devel to not load everything onto me, making me a bottleneck. But then occasionally a patch drops through all nets because tracking mailing lists is impossible :-/ -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch