Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3424487pxf; Mon, 29 Mar 2021 01:40:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH6h8gU5HMsR3Ba7NL4FqOHyoA98sUBXoiPGMSX12PV6Yg5+LsoXrMW5qXeHwNcwDA3Whg X-Received: by 2002:a05:6402:32d:: with SMTP id q13mr27550279edw.17.1617007256229; Mon, 29 Mar 2021 01:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007256; cv=none; d=google.com; s=arc-20160816; b=JolV8CDdeJhL8xlki6pGuQLJhI7PMZTuNk+OctJzxYPDQnLCxIxp8o4KbLagVqk1VU 145cXPynv+PgWbBUPsE+wAxJ61CRF5ZxLAG/SVhEFVUUrtzvQk7YRUx3ND3m0ErDmPLw zkkDSt6OMDC6bWbF9QTnS4X5GnkdMIaO4nEjxhw3MzzXgBQE0Al9W7nwRSqeUy+DiY1b letgFCV0t65TEdKDJ1BeAWwz2lQeXI/0rwxiftmpNK1WZbOrsS84Omsx+9p+cbVv6tF2 u5PgGATfQs9FAH5dTB7da8LlJg63ra1C6HVgxk3DYvHdLGgAYsqFlC/0fWNKng82i/yl gHtQ== 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=DJjPx6AHgY8oZwBCsf6bw6tNHpWoeR+YRBuMIDtd3rw=; b=C9J5UeRgKqgwhyeZEdCDj+4liYE4gNGfrm8d9PGgewYCGWWTiTnCqj+KC6AESsnSLv lsSkhuskHKuCuJha138yRW43vcm4H+ECDI2SenEe+LB895rkZ2smGQKpEEKTa1Rw0Vjj yDQm2QhmIeXv5PrSlrlkO/AjJ5AjmdNj52iFPDh0F7ifuTBJTVoAJ6k4zarYp+SbotfA CR3NQQeSO0EcG42c+T6QdDpc7NzS/aBT6jt6pSpO2fGvJzNsgbkKqte2298g6RX1SYTD mVpxdo0z5514T1T3elkI4bKgKSKBbp3l51J+HUG+5UYPDeV4Z0GwdSV4o8+fnXUB2pOL 6nvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I6xbfCMH; 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 lu7si11879678ejb.27.2021.03.29.01.40.33; Mon, 29 Mar 2021 01:40:56 -0700 (PDT) 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=I6xbfCMH; 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 S234694AbhC2IhF (ORCPT + 99 others); Mon, 29 Mar 2021 04:37:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbhC2IWm (ORCPT ); Mon, 29 Mar 2021 04:22:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3048761580; Mon, 29 Mar 2021 08:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006150; bh=KC7cYA3GCnH1sNAc2tHBgiwFe0CGHB7A53pDDXKoVps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I6xbfCMHn8Ph5Iu710bmfWUuy6WQ0ThinNN4VAMcqiwxsBTfXCOb/63uvhokT8W47 KY3JwnQuCWMgvlldNQwKJi6SOXcabKRInDr4cgLO4WRnw//O2Herh8CcNvbaFkixHC 59QbUQYurbijGh9514viuy2kymU8+ukxtcJXblrc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Carlos Llamas , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 135/221] selftests/net: fix warnings on reuseaddr_ports_exhausted Date: Mon, 29 Mar 2021 09:57:46 +0200 Message-Id: <20210329075633.691517664@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@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: Carlos Llamas [ Upstream commit 81f711d67a973bf8a6db9556faf299b4074d536e ] Fix multiple warnings seen with gcc 10.2.1: reuseaddr_ports_exhausted.c:32:41: warning: missing braces around initializer [-Wmissing-braces] 32 | struct reuse_opts unreusable_opts[12] = { | ^ 33 | {0, 0, 0, 0}, | { } { } Fixes: 7f204a7de8b0 ("selftests: net: Add SO_REUSEADDR test to check if 4-tuples are fully utilized.") Signed-off-by: Carlos Llamas Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- .../selftests/net/reuseaddr_ports_exhausted.c | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/testing/selftests/net/reuseaddr_ports_exhausted.c b/tools/testing/selftests/net/reuseaddr_ports_exhausted.c index 7b01b7c2ec10..066efd30e294 100644 --- a/tools/testing/selftests/net/reuseaddr_ports_exhausted.c +++ b/tools/testing/selftests/net/reuseaddr_ports_exhausted.c @@ -30,25 +30,25 @@ struct reuse_opts { }; struct reuse_opts unreusable_opts[12] = { - {0, 0, 0, 0}, - {0, 0, 0, 1}, - {0, 0, 1, 0}, - {0, 0, 1, 1}, - {0, 1, 0, 0}, - {0, 1, 0, 1}, - {0, 1, 1, 0}, - {0, 1, 1, 1}, - {1, 0, 0, 0}, - {1, 0, 0, 1}, - {1, 0, 1, 0}, - {1, 0, 1, 1}, + {{0, 0}, {0, 0}}, + {{0, 0}, {0, 1}}, + {{0, 0}, {1, 0}}, + {{0, 0}, {1, 1}}, + {{0, 1}, {0, 0}}, + {{0, 1}, {0, 1}}, + {{0, 1}, {1, 0}}, + {{0, 1}, {1, 1}}, + {{1, 0}, {0, 0}}, + {{1, 0}, {0, 1}}, + {{1, 0}, {1, 0}}, + {{1, 0}, {1, 1}}, }; struct reuse_opts reusable_opts[4] = { - {1, 1, 0, 0}, - {1, 1, 0, 1}, - {1, 1, 1, 0}, - {1, 1, 1, 1}, + {{1, 1}, {0, 0}}, + {{1, 1}, {0, 1}}, + {{1, 1}, {1, 0}}, + {{1, 1}, {1, 1}}, }; int bind_port(struct __test_metadata *_metadata, int reuseaddr, int reuseport) -- 2.30.1