From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0042.outbound.protection.outlook.com [104.47.38.42]) by dpdk.org (Postfix) with ESMTP id 49E4747CD for ; Mon, 20 Mar 2017 12:35:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TYa9kNLVivoROGqjL3YslvdF47Blg5rqCQBCvmeJ988=; b=YxHcsdQxqvph+OQA9PT2H2/d62I3sfLZHxXSDmSJHecQ18kpv7rz8yTI9wR2Lng4PhFfIh6/qvHjOpoiRMCpgXf1H1HTr0ATJpETmrGqvWNq6b/4EA7rvxVasJ0iy0A5YwCE8x01uXG+MzM/6IarTGp/TRn+9FGNPqokVgal7X4= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (106.200.203.54) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Mon, 20 Mar 2017 11:35:16 +0000 Date: Mon, 20 Mar 2017 17:04:58 +0530 From: Jerin Jacob To: Ferruh Yigit Cc: dev@dpdk.org Message-ID: <20170320113457.dxqj7ogu2mtxi432@localhost.localdomain> References: <20170320112208.7941-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170320112208.7941-1-ferruh.yigit@intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [106.200.203.54] X-ClientProxiedBy: BMXPR01CA0018.INDPRD01.PROD.OUTLOOK.COM (10.174.214.156) To BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) X-MS-Office365-Filtering-Correlation-Id: 3c6100a0-9694-47d3-16ee-08d46f852f1d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:rLzS5CxfeE0BQbKGofkCr1iANVZmHrqjTKtlmolRV2FehV69XVGPmmCoypNE8Eivx+IzKry8xTj9rgy3EZgwNvMgXn/GU2pSxqNvFBFc73UcRyDjZx3Rl/JQnec/Zu2pfuybn2gBZ+4J1jafKmoW0k0UUQGJUtPkhl/eni4Dc/E2iX47P87latNM2en7R7JnGZ6WVzWiNtFB0rOCCG+lICuXEq3CiFpGEscN7pU40E4B7nKrAfnTGQqaTy0XbiZH1zd+IFlUOew3oBkiMhI1mg==; 25:c1uq6Ql9s5ipqVACg/4TYYOg91mfeirm9yCE+o8LZ2BtFc6qjMESzYBIREAyk1z8cfD/JWYLtfZpSnC34lI7aEVfYZANCHQeu8OmnPZ8V5st9RXen6T2EAXWVFMDlX2tRaA0hh2t315ZDQLCIJFG/+1TSTD0L5KfseTa95LBYWPLWBonvNYo2o1dKtNkNem3941WhsoCJ6oHx2zXaind9QGOEdt0RPXyvNtguBV8MaUNLVZneibmED7lVNAEKumJrn94FXiVwgAa6eFSMI7yGrXZFa2UipSsLd9QOjs1asXHDpA9iKBnv/QIu5SWAywjEpspg4dEwf6dLgnpXyAWaMOUbzu7sppDfH8QoMO+2KHHvXnxnpAIhuOKYFRwCGQrfSzVYmu3ipa5V+TS8YNcsjDXzbxBn1834CLrT5u31BuTzUKKu+8gQgsiv/Zv8k8FHbcxZ85JQsGdLeoCREOSjw== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 31:ideNRhWwjeIQL5EFEpUQ/AwaG2BzCsACuXn0ODibsUj9VO4ySgp1JL85ij4wOmq00NyMoM/izGWFM68I6whmDe65QoTj/HpHY2LUrxiJy8C3ijTlGKRpE3bMud+f2wICdaNVGXmRJgSRODdH/woGITtrHU1r1FYqnfnrlnJ7UQo1xOo6E9iqaTdSN0UCWJ0OgoluV1m5ZlwRnWcAuxcvQtyvTChjp4aeOXaJFvXIgXc48c8FT8r3KV/2wbHYPdorbzNL9iTbIiLekR0cSYpsmg==; 20:K+naEPi3ixfOiB6gvPH0MvbVotZM1MTGTxXw/ZAXxIxL67XiCKtmx0Y3Y08KdUXr9Y/titT7CzLZPcMHSCA/LmKp0kch5pMqfZRoIkDgWfji5vKu+uxgsPdqlZkuoxnyjE826OY+TPERPURziZfmNIwlWQF4iDkvjfsC8cYbqccs7+MuiqAMhotI86XV5JT79GEgtdScAXtjejfrtLgLyvgEz6opLJIvgv73qWljre7C95Jk/ttlPQgUu6SP1FvzTFLmyZtpnwj+s0BfvmKzdOqW+bAvPGjhbCaGGRmqxPoLAK7EbswNk7gxI/7Yj96wdQcrvREv2TjKMJqcH1LZ5NEW0dxEXbD9XOUfaLOoT2YoAii56BPFsymiuKLPP61CYlNaM2RDq9YDUU+P8538sAJvufYjFYEXPJUYvHs4wptnN5xbZCK6FhAjGC2qWb47CR7p9ZSEMAqN9Iq0vZGvIvONmVnlKGe5Xr5JaRqfuGPLAaVDyHWXHB1PUW1CCAkWE4Rf8EfNUD8+utrd7UseDLLyTVUp6/dy9yFYeujCroqormCH8cRcVqFSfbt1W0jyzZyJCy76I6sSVz6m7i7ZapKjy+bC8jf7g1/o1sFk8IY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123558025)(20161123560025)(20161123562025)(6072148); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:pj0PS7PzkfIpK71XtSMI7tZImIj9FQ2pLg/h1NxOLf4Lo08gXrrMKyCclADuvodFDrso5CjXAPerSjYZKyezH/Tg+N0U091MmqPpUVdQ193SsyL1WHckK9rfNG/4KZLp4zThwklEYaQwoFuouxGIYT+AG9JvvmCn6ahsBUaX4Mut5Vshj5/jB9q5FHmXMj5F9NaPOB4yPg5bG76aQx9r0hRwkjDXgUh3OzS8gQsy20Uu9YGGfQlwFZ0DoBaUfKLWIrXv9+BHZHzbwDiQjTHHtYrNbooo2v1ELT2Z+4S1GPMxkr/NN3OagSxj48ebYCxDsXCS6uGbwwOQR7XTJTwDxB6CrmbCox8cmLIFml/0emdMZfEhZgb+UV5OwmZqC4Febjzem+PuqPg5q703NL8MpFYlUxEyhEZ+5K1lQfSbSyCW6LqSLe6w4iGrCi0wFBfcj94aFyuJ7SWcRC9idrnHkFn3TZQFnd3syF7OWJdrEwhUoBV1lg3+fm3Qz8NrXBGbupVr5QulZP11/9ha54uaGDAgwPOYdw+H2QBTL8sQHRe7kUVMDyaB4RTQqhcMCsniPx3S1YSk6tNyTvkoOLOuUvpsdl4ucKYCrzXuVh1yKuQpjbf19fT1dVo1YYAW7yoaU/PkTqq1oEhMtzFEezK0qA== X-Forefront-PRVS: 02524402D6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39830400002)(39450400003)(24454002)(6506006)(25786008)(2906002)(61506002)(55016002)(53936002)(1076002)(6116002)(83506001)(23676002)(5009440100003)(229853002)(42882006)(2950100002)(6666003)(6916009)(42186005)(66066001)(3846002)(9686003)(81166006)(7736002)(4001350100001)(8676002)(76176999)(305945005)(50986999)(54356999)(38730400002)(47776003)(4326008)(189998001)(33646002)(2870700001)(110136004)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTFQUjA3MDFNQjE3MjM7MjM6dytsR3NwdkdZSGJiYmFUNllHTmR3VmQ3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K2NCqJ9DS4g==; 5:C3rAuogrsLsFt1BRtk1LheaLZBnTWepSyfnwwvFuK9kaaaxUzlc4c/jC2MuQJ/zWcAwqW6VeNQcNy/6mFT5DeZPREkYU/lRv5b4LeZ5+IBjr4MF6XeUPbNngdC70yKDHFczo/5nbmG4rqCaEUngn3rAVrsrjwOHyKJLZJPM47pk=; 24:qVEFq6/m8A6Js4DdZhuetOfUj9SHSGoKoWQldFSp9/NtQQDubL4myKqRq2sE+9VgtYTKk5qmpmYGoSTszAO9NQ+o1xVJb/Th4lD4omxcnpU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 7:lbHrCkJ+jU9KwdBycLrCiIcEDOGd7GuqFPvduoe9J8Vnn4INvzDOQOFfmxABtHXBr6ozYiBGmV+JXfKqjapF+eVzqhki+OTTZVjumnw8knjsr1Fxg/jN+EhBQLouJwKMt3bIDZNdSFTgcH4BQlvg5jvN9BEVS3D5/MrRaAlXSCKuTV/X+QA2UF16RpfPEIocWtQv3LATxZqmh48QKZVjxXAkPlFWv3gaeiqvPpgB7tuSpY5VHOFw4KjBDoTlLyVUKrYV408Tebqe1ssLXkEbhTWWkTTZV7d3rWcj+BUDNlhb2iF3EHKrhCVtRX5mMXfOC3KxrWrb+l5u134plOzbUQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2017 11:35:16.5038 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: Re: [dpdk-dev] [PATCH] kni: fix build with kernel 4.11 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2017 11:35:19 -0000 On Mon, Mar 20, 2017 at 11:22:08AM +0000, Ferruh Yigit wrote: > compile error: > .../build/build/lib/librte_eal/linuxapp/kni/kni_net.c:124:6: > error: implicit declaration of function ‘signal_pending’ > [-Werror=implicit-function-declaration] > if (signal_pending(current) || ret_val <= 0) { > ^~~~~~~~~~~~~~ > > Linux 4.11 moves signal function declarations to its own header file: > Linux: 174cd4b1e5fb ("sched/headers: Prepare to move signal wakeup & > sigpending methods from into ") > > User new header file "linux/sched/signal.h" to fix build error. > > Reported-by: Jerin Jacob > Signed-off-by: Ferruh Yigit Tested-by: Jerin Jacob Kernel version: 4.11-rc3 > --- > lib/librte_eal/linuxapp/kni/compat.h | 6 ++++++ > lib/librte_eal/linuxapp/kni/kni_dev.h | 6 ++++++ > 2 files changed, 12 insertions(+) > > diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h > index 78da08e..d96275a 100644 > --- a/lib/librte_eal/linuxapp/kni/compat.h > +++ b/lib/librte_eal/linuxapp/kni/compat.h > @@ -2,6 +2,8 @@ > * Minimal wrappers to allow compiling kni on older kernels. > */ > > +#include > + > #ifndef RHEL_RELEASE_VERSION > #define RHEL_RELEASE_VERSION(a, b) (((a) << 8) + (b)) > #endif > @@ -67,3 +69,7 @@ > (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34))) > #undef NET_NAME_UNKNOWN > #endif > + > +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) > +#define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER > +#endif > diff --git a/lib/librte_eal/linuxapp/kni/kni_dev.h b/lib/librte_eal/linuxapp/kni/kni_dev.h > index 002e5fa..72385ab 100644 > --- a/lib/librte_eal/linuxapp/kni/kni_dev.h > +++ b/lib/librte_eal/linuxapp/kni/kni_dev.h > @@ -30,9 +30,15 @@ > #endif > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > +#include "compat.h" > + > #include > #include > +#ifdef HAVE_SIGNAL_FUNCTIONS_OWN_HEADER > +#include > +#else > #include > +#endif > #include > #include > #include > -- > 2.9.3 >