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=unavailable 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 E9C2BC4CEC9 for ; Wed, 18 Sep 2019 06:32:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B103421906 for ; Wed, 18 Sep 2019 06:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568788321; bh=CmEW8MUi0J7WQgko3si7ArSPvR/pvR/s4Ml80/z03mE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sIoE4IZgKDyNJq+VwZ2Bopk1e0SbtZxlLC7BoLujZDfErnTN612XIwMBkxKlbTY8P X0snFXiHkn2pbwM+tiG9Q2upahahMOwQHW70ZKxBL/eMn5SodPos2XTs33KwClS9iT zMn7/dHfqdLd6A8ZBI2CFW8mNoPvkD0ruKmt7vMc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729472AbfIRGWr (ORCPT ); Wed, 18 Sep 2019 02:22:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:42834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbfIRGWq (ORCPT ); Wed, 18 Sep 2019 02:22:46 -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 1000720678; Wed, 18 Sep 2019 06:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568787765; bh=CmEW8MUi0J7WQgko3si7ArSPvR/pvR/s4Ml80/z03mE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxeEZu2a/AbRpAUon8hxzxrIhKY05KQBhhCQrz/JTvGTvua+fCfzcjIukhuivls+8 Kg9wq9fYnPvVWqUYCOwU//uoirZH+uUA9j2AC5WONkbYO1h46zmBs9quVSz9Fwm9ow QWNn3hh6N22awvQlRBNw5uie+SYgtUHoV/QCouKI= 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.19 03/50] ipv6: Fix the link time qualifier of ping_v6_proc_exit_net() Date: Wed, 18 Sep 2019 08:18:46 +0200 Message-Id: <20190918061223.454996373@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190918061223.116178343@linuxfoundation.org> References: <20190918061223.116178343@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 @@ -228,7 +228,7 @@ static int __net_init ping_v6_proc_init_ return 0; } -static void __net_init ping_v6_proc_exit_net(struct net *net) +static void __net_exit ping_v6_proc_exit_net(struct net *net) { remove_proc_entry("icmp6", net->proc_net); }