Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1578530pxb; Fri, 13 Nov 2020 17:13:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhLaEvexzKKwztmN4qw1DQM743VHWKa0RqDHMPeFml2A9bKpFZPFCqKAMvkGIvingei8CD X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr4649537eji.220.1605316434772; Fri, 13 Nov 2020 17:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605316434; cv=none; d=google.com; s=arc-20160816; b=ueCe0QZUs16E4BrJ9mAvDeJQPE9PjfhEAvUW5o4I6WrwbG6Uxvs9fK5k5klhT4pWnA BBgVlmSrES6sd7uPvydOvTiRFuevR5B/vYCSNyoWuZMQT2KZRYiSxlvIo9Yy7EvV5BFB Ic4AktGnTK+FBOgtMLyN7LwEvQbrhNdMlJg2pYWegQRc9iurI/e/ixA7+qVm8aZiR4YU MogpbbNAlkYsBp2DfAzU1aIvOi8+iODSkh1KUghqOJztM9gHlwjp0tnocFyetS/UaYfG /bShEvnNZvxAm773djkfLux2Nb+lclM5LLJj7Nuof9UTM99LLBMrQstgwao0ZuA5asRi 6LxA== 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=KyvIJI3NYsbSLBCCLSp/r5FozbXe6DUDrCSrMc6HNfY=; b=hx3Lz+WTPUfLrVWMIAR4K8GBPY2JPW047/eHOZBtETWq+/RRwDT2GjMmBZhzaaXqXj rwJ4Lq/eE9Ud27cIKDXmEVdgNsUDL9MLBkqIH9B7i7NOUVyYSJqbvlBA1FpdcHaC33t8 ++FDojFsI9lL0GWWJcpqQltodq+QfH/rgBR/KQUVzTDRF3oz9L033Ao6juSxFaaDhk9n 46jX74fGcvtKYT4ttsHlKMg4KPAOQLJlrU/gMDELmjXBS74oQkkbaRQku/Zz5D5SPTVd CRbJLE5ZLNQZElJpJ0svi87jUhO5pQpN4rC7C5fq0kDp/rk1Dz3mw91PSQMZZ+8jXH7K XgMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kBmQ2iLC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss9si7714397ejb.404.2020.11.13.17.13.32; Fri, 13 Nov 2020 17:13:54 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=kBmQ2iLC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726353AbgKNBLT (ORCPT + 99 others); Fri, 13 Nov 2020 20:11:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgKNBLT (ORCPT ); Fri, 13 Nov 2020 20:11:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A5DBC0613D1; Fri, 13 Nov 2020 17:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=KyvIJI3NYsbSLBCCLSp/r5FozbXe6DUDrCSrMc6HNfY=; b=kBmQ2iLCQrKZ/8pOBocGDz84VH GUwhykQprA6NUyuweh5WtmMpBae3Be9kd6yyqmLDhERoBScl+D20do+PaSjieyto9VscalqvMrloo LfPYFompuHjsvP85yGLIvgTMwLblI964WgFehPSq46MH3dwwdZv2gVtbVUntkwB8j2Rgcw9kOhitX DygHK/kJMqKslzPAquRdifbMEf2Wd46JCKKbHEXgimVNUPY8mJVZka/lLjZX5giV4T81fuKbHMC7W ro5WSPBlxQpexgMROTNamSOlaL5lbiEUYMC1/82HkTIZXk5uM3GVwirKWYQ+8Rtnz2w+N7Z0al7gm VWns5VDg==; Received: from [2601:1c0:6280:3f0::662d] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdk60-0001pd-2b; Sat, 14 Nov 2020 01:11:16 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Aleksandr Nogikh , Willem de Bruijn , Jakub Kicinski , linux-next@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH net-next] net: linux/skbuff.h: combine NET + KCOV handling Date: Fri, 13 Nov 2020 17:11:10 -0800 Message-Id: <20201114011110.21906-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The previous Kconfig patch led to some other build errors as reported by the 0day bot and my own overnight build testing. These are all in when KCOV is enabled but NET is not enabled, so fix those by combining those conditions in the header file. Fixes: 6370cc3bbd8a ("net: add kcov handle to skb extensions") Fixes: 85ce50d337d1 ("net: kcov: don't select SKB_EXTENSIONS when there is no NET") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Aleksandr Nogikh Cc: Willem de Bruijn Cc: Jakub Kicinski Cc: linux-next@vger.kernel.org Cc: netdev@vger.kernel.org --- include/linux/skbuff.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-next-20201113.orig/include/linux/skbuff.h +++ linux-next-20201113/include/linux/skbuff.h @@ -4151,7 +4151,7 @@ enum skb_ext_id { #if IS_ENABLED(CONFIG_MPTCP) SKB_EXT_MPTCP, #endif -#if IS_ENABLED(CONFIG_KCOV) +#if IS_ENABLED(CONFIG_KCOV) && IS_ENABLED(CONFIG_NET) SKB_EXT_KCOV_HANDLE, #endif SKB_EXT_NUM, /* must be last */ @@ -4608,7 +4608,7 @@ static inline void skb_reset_redirect(st #endif } -#ifdef CONFIG_KCOV +#if IS_ENABLED(CONFIG_KCOV) && IS_ENABLED(CONFIG_NET) static inline void skb_set_kcov_handle(struct sk_buff *skb, const u64 kcov_handle) { @@ -4636,7 +4636,7 @@ static inline u64 skb_get_kcov_handle(st static inline void skb_set_kcov_handle(struct sk_buff *skb, const u64 kcov_handle) { } static inline u64 skb_get_kcov_handle(struct sk_buff *skb) { return 0; } -#endif /* CONFIG_KCOV */ +#endif /* CONFIG_KCOV && CONFIG_NET */ #endif /* __KERNEL__ */ #endif /* _LINUX_SKBUFF_H */