Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1070308ybp; Fri, 11 Oct 2019 08:33:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaj5eKbSDRotyU3LkT9QAQifm5IxIqShP7jTeof1fHK2h8o2fNRznIAxNhjOxD+8LxkWoc X-Received: by 2002:a17:906:90c2:: with SMTP id v2mr14362543ejw.98.1570807986960; Fri, 11 Oct 2019 08:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570807986; cv=none; d=google.com; s=arc-20160816; b=qkirWpd8qvN+xN9IUV7rxpdz/iSBgWArok0uwiZW6vAjyFiyiwRlJuf1zYZ0KVOboP iPX+kX62t+4kyZADJlAR3Zsbo8isUf1PbYiSkOvKui9LkaMHCF1jPlOIPgP933WvqrbF J3+i35+255lbfCGyMFETA0CStnbuAzQJtjMvGtLFO4GYzsJe8W3qXRnyxsybX6rmfQVt dBTbe9+WKUaBSkEOqxs1RjxKRXhIcuMQi+/nEK+AgqgnJAetRsHqmEg2hWSOZnLZPlAu 1Hxtrdbi9Zxlmr5rN0S2GpvuB0nX2W/PfMwC5J0ip0+KbWK5ValGbomVxWl6PnYAsqO1 6YvA== 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:dkim-signature; bh=jGyBZ2UiCIxp6pQIevvo8aOQ1I8F+9dfau/qnzH+81Q=; b=ukPQVCuaneBHE8raRyjnZvYUX4/WZmve7JCdWk8ThG6zG+1Xm3t54doFnx56iab0z2 o5djid5XUiZxwCZ10WA53t0fk6bntnL699qgH3EtAHd85mLDOfi5VG7RGG8Qc3HZxGUm TOVLi9HiKRl9pCnW9EbgsKLTuME+SVdz7z6aI07Ht6B3gmq0z71iaIyEVPPG/ZCnha8+ xF5GDoTjk1nraRPXlwzBlHTBS2ABsS9ptZXA1Ct7SZN1CPBKRyZkwINUnO23vwzm+1RN wle/nLwPYLVNMrN6bOLmOM2ZpyQpo5jj11v+ofeludd0DT2LMJJEEbxo2noSIAzpXTUl xWuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T+fcPI92; 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 ni5si5347763ejb.184.2019.10.11.08.32.43; Fri, 11 Oct 2019 08:33:06 -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=@kernel.org header.s=default header.b=T+fcPI92; 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 S1728222AbfJKPbb (ORCPT + 99 others); Fri, 11 Oct 2019 11:31:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:55456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbfJKPbb (ORCPT ); Fri, 11 Oct 2019 11:31:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C6FD02190F; Fri, 11 Oct 2019 15:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570807890; bh=7XYT1FrNF/XG4yYUuKPaYoFH46Pe0/yvmDiTNuOUoZo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T+fcPI92HOL/DpOJYIcHbu+iQHMnLhY6qNwcmmeDA7UXS3DEmw1WP13J2hdA8xRzp g3mXfgH9EEydj627HOjuhVdb9hLuLdzMUumvySgoEP1tTAynPG6QHnc+mrfdEsTjjy NJfwtEUNImRD89kJVnw91KA8uQe2xC1jQYsZrz7k= Date: Fri, 11 Oct 2019 17:31:27 +0200 From: Greg Kroah-Hartman To: Matthias Maennich Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Jessica Yu , Masahiro Yamada , Martijn Coenen , Lucas De Marchi , Shaun Ruffell , Will Deacon , linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org Subject: Re: [PATCH 4/4] export: avoid code duplication in include/linux/export.h Message-ID: <20191011153127.GA1283883@kroah.com> References: <20191010151443.7399-1-maennich@google.com> <20191010151443.7399-5-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010151443.7399-5-maennich@google.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 10, 2019 at 04:14:43PM +0100, Matthias Maennich wrote: > Now that the namespace value is not part of the __ksymtab entry name > anymore, we can simplify the implementation of EXPORT_SYMBOL*. By > allowing the empty string "" to represent 'no namespace', we can unify > the implementation and drop a lot redundant code. That increases > readability and maintainability. > > As Masahiro pointed out earlier, > "The drawback of this change is, it grows the code size. When the symbol > has no namespace, sym->namespace was previously NULL, but it is now am > empty string "". So, it increases 1 byte for every no namespace > EXPORT_SYMBOL. A typical kernel configuration has 10K exported symbols, > so it increases 10KB in rough estimation." 10Kb of non-swapable memory isn't good. But if you care about that, you can get it back with the option to compile away any non-used symbols, and that shouldn't be affected by this change, right? That being said, the code is a lot cleaner, so I have no objection to it. Reviewed-by: Greg Kroah-Hartman