Received: by 10.213.65.68 with SMTP id h4csp1941931imn; Thu, 5 Apr 2018 06:29:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx492f10Z9201rY1DVu2AZyoIyJAmHzKRC0Igw2aaViSLhZgSzIvX2lAC7sdAthJf9XfiOQ/D X-Received: by 2002:a17:902:d882:: with SMTP id b2-v6mr13190954plz.197.1522934988957; Thu, 05 Apr 2018 06:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522934988; cv=none; d=google.com; s=arc-20160816; b=lVpnl/cXrOMscskJ+YuSkhrFWCh2qQSfZhDirWDwATVYfa614UeX0AZIIHK+UgZcUI 4/Po21fZVo7kYPjuSzP8mayuNZp7J0prLj0RS7bh5bMBb6d97iJ330gGCYroTLRM3RUu f/oEQpYGCucOhzfdXc4jKeJA3/CTTKzFY+kBOzXSG+oMhewJX6s/B++H89HY8EZ4G0jl ScBy57LVV8MBwqizDMcrg8vzCssCwpw0O2ICvMGIQHDvMGYCu442Q0JrUEpFVBrBMqdJ PeqPRREHJ1ljhIvCY08jfYmnm/FObjGoTPhWTlUSjazrvUkwWG6KVQK3U/f/abSoOIUZ Vg4A== 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:openpgp:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=XzWYtJHwDwF8RgvFjr+eVf/fsj3dyq/p4S6ZAStUE0A=; b=t96APYlY8hToyZtwiirG5g1RNy8ysaCtwFCDCPKuGBbA29LzXFlIn9ysePIXjtB3XM 2gZiqHoa8btAuVeasEKQbIRaURdPJwQ7bKvjBQgz0uXGD2RUp9dstA5jZbzdqT6scEGn ndchSMIMSgbw4SvnCKMNtCa9wT1z32uzfCjm7hTMyZQ9nSi9AwONRRXFkbajynI7U57v hC4xyxi0SLdcyGid+sDAhP9oqrnjbbzqlIxkNDLUI4DwnTe+EWMWCC2jTAdbPPpleqZS ptJy/mNAQ/Zl4h22lupjbC/vsdho4G1sBQQOUSpFdNZOw/pzYoLjLQpl6PmDe7anNgix Vtqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=ipQD5MYu; 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 g62si3047990pgc.693.2018.04.05.06.29.34; Thu, 05 Apr 2018 06:29:48 -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=@nbd.name header.s=20160729 header.b=ipQD5MYu; 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 S1752072AbeDEN2C (ORCPT + 99 others); Thu, 5 Apr 2018 09:28:02 -0400 Received: from nbd.name ([46.4.11.11]:60262 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbeDEN16 (ORCPT ); Thu, 5 Apr 2018 09:27:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XzWYtJHwDwF8RgvFjr+eVf/fsj3dyq/p4S6ZAStUE0A=; b=ipQD5MYuE00e0qjKylyJ+iD1A6 fdblbaH6JazrOSF77MT25U+u8JMLvRkadKtixKYPNOHiEmigo7aEB18xWw3nAqYFp7mIrhHnpTL5j y7TuazSxC2hKXG3NktUZZ9CnjUPceQAJX8y0ReRs/5l+FgdnXAN6jJm2jg7/t3Ft8T2Q=; Subject: Re: [PATCH 00/12] Ethernet: Add and use ether__addr globals To: Joe Perches , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, bridge@lists.linux-foundation.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Cc: linux-kernel@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com References: From: Felix Fietkau Openpgp: preference=signencrypt Message-ID: Date: Thu, 5 Apr 2018 15:27:49 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-03-31 09:05, Joe Perches wrote: > There are many local static and non-static arrays that are used for > Ethernet broadcast address output or comparison. > > Centralize the array into a single separate file and remove the local > arrays. I suspect that for many targets and configurations, the local arrays might actually be smaller than exporting a global. You have to factor in not just the .text size, but the fact that referencing an exported symbol needs a .reloc entry as well, which also eats up some space (at least when the code is being built as module). In my opinion, your series probably causes more bloat in common configurations instead of reducing it. You're also touching several places that could easily use eth_broadcast_addr and eth_zero_addr. I think making those changes would be more productive than what you did in this series. - Felix