Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3434637pxb; Mon, 16 Nov 2020 14:50:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfLb2IOjjqV6OHg39fRIgl5m6RtmCyj/kst8eY+aI2yD1VB1QASjv+jlOJ8cx2GC710bAW X-Received: by 2002:aa7:d3c3:: with SMTP id o3mr18594482edr.319.1605567014804; Mon, 16 Nov 2020 14:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605567014; cv=none; d=google.com; s=arc-20160816; b=sTJq6mMkpmxj/6AECXPL0NLiL2pA8YQQev2TBFgLbQkAlulbbRFAuyK6da7qEKZSkV cG4By1DPQ8shZz3TeMZj1BTwNnRkMJDFpstzmCQr/Fx3BKj5D8wpTiQ6L3znFVBg2RPb MMgLHwAdnIXbx7euqngHEhW8+zPqWv3PbYVr4RlnEXuFQGDngTdXT3Fb4gnqW9qFNJ7Z xldlIV1rpfNRDuzR9pez3/vOXdH/O24wHhxUhWa5KV5TqQFhGLpFi4jQonEnFkxuKeDn jZQiiUDlVX71USN+0k9w4errtZKsdUGjNByr6zzMPBPsDgxS9ptxhKsImVmwyWK0zdeo JHcQ== 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=7IpcXVHeTBYT8USOupPyxcNDdXDsKJn0Vc/g3Vsna2E=; b=v+AcuLnNeYpBlLtCgVke3s3hFU7jT2ZUJLNlw8pwwWI1ZxZFTLmwtRavl2RIwBZ51E 20pmuQVO/xOJzvXpvS1FA6JoF1AljvqeJENY69Q2VGzWBdnxJHj+vKW8dyNeZLFFAV8n cS0Oa0Ka+u1htWqnH52mTi4IM641DP6UaCo69qDowjJEML8ky1lG0fjXMDBVaev7ssNr GbTWn7CZOUmkFRILdwNeTBBl8rY+ELjTXt5mu8oDA/kq8Ee0AP/M7x8bUUmJ9gEmw0Nj 8rCd6IQbgCyTLHgEJ0wMFgH/5XSW6nuNfSsiqIRaQ/0mzB3ajlj4DPBqi4CU9IJr2+jN nzAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lvAlyYhu; 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 i6si12452032ejo.223.2020.11.16.14.49.52; Mon, 16 Nov 2020 14:50:14 -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=lvAlyYhu; 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 S1728603AbgKPVVQ (ORCPT + 99 others); Mon, 16 Nov 2020 16:21:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726035AbgKPVVQ (ORCPT ); Mon, 16 Nov 2020 16:21:16 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5587AC0613CF; Mon, 16 Nov 2020 13:21:16 -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=7IpcXVHeTBYT8USOupPyxcNDdXDsKJn0Vc/g3Vsna2E=; b=lvAlyYhuPS8XuPLKcwEqw4h/Lk W2jM4Ibq8zLDIg1kBci01EjnwBvAi6aaYHcAtVcd8PalVcAJjqT+KkMi/umRu8Euk1rrs7iqGTWf+ CYJTPyjEJ3bhyvUkPSwSW79J9DzLLW/HHzNGqMwdI2Yx/kAf92g4jkvmvKmlBhgul333UwymFA1oJ 3CZROhxHLqiQCH5GLAKceOdJyOyLBlvZ1fa3pr/yr8TDENaDGtSpJFCK1T7M8hcJ1C+DaQH2BdcpG lO+gj/BGTg2c6kBQHz2YUPSKAXOy+JrKW8i0rB0q1CWAoZ1zp1bVhHQP00GpB2b/2fiuCjd5gacXN qwdtuELA==; Received: from [2601:1c0:6280:3f0::f32] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kelw0-0007T2-Ve; Mon, 16 Nov 2020 21:21:13 +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, Florian Westphal Subject: [PATCH net-next v5] net: linux/skbuff.h: combine SKB_EXTENSIONS + KCOV handling Date: Mon, 16 Nov 2020 13:21:08 -0800 Message-Id: <20201116212108.32465-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 SKB_EXTENSIONS 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 Cc: Florian Westphal --- v2: (as suggested by Matthieu Baerts ) drop an extraneous space in a comment; use CONFIG_SKB_EXTENSIONS instead of CONFIG_NET; v3, v4: dropped v5: drop a redundant IS_ENABLED(CONFIG_SKB_EXTENSIONS) in an enum; include/linux/skbuff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20201113.orig/include/linux/skbuff.h +++ linux-next-20201113/include/linux/skbuff.h @@ -4608,7 +4608,7 @@ static inline void skb_reset_redirect(st #endif } -#ifdef CONFIG_KCOV +#if IS_ENABLED(CONFIG_KCOV) && IS_ENABLED(CONFIG_SKB_EXTENSIONS) 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_SKB_EXTENSIONS */ #endif /* __KERNEL__ */ #endif /* _LINUX_SKBUFF_H */