From patchwork Mon Sep 7 12:38:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 33080 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 8FCA4B7088 for ; Mon, 7 Sep 2009 22:39:47 +1000 (EST) Received: by ozlabs.org (Postfix) id 834A0DDD0B; Mon, 7 Sep 2009 22:39:47 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 0C841DDD01 for ; Mon, 7 Sep 2009 22:39:47 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751863AbZIGMi1 (ORCPT ); Mon, 7 Sep 2009 08:38:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751636AbZIGMi1 (ORCPT ); Mon, 7 Sep 2009 08:38:27 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:49946 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbZIGMi0 (ORCPT ); Mon, 7 Sep 2009 08:38:26 -0400 Received: by fxm17 with SMTP id 17so1955682fxm.37 for ; Mon, 07 Sep 2009 05:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=u3LcEXI4ow0mU9z42WehlDAV4k55tqT+yfzZ+rSKKu0=; b=Qp7m+FS2D0Mlc0hGXMsLQdKgUilO22WBKJJQFS1xq19eQtObGS6hpXKYi0KNSMNI1F nRg0cgH7/sC3ulziT5QuXgjDi2VywJhZFLekPRpHiRgK9G7fp02dGrP15JonBmJQvkyD FN2wvFGr1BCrm+B2IFIbStmc0u9WUboLNs8IE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=Loa0Kcagv9g3LfmRSchtrXksotB3aDx5neNUKYhTg2RIR3TQ/wnUkJVoiCLFymrN/w DdBzZAdh1naTo5kM31gpZJcoivy5mdNK8pIGdOB1V0F3fDm/olUuRRGG92mllBw638rA mg4m8EZTRnn3QidGVIWpJvXh6leqFYDtSLgKk= Received: by 10.204.152.144 with SMTP id g16mr11875122bkw.189.1252327107452; Mon, 07 Sep 2009 05:38:27 -0700 (PDT) Received: from localhost ([213.171.34.228]) by mx.google.com with ESMTPS id 1sm7166373fkt.27.2009.09.07.05.38.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Sep 2009 05:38:26 -0700 (PDT) Date: Mon, 7 Sep 2009 16:38:25 +0400 From: Alexey Dobriyan To: davem@davemloft.net Cc: netdev@vger.kernel.org Subject: [PATCH] headers: net/ipv[46]/protocol.c header trim Message-ID: <20090907123825.GB29858@x200.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Alexey Dobriyan --- net/ipv4/protocol.c | 19 ++----------------- net/ipv6/protocol.c | 15 ++------------- 2 files changed, 4 insertions(+), 30 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/net/ipv4/protocol.c +++ b/net/ipv4/protocol.c @@ -22,26 +22,11 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ - -#include -#include +#include #include -#include -#include -#include -#include -#include -#include #include -#include -#include +#include #include -#include -#include -#include -#include -#include -#include struct net_protocol *inet_protos[MAX_INET_PROTOS] ____cacheline_aligned_in_smp; static DEFINE_SPINLOCK(inet_proto_lock); --- a/net/ipv6/protocol.c +++ b/net/ipv6/protocol.c @@ -20,20 +20,9 @@ * - Removed unused variable 'inet6_protocol_base' * - Modified inet6_del_protocol() to correctly maintain copy bit. */ - -#include -#include -#include -#include -#include -#include +#include #include -#include - -#include -#include - -#include +#include #include struct inet6_protocol *inet6_protos[MAX_INET_PROTOS];