Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2062674pxj; Sun, 13 Jun 2021 07:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP+t8T5E7fa8c0eVjKuZYyPY7XvfI3GR4f3BIpip8Bgms7AKSsUG6NcdBzWquz5pReI2qu X-Received: by 2002:a05:6402:419:: with SMTP id q25mr5342370edv.331.1623594540399; Sun, 13 Jun 2021 07:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623594540; cv=none; d=google.com; s=arc-20160816; b=TYclEK9qu4ysoIM34C7XrFXm4sQtkYTaVn7ZG7BGO87QE00krtIeV53B2aT5yME6YA nqfyNOp2FZa8fcsg90oVyQBl4t3FqtE+QFCW/g38Vgesn4pp1i74zFNt3uexjD3Qolk9 gfUuSUIx05OPmuiiYFSMH1veBPVk1Il7rO2tgy4KQ9+4GrmVwIG+hYCyPPp8LbBK1YlR MvAHKAcViv/QgTk8HzH2V6w2AJgxar4oP8jWgjklVe2uY9mnFFbGIJszpzemRNwvP8BZ 9O9fuPoMM+PugSX7jlWTnM7F+/3mdh6LQSRLhoIjNsGRukxAW/HtR4HpsKM/tcDVlV0z p7eQ== 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=i/pmRvqCvkeCEWIKZG7cJstZZzcv7OXelEyW4m/IORrbDM5f2oQulahzRow2nXXC17 w+EVUgzQ7cIyStXRcn2IZ6edB32RFG3PfnNw6msuoxSDg/SXJt7Ijhx6fDAmpX+TaZ6z 95rID7sSU/4gj6jyrX6qmFzJyQHJlkp9KhNwD9+DMpB7/NyJJ6DquYLbN8648M1Ppo3L aFIFXWwR4Nx8yuF0mgNDKLH2aT+UCpRNyg1Ett8txRGi8qMgJpp8jbCBsx4czBRGjE7r 4WJByL8pLQbYJHacfnvfo1p3WNJSuyQBv+vdLT+TVep6AAuC7n3evT1zCMfgYG0omkDJ 0pTQ== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 f26si10556661ejl.276.2021.06.13.07.28.37; Sun, 13 Jun 2021 07:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S231879AbhFMO2c (ORCPT + 99 others); Sun, 13 Jun 2021 10:28:32 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]:35653 "EHLO mail-qk1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbhFMO2c (ORCPT ); Sun, 13 Jun 2021 10:28:32 -0400 Received: by mail-qk1-f180.google.com with SMTP id g19so3254656qkk.2 for ; Sun, 13 Jun 2021 07:26: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=Zm/LbWwF6DAOtHGUe/YmdTaXY/dA95s8XRB6x10ZajyF2+mBQ4F3Ha3Z6F/O5f1BFA S3IzY/z34cIU+BcoE42GE1YG+Yu0wSdEQLNjYXf+T74eF/S49K9RQ/j1ozXakvUGPKeq Hfx4PyaVoSaqv03Coqw/TAKu/Mazah/yPVctrh0yt20+kJA64XRutXJCZaCXRqxXL5Th nW0xduuaYqgM7TP+eS65OP7F7qV0cKHAX8YC5WJUpop9ZKURO2G4nF4FU0rz84Lba72O Fq+iF0tPwYxH2oGJXF2UA1LR/b7IgxvNh0eMAFd4XGTva+IXhsH3FjsQCbYteFiVdRWl MQIQ== X-Gm-Message-State: AOAM533viGzM79VIeRvJE12z4VOOAhdE6Xn8cy6mPXxgI3pK35PJfcmT eCxh4hABAkfbTVB507s9ziWVeA== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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, -- 2.27.0