From patchwork Sun Jun 13 14:25:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 459553 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp2551311jae; Sun, 13 Jun 2021 07:26:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEGTGJjfI7LjuNE/NReOx+ukDavtiMP/8Z+y9N7fuZwBN1i3bh975H5+6MtjfpI1WvwgY1 X-Received: by 2002:aa7:d34a:: with SMTP id m10mr12979517edr.57.1623594391499; Sun, 13 Jun 2021 07:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623594391; cv=none; d=google.com; s=arc-20160816; b=GqSYviJpAUdrG/KRVpmNZ19Feft3ata2Op0Cjn81wSyLps4yG+d4nQ10iE10qJwHGz GllnU6WO+jkGIW6rErnhlk52pfW1Gi5BkyBSM5wpN404//HhUFt0Dq1Y8oRk1a51i4Ag f4ocEJbETGcmLczfCuxyQ4XqXePQhald8cueIMbKc/etmnX4i8FcjrdiwSStc1+u3C28 xhadNfm8EH0dLfAHorVUSnhdUPgg3kRqbok7mlHqv8mbsGny6eSEfAwA96lQYlCRW8QN wY68VQQez+/5y9/s1FJ8sBUsc73UUvcbnQNyFPLNaZGEVfYNvg9It+Nmuw+N/bA85mTD PO/g== 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=eGlbIuvyPrFNLTch5ZKTb6/OjYTk+PwqYaQbu3V8zPQ=; b=jOwNfsi8HrhXAYZ8EQCDrNSvP1QyBZdFDNRa3d7K9F+a80j7HWbW+D3wxYzk+yI4FU J1sfZlNHI8bhyRpyTzRNdZ0HI4geNW035f/+PEDeasH7QSLuN71j6KZHI0BplC74br8+ 8z+ycNlaB1YtlDDbEdZIumplISwBRDEvGTeHnmjID88c7VUw9SEYFRzeLI8AkoynmDPT oDzARGkTit89+Vdhk/fCiu7dBcF8ckS9+Q989QYHzM2FR8zW4Dcf06MTORw5zQOcFxQW p49ZqlDGayydC3e5iS4FhFAud02nuLV1emXt8IhNgB7fF8CAbRj2QY596Y9iPlvdHef3 Wjhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqaRvE8j; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si8882758ejl.205.2021.06.13.07.26.31; Sun, 13 Jun 2021 07:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqaRvE8j; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbhFMO1q (ORCPT + 8 others); Sun, 13 Jun 2021 10:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbhFMO1p (ORCPT ); Sun, 13 Jun 2021 10:27:45 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1AD8C061574 for ; Sun, 13 Jun 2021 07:25:31 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id i68so32443551qke.3 for ; Sun, 13 Jun 2021 07:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eGlbIuvyPrFNLTch5ZKTb6/OjYTk+PwqYaQbu3V8zPQ=; b=oqaRvE8jB+7n1H4nBHIMCTj2LiwFRUly4eylqaqfiSyyh543eVzrJJFv6MG8G4WE5W y69rUuXgFAUGQMyMyWaCnDYQv7gfXV28v+sbDKuKRvcMDGcjyHW8oTkwulrp8DQ6kfy/ Yb74BWN6hyGYjzSs7g+yhu4PUyE+eJYV896ZWAZfVEUra0cFelqOuGcqgpxOVqkLMXCS st2bZRd81/o1X7OasCDE7Je+CIkXxadJYZwwM/fXIV8z3MIMcWAQUeBjljMMKIbV1bTL gFvFmPwAW1FNW9DGkYh5MeGNvKKNcZitdyqBb6eiKu9ky+k5Ovhvz0PMQAybU2Js8cJC szeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eGlbIuvyPrFNLTch5ZKTb6/OjYTk+PwqYaQbu3V8zPQ=; b=KedjDpqzIxtn17d5Xpl8ZHZ/SF0Xm6vNA42PTxU8Gio4vOkkw7YMk2GKtGMyDwyZZg Vk/i1BGoNaXvb7TWbFu2oZaQm+C4BEGHJ6ffnhFocJnGQgGr8O2ZYOuDPZ9D00uhjAhR G85xdU5Tj4IhZuUNLs3dkje5dlLHXOE7oXHIfOQsN5NZrqdq71tlCdb/GSZjf7c+XHXZ gMWE6wY2TsvqPkg1SdO0uWBuEkq0dIP6LdL87Z1ZKST9c7rjX2qzaVWDBQkqrucmQ5cr U2DEQwdH6GyRwBtaDxus5VEHO9e2OLns8xuYJHvKMIzCQcFs6UqAaAyK4+PM2sjcHmFl x40A== X-Gm-Message-State: AOAM531zydyFQvsDzAB/ruFGapAP07fW06RiQo9YEbuIB8S4aotXJyiB u+Oj9T4FXS0gmBO23fswcA8645EmYcqXbhKa X-Received: by 2002:a37:a095:: with SMTP id j143mr12310329qke.68.1623594330603; Sun, 13 Jun 2021 07:25:30 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id z3sm8382706qkj.40.2021.06.13.07.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 07:25:30 -0700 (PDT) From: Alex Elder To: subashab@codeaurora.org, stranche@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: lkp@intel.com, bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 1/1] net: qualcomm: rmnet: always expose a few functions Date: Sun, 13 Jun 2021 09:25:22 -0500 Message-Id: <20210613142522.3585441-1-elder@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A recent change tidied up some conditional code, avoiding the use of some #ifdefs. Unfortunately, if CONFIG_IPV6 was not enabled, it meant that two functions were referenced but never defined. The easiest fix is to just define stubs for these functions if CONFIG_IPV6 is not defined. This will soon be simplified further by some other development in the works... Reported-by: kernel test robot Fixes: 75db5b07f8c39 ("net: qualcomm: rmnet: eliminate some ifdefs") Signed-off-by: Alex Elder --- v2: Rebased on current net-next/master; this fixes a bug there. .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.27.0 diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c index a6ce22f60a00c..39fba3a347fa6 100644 --- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c +++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c @@ -153,6 +153,14 @@ rmnet_map_ipv6_dl_csum_trailer(struct sk_buff *skb, priv->stats.csum_ok++; return 0; } +#else +static int +rmnet_map_ipv6_dl_csum_trailer(struct sk_buff *skb, + struct rmnet_map_dl_csum_trailer *csum_trailer, + struct rmnet_priv *priv) +{ + return 0; +} #endif static void rmnet_map_complement_ipv4_txporthdr_csum_field(void *iphdr) @@ -223,6 +231,13 @@ rmnet_map_ipv6_ul_csum_header(struct ipv6hdr *ipv6hdr, rmnet_map_complement_ipv6_txporthdr_csum_field(ipv6hdr); } +#else +static void +rmnet_map_ipv6_ul_csum_header(void *ip6hdr, + struct rmnet_map_ul_csum_header *ul_header, + struct sk_buff *skb) +{ +} #endif static void rmnet_map_v5_checksum_uplink_packet(struct sk_buff *skb,