Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp416677pxb; Wed, 3 Mar 2021 06:35:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrzmzDmf0mDIM4TzoKTFfnxugoorAzLIPawUAoCkDjP9d0IpYjpNhejtM5mz952/5UwFWA X-Received: by 2002:a17:906:73c2:: with SMTP id n2mr26055232ejl.224.1614782141967; Wed, 03 Mar 2021 06:35:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614782141; cv=none; d=google.com; s=arc-20160816; b=NcPlmkOvQXqf+vSmhiAVMnK8iJXL/ywyo9rfupk4sLPuc0A4Pmdk0kObfOzRw8N1+h u2rQCYsS7BmD7WBL97bXsViAW5hxPsIF+/VsoMH1NjeQ10e49y5qbErpkSOTRYR9pbNW cGymlAO/HHdyaK9lrsL8av/exobyPMpHMlKn7s54ZMKKq/UzoHJieYzR6JW0HkJvD8ZQ m+KrZAjP5KlIenqbx4sPxby1U/XgBVMotKZjUS708eXCqEpRZffugiNQz54HVBOGuJy/ /nuFwK+zRud8rde1Zr1oeVUkMCrWPXqw43tinbsDyuCe87uQZ329OkkUths6X1Tr01Kr pqBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=G1HZhdvO9w+cshhK4H1+jHiq/o+3rUNTtPhrJw0CgOA=; b=h1QR0XPF+IesRaiOohXjn/CQBuCUo/ePbgNPh6xiHZsMhGCx00+yE7T7swtO5kdTzR J/fOhvwRdwSZHn9i+x5f3kweMcwn1X/W5f6EU3xcG3TwaPU+PQ5k55c49ZX0UzK8bMbk PZ8RHo72xiTPhURH3CNGFdLfoKuD7TMLaf5zXMnryHf99AWUNCwdWHUPBmgV04Wd/Y00 v9pY9cJgAhl2iYp9J4Mfmj/fiLCXe5tIQKGPTsAj/dNvyaXiEIg+ywMa646YaB5y7pIB I8gfzatyPlPeJVx3EC69RL0VRPozq/UOqzVqNqTdoeZSSaX+kVfc43snYoDcj8Sphs0N 2gHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CQbEXRnL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si7697714eds.543.2021.03.03.06.35.02; Wed, 03 Mar 2021 06:35:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CQbEXRnL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244406AbhCAVna (ORCPT + 99 others); Mon, 1 Mar 2021 16:43:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:37348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237357AbhCARSv (ORCPT ); Mon, 1 Mar 2021 12:18:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 709C564F8E; Mon, 1 Mar 2021 16:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614617220; bh=ReAI+yvQjUFRAHcvPHSDQ9i9cEinuwq+ddTXc2KFHtM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CQbEXRnLcBsHMlnnZ3AMFRrAlx/OiE15GU/A+ytYfzXa1tO6Xeu6wemLoGaRPHq/q FUWyXhFZ7uIE6BuPug/sC5yNwLTCJbLUxMlAFXGp63nNAxjIblG3uBAp+iR5QIbwf6 3ge87qJzfyyjmcnxOks1E4f+7/Z0+n4Q+0KFhZSg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leon Romanovsky , Jakub Kicinski Subject: [PATCH 4.19 244/247] ipv6: silence compilation warning for non-IPV6 builds Date: Mon, 1 Mar 2021 17:14:24 +0100 Message-Id: <20210301161043.654915074@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky commit 1faba27f11c8da244e793546a1b35a9b1da8208e upstream. The W=1 compilation of allmodconfig generates the following warning: net/ipv6/icmp.c:448:6: warning: no previous prototype for 'icmp6_send' [-Wmissing-prototypes] 448 | void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, | ^~~~~~~~~~ Fix it by providing function declaration for builds with ipv6 as a module. Signed-off-by: Leon Romanovsky Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- include/linux/icmpv6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/icmpv6.h +++ b/include/linux/icmpv6.h @@ -16,9 +16,9 @@ static inline struct icmp6hdr *icmp6_hdr typedef void ip6_icmp_send_t(struct sk_buff *skb, u8 type, u8 code, __u32 info, const struct in6_addr *force_saddr); -#if IS_BUILTIN(CONFIG_IPV6) void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, const struct in6_addr *force_saddr); +#if IS_BUILTIN(CONFIG_IPV6) static inline void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) { icmp6_send(skb, type, code, info, NULL);