Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3114371rwb; Mon, 15 Aug 2022 18:27:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Tzl88wuF9WhQ+vLfyaLW+9MYKiXia+tF500dP1gcQJmIQheYh11CwCY8KRKBIGNRxyoOJ X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:630e with SMTP id b12-20020a056a00114c00b005282c7a630emr18710303pfm.86.1660613256623; Mon, 15 Aug 2022 18:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613256; cv=none; d=google.com; s=arc-20160816; b=CgHHM6F07mEYiyQl/qQUcWsmTGoIlbMnqMFrzMDazQrLimqzh2D246NBxB+JIQxv+u ab8d5QfRs1wUqgYAQaRYCNMc3p7wupfeTa+7iaFpVGhsUJk9M5HDJ6epo5NWLio+58Il jwh98/qJFE+dAXb5DU3IyDsPt+MouePqrsrhwLVwnDkiyYP/MFwvox4Ts4qiLBQbEaUz FAbtrBuhlMKsvOO8AvYqRz7oMtjFi1M7MZ+HGaeWu6ZNMD4ejIEjh5fBBnXWP1SqaJoX 1Nxj03MKcTjG+NlNhJuJSu/UCkSPJhXt3y5xybDEnxee8j87SdwHrHBJI34PhUYHgjOO w0qA== 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=knYHvCf28eGoMn7VTfJBqFXHSux7NRvVCauRvaYQdqw=; b=vgxszAHv55SEu2aQSECkfA3FFmu9hXhvBuJmB402N/rRc2efABf7quQiKcWKX2ghKa 2oZaCfb/zpGfrovMbE0VpuPcm6pthO1Hs1TYBhgvnHcHD20mIurk6nLSgnviekJwz2Oo 2ISJ02ZXF/mITM/D8rGD6HiA1DZ9U/pL14m+BQBYR26nmVnrb6GnCoshTjOeUD5D14HR owoa/IGjntEv7CldSSWwIkvZHH4yv7ZLbjRsuUmV5OTW34SlOLRbgiPWPjfOfIxUWh4R TX4NWEpM+zpplwr/QpohbZqmmk3ItIdWI7Xckwex0iwTGsaVMsno2EYKoe43zpck20Di 5eFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H5+DJFkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a17090a4d8100b001f732123802si11255667pjh.36.2022.08.15.18.27.03; Mon, 15 Aug 2022 18:27:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H5+DJFkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1345442AbiHOXfW (ORCPT + 99 others); Mon, 15 Aug 2022 19:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233897AbiHOX2W (ORCPT ); Mon, 15 Aug 2022 19:28:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63D7C14ECB9; Mon, 15 Aug 2022 13:07:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4DCB60B9F; Mon, 15 Aug 2022 20:07:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1985C433C1; Mon, 15 Aug 2022 20:07:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594071; bh=wyyssmJjKz0+S4y54OgC72TBm269W186STRi3OTGgoY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H5+DJFkbh2FfmaPvGdhxEcVAvFd/OXEPMki1S++HA6WsNMZZEtguiWQfr7je7rRQ4 7NlEmLQxncmIZ3QzTf+nzVCexhQWr0w7AYJ0XBvaaet/rxQgOBAwUlNomMUeEbo3QT Cg2V2x+ZoaBPKfl0f+RN3nT+mtJQH6Zfh5jVLoPo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuniyuki Iwashima , "David S. Miller" , Sasha Levin Subject: [PATCH 5.19 0370/1157] raw: Fix mixed declarations error in raw_icmp_error(). Date: Mon, 15 Aug 2022 19:55:26 +0200 Message-Id: <20220815180454.512024314@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuniyuki Iwashima [ Upstream commit 5da39e31b1b0eb62b8ed369ad9615da850239e9e ] The trailing semicolon causes a compiler error, so let's remove it. net/ipv4/raw.c: In function ‘raw_icmp_error’: net/ipv4/raw.c:266:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] 266 | struct hlist_nulls_head *hlist; | ^~~~~~ Fixes: ba44f8182ec2 ("raw: use more conventional iterators") Signed-off-by: Kuniyuki Iwashima Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv4/raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index d28bf0b901a2..b3b255db9021 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -262,7 +262,7 @@ static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info) void raw_icmp_error(struct sk_buff *skb, int protocol, u32 info) { - struct net *net = dev_net(skb->dev);; + struct net *net = dev_net(skb->dev); struct hlist_nulls_head *hlist; struct hlist_nulls_node *hnode; int dif = skb->dev->ifindex; -- 2.35.1