Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753765AbeAKCfW (ORCPT + 1 other); Wed, 10 Jan 2018 21:35:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47726 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752978AbeAKCfV (ORCPT ); Wed, 10 Jan 2018 21:35:21 -0500 Subject: Re: [PATCH net-next V2 2/2] tuntap: XDP transmission To: Tariq Toukan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: mst@redhat.com, jbrouer@redhat.com, Jesper Dangaard Brouer References: <1515035668-6241-1-git-send-email-jasowang@redhat.com> <1515035668-6241-3-git-send-email-jasowang@redhat.com> From: Jason Wang Message-ID: <668445bc-5920-23a6-c59f-3b09e2c4fed1@redhat.com> Date: Thu, 11 Jan 2018 10:35:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 11 Jan 2018 02:35:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 2018年01月11日 00:11, Tariq Toukan wrote: >> +EXPORT_SYMBOL(tun_ptr_to_xdp); >> + > > Hi Jason, > I started getting the following compilation issues. > > + make -j24 -s > net/socket.o: In function `tun_xdp_to_ptr': > /images/autom/buildbot/worker/merge-net-next/build/./include/linux/if_tun.h:46: > multiple definition of `tun_xdp_to_ptr' > fs/compat_ioctl.o:/images/autom/buildbot/worker/merge-net-next/build/./include/linux/if_tun.h:46: > first defined here > net/socket.o: In function `tun_ptr_to_xdp': > /images/autom/buildbot/worker/merge-net-next/build/./include/linux/if_tun.h:50: > multiple definition of `tun_ptr_to_xdp' > fs/compat_ioctl.o:/images/autom/buildbot/worker/merge-net-next/build/./include/linux/if_tun.h:50: > first defined here > make: *** [vmlinux] Error 1 > > Seems you missed adding the following ifdef: > #if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE) > > Thanks, > Tariq My bad and sorry for that. It should have been fixed by https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=1125b008711581a8962ee028e2982d7757093600 Thanks