From patchwork Mon May 26 09:22:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 30926 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 069FB20491 for ; Mon, 26 May 2014 09:25:16 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hn18sf11127330igb.0 for ; Mon, 26 May 2014 02:25:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=sCDvn9f1cubhPz/9WI2N1hlZiVYBFvy2QUiArcHsZVY=; b=HcVGP99cMJQtsD0I/IniJlLH+FMBx1gyXLz3IjiQ/iU0cHiT84X2TcsOAjpUfwT/8I yHmV1O6Yupo5UgInoy7fgM7aXfjrj+2nM67fJyYqCmpl8dkNMDvDJDIWCnejXgAOq341 w4CIGK2/UyWCEi7mnDzB2ZQGrMXXbKeBwIXvNu1BzxbLuaaAdr69Z8Kkh+gweXKR65o9 gWy83V0Q2XJrdGSf52QOw/H8uQCasGB0J4Ek+uyAbKUpotNapGM54zjfX9HZF5XRQJ5o hGzA4AGQfksFeuhf13vob/Z/Dd86l1o4ALUYWBJ6jJRlzZVcwO9rth5msPguLHjtGkyb s9Dw== X-Gm-Message-State: ALoCoQmBmPjL2GiYj5VB4GIbD8AgRYEklzuTGR16i2eJyrbyFcDztn6D/2PLrfjbKDfCs5bUytrK X-Received: by 10.182.176.8 with SMTP id ce8mr10187407obc.7.1401096316554; Mon, 26 May 2014 02:25:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.7 with SMTP id 7ls2664212qgo.60.gmail; Mon, 26 May 2014 02:25:16 -0700 (PDT) X-Received: by 10.58.85.65 with SMTP id f1mr20987012vez.20.1401096316424; Mon, 26 May 2014 02:25:16 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id aq10si5964645vdd.28.2014.05.26.02.25.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 May 2014 02:25:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id pa12so9060858veb.32 for ; Mon, 26 May 2014 02:25:16 -0700 (PDT) X-Received: by 10.58.106.104 with SMTP id gt8mr5736564veb.46.1401096316320; Mon, 26 May 2014 02:25:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp29752vcb; Mon, 26 May 2014 02:25:15 -0700 (PDT) X-Received: by 10.68.174.33 with SMTP id bp1mr26749393pbc.74.1401096315555; Mon, 26 May 2014 02:25:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gh1si14035555pac.147.2014.05.26.02.25.15; Mon, 26 May 2014 02:25:15 -0700 (PDT) Received-SPF: none (google.com: netdev-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751885AbaEZJZJ (ORCPT + 3 others); Mon, 26 May 2014 05:25:09 -0400 Received: from mail-pb0-f50.google.com ([209.85.160.50]:65098 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbaEZJZI (ORCPT ); Mon, 26 May 2014 05:25:08 -0400 Received: by mail-pb0-f50.google.com with SMTP id ma3so7429456pbc.23 for ; Mon, 26 May 2014 02:25:07 -0700 (PDT) X-Received: by 10.66.122.6 with SMTP id lo6mr11209492pab.138.1401096307358; Mon, 26 May 2014 02:25:07 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id or4sm17286181pbb.17.2014.05.26.02.25.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 May 2014 02:25:06 -0700 (PDT) From: Sachin Kamat To: netdev@vger.kernel.org Cc: davem@davemloft.net, ezequiel.garcia@free-electrons.com, sachin.kamat@linaro.org Subject: [PATCH 1/1] net: tso: Export symbols for modular build Date: Mon, 26 May 2014 14:52:46 +0530 Message-Id: <1401096166-5409-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: netdev-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: netdev@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Export the symbols to fix the below errors when built as modules: ERROR: "tso_build_data" [drivers/net/ethernet/marvell/mvneta.ko] undefined! ERROR: "tso_build_hdr" [drivers/net/ethernet/marvell/mvneta.ko] undefined! ERROR: "tso_start" [drivers/net/ethernet/marvell/mvneta.ko] undefined! ERROR: "tso_count_descs" [drivers/net/ethernet/marvell/mvneta.ko] undefined! ERROR: "tso_build_data" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! ERROR: "tso_build_hdr" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! ERROR: "tso_start" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! ERROR: "tso_count_descs" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! Signed-off-by: Sachin Kamat Acked-by: Ezequiel Garcia --- net/core/tso.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/core/tso.c b/net/core/tso.c index 097821dd3a8c..8c3203c585b0 100644 --- a/net/core/tso.c +++ b/net/core/tso.c @@ -1,3 +1,4 @@ +#include #include #include @@ -7,6 +8,7 @@ int tso_count_descs(struct sk_buff *skb) /* The Marvell Way */ return skb_shinfo(skb)->gso_segs * 2 + skb_shinfo(skb)->nr_frags; } +EXPORT_SYMBOL(tso_count_descs); void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso, int size, bool is_last) @@ -31,6 +33,7 @@ void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso, tcph->rst = 0; } } +EXPORT_SYMBOL(tso_build_hdr); void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size) { @@ -48,6 +51,7 @@ void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size) tso->next_frag_idx++; } } +EXPORT_SYMBOL(tso_build_data); void tso_start(struct sk_buff *skb, struct tso_t *tso) { @@ -70,3 +74,4 @@ void tso_start(struct sk_buff *skb, struct tso_t *tso) tso->next_frag_idx++; } } +EXPORT_SYMBOL(tso_start);