Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2359rwe; Thu, 25 Aug 2022 22:31:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR74LgkRqlh5HmFOpUWiIcXjySwe7rxBPslQfDhyh6Q8S3TJX0yJmQkA54NIeZig/JFlZaXI X-Received: by 2002:a17:906:9748:b0:73d:adc4:5f81 with SMTP id o8-20020a170906974800b0073dadc45f81mr4625577ejy.655.1661491879111; Thu, 25 Aug 2022 22:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661491879; cv=none; d=google.com; s=arc-20160816; b=U/Dck1fDXqeBB7S+dN6ra5XzHpGV/8N1cV/Yb5GItLCbNTJLKAS5KcabrYRroyJA10 +vIeKmr3ftOJOdycQqU4VOl9I5nf7DxoXMkkcu1GA/BSQdXYMeIHCONG9ctA5m9Tqk5m EbZJKQbCVLeNWJ7UyX63DcFfOWjy8d5dxz8d0EnFQaVuF91p4ASZA2IYoL69OQ8xM1/8 P0bu2IOri8J1DvGsfUYVcMwtao/5UBv0mG0qxo2MQcY7cjXzFzJQCV4/Ka4ZpNHGUTXY UBC/W8CPxWS4Sc9rvl+WvFggvlD7svGy/tTBEy5oucGIrXeo6BCbz2eAciEbk43s4mNT JcLA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=w20zjdl+2nu5ShzHX4Z1KBMqL8hO9v7+2YJmoH4D5mY=; b=K/L5pmnoCErFuNwKWnVh9u6V0Y5pfGGBgndf1L0FJ75GMgivRZ/U0Dwk3WpUgswkXG HVcgsyYunKNoTy7ACKzF/+Uw8Ki0ZyzYdtJSpZdU5/ZiRB7hOOdIKDK3nArbSIy5df+F o1KJN/CrIbz0upNB3Jgnydm9bcVbW8o6KX9ggvn3/2dv0qcl9yaZGDOasSyUqd+kjKyA ZH54tDuy8lQyyV3ES9YKpKQQy+y5kPu777Tm8rUseLy1n2aJZpFNZrRQpFJiODuViA0D fNChnW281W7+hvJVK7Rc38QP1XuWRoeTPrwRqSga74f28u12PWh58vBnjPMzSHklWgax aAew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kUTbxhHE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg11-20020a170907a40b00b0073c227a5543si691272ejc.169.2022.08.25.22.30.53; Thu, 25 Aug 2022 22:31:19 -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=@gmail.com header.s=20210112 header.b=kUTbxhHE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244819AbiHZFH3 (ORCPT + 99 others); Fri, 26 Aug 2022 01:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiHZFH1 (ORCPT ); Fri, 26 Aug 2022 01:07:27 -0400 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68CDEA2638; Thu, 25 Aug 2022 22:07:25 -0700 (PDT) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-11dca1c9c01so801674fac.2; Thu, 25 Aug 2022 22:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=w20zjdl+2nu5ShzHX4Z1KBMqL8hO9v7+2YJmoH4D5mY=; b=kUTbxhHEjbo4zW+okG7rb9E4aD4KhkUGNRgn5nojzrYRzVHJNx0R1s2PXzcxMokE8o Hg3dl4pVEDa3e/Vh83xwlZ50SCRZbv8i8JJ4+a94hHTWFBKN2ElwlMIOQJS8gzw+qwFa fCGq0yQSdLJ7qVdy1TmV5QzWLHGT9MHZCdzfiMKnYhSUbCchsGFupZ0quAZMJjX3c5jA mjha+vjyb66XnQIWmtr0FBP4zUj7qWVbfPRaKYQ2ldg3B/75C3lcGaRhVgHl28vApg+E 4uYr34hDMNKWS7v9CK7mtUadNRDs3ZE3PBc7U5Ejij/NyAiCdiRHJKB1bMamtBz4ybUJ zsRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=w20zjdl+2nu5ShzHX4Z1KBMqL8hO9v7+2YJmoH4D5mY=; b=NXrTJvMm3O8p8CYCqBTqjAO45tJcy59MQilV90ABtnnvx8htEOOoCF2j/nXfuv9zx/ sEmGjfPWfRXWH3gJ3ufTeMrqcvN0+LCVZMmTln7bjU8xos25UAkYolJ6dwI5BZ+dt52q LsEP5MxqgjR9+6Sq0obb8cv5xfjA5sdlLXs6gyobYt3czABQ18rPyjnmpIyywwd3oRxq jGYMHSNAgiLt1N7NQE+5szD4Zt7pkL3k9qR8nlEzgAGMuyjuq7ZBHP52aP4NX7NqNAR0 yvhnn9uA0PjqkZxvHih27EpJrP+4nRLTjBbY3vZK2VF7Yf/w9iHKrG1p+2BcwPWvZm1f G4Yg== X-Gm-Message-State: ACgBeo0qWhVtAjUSPDV7eDogWtmGviSiZ2ZTS6Lyor5WbkaoSmCu0xER +FV2Emfxvyx8MMHGl6PEdtq6Hs0tnU+yWw== X-Received: by 2002:a05:6870:f6a8:b0:11b:d4d1:1459 with SMTP id el40-20020a056870f6a800b0011bd4d11459mr966633oab.245.1661490444152; Thu, 25 Aug 2022 22:07:24 -0700 (PDT) Received: from james-x399.localdomain (71-33-138-207.hlrn.qwest.net. [71.33.138.207]) by smtp.gmail.com with ESMTPSA id v18-20020a4aa512000000b0044b0465bd07sm616918ook.20.2022.08.25.22.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 22:07:23 -0700 (PDT) From: James Hilliard To: bpf@vger.kernel.org Cc: James Hilliard , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , "David S. Miller" , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/bpf: fix type conflict in test_tc_dtime Date: Thu, 25 Aug 2022 23:06:59 -0600 Message-Id: <20220826050703.869571-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 The sys/socket.h header isn't required to build test_tc_dtime and may cause a type conflict. Fixes the following error: In file included from /usr/include/x86_64-linux-gnu/sys/types.h:155, from /usr/include/x86_64-linux-gnu/bits/socket.h:29, from /usr/include/x86_64-linux-gnu/sys/socket.h:33, from progs/test_tc_dtime.c:18: /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:24:18: error: conflicting types for 'int8_t'; have '__int8_t' {aka 'signed char'} 24 | typedef __int8_t int8_t; | ^~~~~~ In file included from progs/test_tc_dtime.c:5: /home/buildroot/opt/cross/lib/gcc/bpf/13.0.0/include/stdint.h:34:23: note: previous declaration of 'int8_t' with type 'int8_t' {aka 'char'} 34 | typedef __INT8_TYPE__ int8_t; | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:27:19: error: conflicting types for 'int64_t'; have '__int64_t' {aka 'long long int'} 27 | typedef __int64_t int64_t; | ^~~~~~~ /home/buildroot/opt/cross/lib/gcc/bpf/13.0.0/include/stdint.h:43:24: note: previous declaration of 'int64_t' with type 'int64_t' {aka 'long int'} 43 | typedef __INT64_TYPE__ int64_t; | ^~~~~~~ make: *** [Makefile:537: /home/buildroot/bpf-next/tools/testing/selftests/bpf/bpf_gcc/test_tc_dtime.o] Error 1 Signed-off-by: James Hilliard --- tools/testing/selftests/bpf/progs/test_tc_dtime.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/test_tc_dtime.c b/tools/testing/selftests/bpf/progs/test_tc_dtime.c index b596479a9ebe..125beec31834 100644 --- a/tools/testing/selftests/bpf/progs/test_tc_dtime.c +++ b/tools/testing/selftests/bpf/progs/test_tc_dtime.c @@ -15,7 +15,6 @@ #include #include #include -#include /* veth_src --- veth_src_fwd --- veth_det_fwd --- veth_dst * | | -- 2.34.1