Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3835477ybb; Mon, 6 Apr 2020 17:08:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLH2yeOqFvH6TWZ7IfAdzVw8IkWxf5oVT9/k0F8lZf34MapTZXldQ5wMQJ9TWWqAE6SsR7F X-Received: by 2002:a9d:4b84:: with SMTP id k4mr20552941otf.233.1586218134501; Mon, 06 Apr 2020 17:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586218134; cv=none; d=google.com; s=arc-20160816; b=olbjIfrubIbevTGRk5JheZv1BcAhEPDBgmoU0KLmpbPvAco3lEU+HKFQsRkwerbq7B 9RRAUo308e9FW+X8mHagS6Lg3EfYlWZ2zlg0szynXs88DGegm1DjxfHuivBeLF0eG8Vu AKVOx3qWKXrymOsR76X+nLZdK+L0CqnAkV+tvvpalyfqgJJKOzs3XI+tR0WgxkSE8cx/ zucVkuGB7v54GnnI7iqVnR1XCtOsczfojESDcqs3jy4TENPnaBCELdUt2y9Xl2vjY2un 1i1Ktpf4vMbueTDbeq6hZcSKovAENQ+iMFtMqg03hg+P4vVEx07TkJZ3xUah2/qnJbv8 GFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y2wBxf54YwKWHlCMlDNv2Bptt/IRDjpE9tRm/kPgb68=; b=nP+LohB9qIJNjpzJeffeXENQwlk24KD5z6gY6PKZS8WIPYvwLKsSU5PR/MLygk/Il8 egC1iOsgfY/X4U5r6WLFzB3z1FZgXZV1LhmeSL5dPQIRs0tnIY5vvJ3cfuVYWjp+uvd9 LRSbCtlaSvEVGqqFNwWmkPBEkYwjeQgaxR8ijUEx6oEv4Rih14ft8IXEsy8pNarB5IEM Np5QIKgkqN9W0RTNR895tVTd/60Eva1aMIsjZXL5GSVIG7NRMc5c61d9dhXabGi0HdG5 Wl/FZIGjMNNLff++d6S7XCYlo4SH6zFn86pVB0Mn33jCNblp0hG34YrygPBBtSAuBhEJ QOpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WOzLd5rE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si8150328oib.163.2020.04.06.17.08.42; Mon, 06 Apr 2020 17:08:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WOzLd5rE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727994AbgDGAIP (ORCPT + 99 others); Mon, 6 Apr 2020 20:08:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:34588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726928AbgDGABb (ORCPT ); Mon, 6 Apr 2020 20:01:31 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A07AD2080C; Tue, 7 Apr 2020 00:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586217690; bh=51H9TY8V5noS4FlXlFD3P5jsli5RDi0dx8xUt4ONeBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WOzLd5rE2PdQIUK0DlF6Plp4SVGb8wwfgKmtJG9r7hJUq5HcVlSH/bC8kGqWG/+Mn k/QYuYpvB3iOhnW27S9zaVxtKgkj6IQ2EVDQUlmzBpUwTgKWzT3As9+11aXSxrFpkJ iU40OzbtPJwYjzu+BSFj86y2dxpS/DFTxhxtt0hA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alan Maguire , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 25/35] selftests/net: add definition for SOL_DCCP to fix compilation errors for old libc Date: Mon, 6 Apr 2020 20:00:47 -0400 Message-Id: <20200407000058.16423-25-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200407000058.16423-1-sashal@kernel.org> References: <20200407000058.16423-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alan Maguire [ Upstream commit 83a9b6f639e9f6b632337f9776de17d51d969c77 ] Many systems build/test up-to-date kernels with older libcs, and an older glibc (2.17) lacks the definition of SOL_DCCP in /usr/include/bits/socket.h (it was added in the 4.6 timeframe). Adding the definition to the test program avoids a compilation failure that gets in the way of building tools/testing/selftests/net. The test itself will work once the definition is added; either skipping due to DCCP not being configured in the kernel under test or passing, so there are no other more up-to-date glibc dependencies here it seems beyond that missing definition. Fixes: 11fb60d1089f ("selftests: net: reuseport_addr_any: add DCCP") Signed-off-by: Alan Maguire Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/reuseport_addr_any.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/net/reuseport_addr_any.c b/tools/testing/selftests/net/reuseport_addr_any.c index c6233935fed14..b8475cb29be7a 100644 --- a/tools/testing/selftests/net/reuseport_addr_any.c +++ b/tools/testing/selftests/net/reuseport_addr_any.c @@ -21,6 +21,10 @@ #include #include +#ifndef SOL_DCCP +#define SOL_DCCP 269 +#endif + static const char *IP4_ADDR = "127.0.0.1"; static const char *IP6_ADDR = "::1"; static const char *IP4_MAPPED6 = "::ffff:127.0.0.1"; -- 2.20.1