Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2318374pxb; Mon, 20 Sep 2021 18:40:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi0r/tCf99prUPVku8E7ELGP7JPIGN9WWCy4m71D8+ZcOY6wg9ZSwfEzyipmnVlwzYMKqr X-Received: by 2002:a92:cb11:: with SMTP id s17mr20118027ilo.90.1632188428975; Mon, 20 Sep 2021 18:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188428; cv=none; d=google.com; s=arc-20160816; b=iskBeK3VXu9HRB0HlG8qoIHDGGOJo+mgE2VU1TTY7wqc9uTknJFZRzcO/EBLsSyzFn kxTzEhVkGaPQx47LnQJRzZRPEMtd1nFc7MLRFngwBYustbqcrIuyKP7xU/PTMX4HlACG AghD3p1ZKZjlVxZzimgBGHtFLzl4CCxJhN19MVmnEBIHct24kW1ukIwae6bVmEyMLKDG tNIiZExrLE4KDd1SQwJtpE8H9NS9RPaO7MID7AEpW8tl5ye/I4IZlkfKDy8AaHptIJOb GT4Q5ldo/HCMW/BUdek9+hnDe3LEot5XhGfDiWHazw1oftBupdqGFGxFwet4g1jGnaXC hvlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rcjoXNgEJqFz1uwcrAH9q4uN3e6PPge1epOaii+1glY=; b=YmnaihDFnK18AAIJa4RYV/WR0WSTt7JFRn0TW9sP+QMzuOaQxHhS5Z54+3Fjcuc9BK tHDEg+APZ+q4Yu3nMkuQiXcqasRAsQZY5KlNjvaoZbKJ6tVyQcDRMpCYF1HCABi8qvGW 3z330A7M7bc6uIxX5+XbNIz3qXQbn1aas5oSQiWXxzYuVE/ec857O9kPCDXUuz9pjdHs bVgF+fYZTMFriV+585EMzGQq1ID6JVgCpzB0cmtTleNhKX+fg+UL/yl+L64bK50yDtq5 YmhwqCJMyFV2d+BvcPVgiWR1L1i67ARBukoJutYpWvevYb2zIsWZyDtb1+JlIHLzMeYU ZrMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=UDZgeUit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k126si12276599iof.103.2021.09.20.18.40.18; Mon, 20 Sep 2021 18:40:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=UDZgeUit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235262AbhITQaB (ORCPT + 99 others); Mon, 20 Sep 2021 12:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbhITQaB (ORCPT ); Mon, 20 Sep 2021 12:30:01 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56D1FC061574; Mon, 20 Sep 2021 09:28:34 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 825822F06; Mon, 20 Sep 2021 18:28:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1632155311; bh=rT3iP0dO5pvYhS8utchpgMyakT6U9Iy8T0YzsoNSQus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UDZgeUitXVv8n0Ag8SqWvA+699JQg38we82uzXq94Z6g+LA9b9B33PXNtOpdU/zBZ dueDxH8QPImnBbYd3TfLgOMu0QY7hdsrpiGQOK58d7oZ+Frlui8kFY99laly0Nw6r7 iKqJz0GABmZ536ENyCDwipW8LOi0YyKGCnAwqez8= Date: Mon, 20 Sep 2021 19:28:01 +0300 From: Laurent Pinchart To: Arnd Bergmann Cc: Hyun Kwon , Vinod Koul , Michal Simek , Sanjay R Mehta , Peter Ujfalusi , Arnd Bergmann , Jianqiang Chen , Quanyang Wang , Yang Li , Allen Pais , Lad Prabhakar , Biju Das , Andy Shevchenko , dmaengine@vger.kernel.org, Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH] dmaengine: remove debugfs #ifdef Message-ID: References: <20210920122017.205975-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Mon, Sep 20, 2021 at 02:50:52PM +0200, Arnd Bergmann wrote: > On Mon, Sep 20, 2021 at 2:47 PM Laurent Pinchart wrote: > > > > It's only a few bytes of data in struct dma_device, but a bit more in > > .text here. Is the simplification really required in this driver ? > > The intention was to not change the resulting object code in this driver, > and I still don't see where it would grow after dead-code-elimination removes > all the unused static functions. What am I missing? Indeed, gcc does a fairly good job there. The .text section doesn't grow. Interestingly, there's an increase in size in the .data and .rodata sections in the xilinx-dpdma module: - 8 .rodata.str1.8 0000029f 0000000000000000 0000000000000000 00003660 2**3 + 8 .rodata.str1.8 000002a7 0000000000000000 0000000000000000 00003660 2**3 - 10 .rodata 00001080 0000000000000000 0000000000000000 00003960 2**5 + 10 .rodata 000010e0 0000000000000000 0000000000000000 00003960 2**5 - 15 .data 00001050 0000000000000000 0000000000000000 00004e40 2**5 + 15 .data 00001090 0000000000000000 0000000000000000 00004ea0 2**5 I'm not entirely sure where it comes from, it may be related to instrumentation caused by debugging options. For your patch, Reviewed-by: Laurent Pinchart -- Regards, Laurent Pinchart