Received: by 10.223.164.221 with SMTP id h29csp2438829wrb; Thu, 2 Nov 2017 10:56:31 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R40xWq/NcPwIPTq2kvDgbJkewlETjmiEnHsydA83lB2Yo2eugZzG+Xxm5YDXsC/n/dgiEw X-Received: by 10.101.93.9 with SMTP id e9mr4301857pgr.302.1509645391621; Thu, 02 Nov 2017 10:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509645391; cv=none; d=google.com; s=arc-20160816; b=gSJ0EDm/B7zhotvgochT65PmkTwzuKqg5bP6cRtVH1mfbzCcniagZCXCUAdgGHEX4G 0Q0rOkL16TsKVHuV41+HCQCV/rFVKiGuXd3ClLQveJYMVj0m8YueOJObpuJtWzv24u1r tgoN/V7xtcfFurxZGEpaw6C7Ya9Re4ZcNnPz3YNYyk/v2AmUq4vhkyxHaGiR9Ct0kzoj WiF6xk0wT/xwqjKPTts7QaG3M0gfPW6gLU/P0lSHVa6FefZ//RSRMwO0koUd+zW76LrA roqNgSFE9hLciKhDfU1Xj8u/BJUG2H5L8ZmCSCHh/pr/jATypIWk0ecH3JeMOIvxm+Th nWYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:arc-authentication-results; bh=4mu6f3I7hdnNrIKH2wwJWJ3hWqgu1A/0yMk8FKTJK14=; b=DDpe4UauXF3XZoIvrmpcHMQCxRzw0cTfrY9Yn2ADDlCVgjMW1g9kNhdKRxMIV6IKSC +VKlgpAXUK0pvkLWN7UaWIaQ187LAf0ZQ0LDZK3C8BpC+6PmKD3m33Q9kFp5K989HzWr vyGfB3cdCEN+jAepmRLydanuV8Kj7dFuKX45+D+TKiasRGgbuuEdkJcxn9wUY07srTOf kImK0w0pzxsIIbPIBBQDCMJKxEfHdPRcvt6EvY8Tw2IMlGEI9JShrfVAopLg4Be8hN05 fUyzsTCvb0u0teGG8OIVhQ5ayfBD9hfAwxdlnvII199JkNRC53FZlpLCmN3vkPVZw0Ze ZNhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=hRlYFAxS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t125si4218662pgc.385.2017.11.02.10.56.18; Thu, 02 Nov 2017 10:56:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=hRlYFAxS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933748AbdKBRzg (ORCPT + 97 others); Thu, 2 Nov 2017 13:55:36 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:47176 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932716AbdKBRze (ORCPT ); Thu, 2 Nov 2017 13:55:34 -0400 Received: by mail-qt0-f193.google.com with SMTP id z50so426959qtj.4 for ; Thu, 02 Nov 2017 10:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=4mu6f3I7hdnNrIKH2wwJWJ3hWqgu1A/0yMk8FKTJK14=; b=hRlYFAxS+Qw1aT88+xS25afL8QrzRJpWMmqxJJvFro2dBd2wkWVgnqazaCMU+FodkN vc5wkcgm03rkwqs7iFPcmQ6cvKpHvCTMeHzcmcdcTAgSx+LoLy3+QhHP8EhSDurXOkN8 glHjz2EQ90dFoL8MZvvOPjA3ySMMwK85HYoTXMSenS+TRfPZTtOnchpjVC1vMAH8Fnsr VEchnq5hoOe5thgirhe/k3/qgUelzJBbLr/OURzCGHknOjLsEJcZaufsed4xktdfk3Ll c6VP0/9agSJBr85ffCngGgqTFG8joAcGg5gjeyTevSZKMJarJiaKq57VdejLO8kKotXX 4Blg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=4mu6f3I7hdnNrIKH2wwJWJ3hWqgu1A/0yMk8FKTJK14=; b=tgTx6v75p5arQ4R2o7gV7gMZt3RbQTj/xvDtdY0wGKIoNwPOCiRA5BrVlBxHSUAIKX tvuOT8rYLr0nZUvxG6YwjwAxFoD305VpDdSXKxFmwl9zQByI3PJfN4Ov8BnHg+AZu4KB dkpbWgq/BVrDSrYouhrtsmOMqhRQLsoqXQQdjztP+Z0LJz6bYFRCwnz5C9t4gqVShcnd 6wXqcnlWCTzG3uzzGCTQYf1AI9/CXcVuVrjRO1ZEYCco4MwgkZkB9yJCAcj9RCebI4Qo vQy7fH683KUBdWKDVD4hV/dIGZN9Cj/g+wQKTfy+nzsDpFPSLGC4dYqeyRMozi7Q+3QR Wq0w== X-Gm-Message-State: AMCzsaWai6OdvcBclxSXOxiA8Q3xPpfYOcBktplROz87oO4EYihZaWld YQQnIGiyc5EIWOfzdjHbGWwhaA== X-Received: by 10.200.8.148 with SMTP id v20mr6487933qth.33.1509645333899; Thu, 02 Nov 2017 10:55:33 -0700 (PDT) Received: from cakuba.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id r16sm2537815qtc.4.2017.11.02.10.55.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Nov 2017 10:55:33 -0700 (PDT) Date: Thu, 2 Nov 2017 10:55:30 -0700 From: Jakub Kicinski To: Arnd Bergmann Cc: Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Edward Cree , John Fastabend , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] [net-next] bpf: fix link error without CONFIG_NET Message-ID: <20171102105530.1997dd91@cakuba.netronome.com> In-Reply-To: <20171102110558.2746221-1-arnd@arndb.de> References: <20171102110558.2746221-1-arnd@arndb.de> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2 Nov 2017 12:05:51 +0100, Arnd Bergmann wrote: > I ran into this link error with the latest net-next plus linux-next > trees when networking is disabled: > > kernel/bpf/verifier.o:(.rodata+0x2958): undefined reference to `tc_cls_act_analyzer_ops' > kernel/bpf/verifier.o:(.rodata+0x2970): undefined reference to `xdp_analyzer_ops' > > It seems that the code was written to deal with varying contents of > the arrray, but the actual #ifdef was missing. Both tc_cls_act_analyzer_ops > and xdp_analyzer_ops are defined in the core networking code, so adding > a check for CONFIG_NET seems appropriate here, and I've verified this with > many randconfig builds > > Fixes: 4f9218aaf8a4 ("bpf: move knowledge about post-translation offsets out of verifier") > Signed-off-by: Arnd Bergmann Thanks Arnd! I was hoping to nuke this code before build bots catch up to me, didn't work out :) From 1582952273200643934@xxx Thu Nov 02 11:08:47 +0000 2017 X-GM-THRID: 1582952273200643934 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread