From patchwork Wed Mar 2 05:29:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 12765483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09C34C433F5 for ; Wed, 2 Mar 2022 05:29:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234033AbiCBFaQ (ORCPT ); Wed, 2 Mar 2022 00:30:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbiCBFaO (ORCPT ); Wed, 2 Mar 2022 00:30:14 -0500 Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [194.104.109.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3987213F22 for ; Tue, 1 Mar 2022 21:29:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1646198969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rnGGyrcbWur9DEkxeaZC+YCZaWcDKSt6uRlWbuL1dGw=; b=IAJL8rnrRSoAO5n+gW5i+NJteFwY3my+u7yW2olGnUqKCUSxECNZS0bQd+eQpRSE8TpnFH 0AWwb/mdyy4gxy8BYhGsYl6too9MBM9sMfFOo20+lYvhT+m7Hq6HKLVGEzEEKaHe14s9Nh vRPIbfGX6/czxMkOZcxRWoymtr8QDLk= Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03lp2052.outbound.protection.outlook.com [104.47.10.52]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-17-b8GCzDHeMkSgjO_x5FBxnQ-1; Wed, 02 Mar 2022 06:29:28 +0100 X-MC-Unique: b8GCzDHeMkSgjO_x5FBxnQ-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BjQMoL9r2SfQmFQofvLe43qnSLJB75GBF+n2rNy1xDm3uPIelhXI1zc3/EVo/4ogVfbnwEf3geQ8yH2wYcQdSK3nP2lpZhdIrHtHFG7SmijqUsWkUu0WGhPkdqOeyqC+GQGv1XkCqpZyazGrhlzaefFc13n7IZbbdWAie1AppDpeMHQJMsbTyanZoXcCWDjFJjRlg06ZqKuEty8V2nFGOb9ha2OD+1YNmd8TYWzE9vStRE9HWWPWU6dQG+VyW6NU8m9SZ/Svs91oTLUID3feVvd1E0NYyJQfJtESIZs5Incyx9V3r1+QWbvMerFHyXqx0nAnLGkn0Nxuri186MJj7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WvqOSIEkTK16oqyFAiU9nVOuw0vxUetNBoFZTUkDJ6k=; b=jsgquyezyXB8umumvWlpxhfJHxvi8rWBXPGqOul4K76oTIrCj3LlyiZ83PbAZXWZA0JMrrRh2nKvVrsCfvCVc2Merzj1iUlGI59l5CrE4xbIKSmqDhTzX/i3ittzUmj+tiFEbW4ibghwUdt/4gFg2aJyKb3/VQ10z5rz3XTQoOq4SiYDv0RJ0p9LQ2G3TYbxdslG4fsLv05syA7AhEcxO1q8F/z7/sAPxkOR96HcHyUah/zWG6loem2KGGQ2rlcfQZsSnm6rWnZ5GRBMkENzelih8r8eXOLfUoZw4qzBKhGYUZvrGGtEowUZ/UT4aKUBBRSkscvav6p7HfZRsYnQBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from HE1PR0402MB3497.eurprd04.prod.outlook.com (2603:10a6:7:83::14) by VI1PR0402MB3792.eurprd04.prod.outlook.com (2603:10a6:803:20::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.25; Wed, 2 Mar 2022 05:29:26 +0000 Received: from HE1PR0402MB3497.eurprd04.prod.outlook.com ([fe80::b110:cb51:e09f:bb05]) by HE1PR0402MB3497.eurprd04.prod.outlook.com ([fe80::b110:cb51:e09f:bb05%5]) with mapi id 15.20.5017.027; Wed, 2 Mar 2022 05:29:26 +0000 From: Geliang Tang To: Shuah Khan CC: Geliang Tang , linux-kselftest@vger.kernel.org, Kai Liu Subject: [PATCH v2] selftests: netfilter: fix a build error on openSUSE Date: Wed, 2 Mar 2022 13:29:13 +0800 Message-ID: <5ee95e93a11a239df8e09d059da25a4eaa5725ba.1646198836.git.geliang.tang@suse.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: HK2PR0302CA0014.apcprd03.prod.outlook.com (2603:1096:202::24) To HE1PR0402MB3497.eurprd04.prod.outlook.com (2603:10a6:7:83::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2e3bf3dd-81a8-43ba-43e7-08d9fc0d9dda X-MS-TrafficTypeDiagnostic: VI1PR0402MB3792:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QPq9dFmrVjmHc+JEcSWlB299Maah6mxRwDfmm/XSibMb6gKy6jvdffILXZfnwzxHjNJQzWVXUPK4zhhMuhpsG1227G+10JHP0Rx++zymTaJgwlrxR5LpXqFT+THEPbXSRhgfjAcbru6jbDRFX3Ls8ShMrRZ1X3mAonJzdkKBIonGSYi9u/f6cxLSuAAf9SZgoxoVyBVoC0jd3ic8B4CtnJW5LRXnyWqrvjkYGQ9mrHmQZoHjlzT3fPpYtpMvsoLCm/Ou6ifD6HOFkh86/xM0uSjuCHCbolnz491bP7GbFXRmLqvDMWfGgz7qnfRSfAZVoYq0RwVzMFdVdiAnfvV4cTISdDpftEBVTB/R0wuJL5w659xD+eWiRiPAFjbQ8NBekwuBQKL+98Qt5aT6QmbzoHKhUE42kS1j2VLeMdvKkaYUcs7+WYB4Uhq1JtsH2jef/S3SQDZKnvSLM+KU/3txYcCnLUSGGLu934wwnrHHoLDlR1VzSpaK+w4lUJI6LBGHpUagOIENNrccXrxt75IGyWw6wh3SpCXGkZedF+mNtMh/aYS9mupeaf8Dd7qOf4qph64eGidK82QSLSwgceelFVEk0oeR6wjKFCvvHq15JHQMqcI6jO4p2p9Qv5YjufnPlvbuDzgxh4nUPBSbyvQECw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0402MB3497.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(6486002)(186003)(2616005)(508600001)(36756003)(6666004)(6512007)(6506007)(107886003)(8676002)(54906003)(316002)(6916009)(5660300002)(2906002)(66556008)(38100700002)(66946007)(66476007)(4326008)(86362001)(8936002)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1/xatTwumiQ8y3NWaCPYtP45lmXY6c0TDf6HybmOS+qtfHZd11Scz9pX0Pt+5IaY8ah2cxD/ndidwPT2KYIU60BbfVF1KlrFmyPNMqwkG0oqmtRlL0QStUuUeBW9BdPsqzQzqfshLKrA5InN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S0zovGF1l73X5ajpOuyvQ85KwUqKXtPeiydJ9ejnjj0XY01BKjiisCE1lfpVEhmpWLEqI2xrJnBbFo6pym2/eg/z+aB1O8brn7i/I76BnNeQ6xMjgNusDO6IMX6gT8lBzB6lmRcHnzKD0yJyERaINwiYZvFev1Jj2VF/8DD9dMCnEMjQ3pDArtEESlqBG0gD8CjRFsze1Ypcr3RwHVCMU5jp3VqPSS/3DBO6GXnFubHahU/1nycNmGlD1EJu9SaEQ6H16qooODVpE1Ivsl0N3R5HPQ7Wz5dtW/uTVAJ0Q6dfCylSMw/4yvyivdfwQqjZAZC1q3OfXz9zeAfbwIScFmRBDJdjzP9uQlXXQGcIoytHNXomKER+J9NTqm8FvxLOOxbOrgEu703VTCtVpP5kB/75WIkDhhXNpAVUXLgz1HQN3bLKhkn91jqBIANhZOO+8vZb6I1eMj2xm76o1LoeW0h7MjcQOh/y8eeJr8N9Q1n0= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e3bf3dd-81a8-43ba-43e7-08d9fc0d9dda X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3497.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 05:29:26.5393 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lI2U+o3wvsxell+tg2HhQstrXKTy8haRkaOk+acIDayd0dwqDmVHYJhN73pg4daDV+u1hQFQv8AAel9tlcbPig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3792 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org This patch fixed the following build error on openSUSE Leap 15.3: ======================================================================= gcc nf-queue.c -lmnl -o tools/testing/selftests/netfilter/nf-queue nf-queue.c:13:10: fatal error: libmnl/libmnl.h: No such file or directory #include ^~~~~~~~~~~~~~~~~ compilation terminated. ======================================================================= It is because libmnl.h is put in the directory of "/usr/include/libmnl/libmnl/" on openSUSE, not "/usr/include/libmnl/": > rpm -ql libmnl-devel /usr/include/libmnl /usr/include/libmnl/libmnl /usr/include/libmnl/libmnl/libmnl.h /usr/lib64/libmnl.so /usr/lib64/pkgconfig/libmnl.pc Suggested-by: Kai Liu Signed-off-by: Geliang Tang Reviewed-by: Shuah Khan --- v2: - use pkg-config --- tools/testing/selftests/netfilter/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/netfilter/Makefile b/tools/testing/selftests/netfilter/Makefile index e4f845dd942b..8136c1fab7ab 100644 --- a/tools/testing/selftests/netfilter/Makefile +++ b/tools/testing/selftests/netfilter/Makefile @@ -8,6 +8,7 @@ TEST_PROGS := nft_trans_stress.sh nft_fib.sh nft_nat.sh bridge_brouter.sh \ ipip-conntrack-mtu.sh conntrack_tcp_unreplied.sh \ conntrack_vrf.sh nft_synproxy.sh +CFLAGS += $(shell pkg-config --cflags libmnl 2>/dev/null || echo "-I/usr/include/libmnl") LDLIBS = -lmnl TEST_GEN_FILES = nf-queue