From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA3FAC3A5A6 for ; Thu, 19 Sep 2019 22:22:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A690C21920 for ; Thu, 19 Sep 2019 22:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931767; bh=6lbVreInaH404zhbhVoQ5uFCBC6jGV91lY47KF4kOV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=NbRrLy2cwdl+Mn4v7/Ds4bgGaBCiGjSHgQDElKf6LVqZDY3J3nMk9AdWBldF+7ncz tNkbeCJdGp+lwbXfoEiFu93jzSSey67LnB7ldTFe5yFkfI4mrp6FeKgDLcwdTEYeuS +iXdjJiZ0ZwftG8i8+VWVuJDBaU3vrqTQavaN4B4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406915AbfISWWq (ORCPT ); Thu, 19 Sep 2019 18:22:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:37902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406899AbfISWWm (ORCPT ); Thu, 19 Sep 2019 18:22:42 -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 DC60020678; Thu, 19 Sep 2019 22:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931762; bh=6lbVreInaH404zhbhVoQ5uFCBC6jGV91lY47KF4kOV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iUglyqE+BKY7RwpPXs/T5fqxWaGP/9QkRAwezBVz58wh3poiLHsUTS2h/crR3v8lZ aH34KGo8ufaxRePV22f7VPKqsE4t40S5DXMhQBhkmL6J83ZdS29rkjJk2yjLqnHuFn joU7/FExW1BtmVbss+2Y4gUt8xCMxje/w8tRpNpg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , "David S. Miller" Subject: [PATCH 4.4 03/56] ipv6: Fix the link time qualifier of ping_v6_proc_exit_net() Date: Fri, 20 Sep 2019 00:03:44 +0200 Message-Id: <20190919214745.103855719@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919214742.483643642@linuxfoundation.org> References: <20190919214742.483643642@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit d23dbc479a8e813db4161a695d67da0e36557846 ] The '.exit' functions from 'pernet_operations' structure should be marked as __net_exit, not __net_init. Fixes: d862e5461423 ("net: ipv6: Implement /proc/net/icmp6.") Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c @@ -234,7 +234,7 @@ static int __net_init ping_v6_proc_init_ return ping_proc_register(net, &ping_v6_seq_afinfo); } -static void __net_init ping_v6_proc_exit_net(struct net *net) +static void __net_exit ping_v6_proc_exit_net(struct net *net) { return ping_proc_unregister(net, &ping_v6_seq_afinfo); }