Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753109AbbDNSh7 (ORCPT ); Tue, 14 Apr 2015 14:37:59 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:36756 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbbDNShu (ORCPT ); Tue, 14 Apr 2015 14:37:50 -0400 Date: Tue, 14 Apr 2015 14:37:47 -0400 (EDT) Message-Id: <20150414.143747.1155055158701231768.davem@davemloft.net> To: dvlasenk@redhat.com Cc: ebiederm@xmission.com, jengelh@medozas.de, jpirko@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] netns: deinline net_generic() From: David Miller In-Reply-To: <1429014311-19868-1-git-send-email-dvlasenk@redhat.com> References: <1429014311-19868-1-git-send-email-dvlasenk@redhat.com> X-Mailer: Mew version 6.6 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 14 Apr 2015 11:37:50 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 22 From: Denys Vlasenko Date: Tue, 14 Apr 2015 14:25:11 +0200 > On x86 allyesconfig build: > The function compiles to 130 bytes of machine code. > It has 493 callsites. > Total reduction of vmlinux size: 27906 bytes. > > text data bss dec hex filename > 82447071 22255384 20627456 125329911 77861f7 vmlinux4 > 82419165 22255384 20627456 125302005 777f4f5 vmlinux5 > > Signed-off-by: Denys Vlasenko That BUG_ON() was added 7 years ago, and I don't remember it ever triggering or helping us diagnose something, so just remove it and keep the function inlined. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/