Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1795484ybk; Mon, 11 May 2020 04:34:31 -0700 (PDT) X-Google-Smtp-Source: APiQypKUZEKHXQ9swuPiKFAW4JdV71vXsrHhJjt5d7Kq64gkeBwLKXWozqXinyP1WSddS4/81w0X X-Received: by 2002:a17:907:9481:: with SMTP id dm1mr13483475ejc.268.1589196871277; Mon, 11 May 2020 04:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589196871; cv=none; d=google.com; s=arc-20160816; b=oSgW72AdrVW2ehLFwBa3lKSA8DaECnumWtjufUCS/8jZJJGym6qDdPWe6YxH3ZLnW4 TkBe7IV6PYWhO0whK/aE7EPUtXjc0L7/RsaEXr7JUgYuRg+AXUO2QFiylEhGr62bNl5s EcaUU6qIaCP3QxX315W15Q2m1ezC1bNtQJ18JGapWSVqQ/KbY2ZTJOGa8xHU1MCXpamX Ym4GM0gdg6QuPIJiW4sU7u6sUJ09ucUVycuR/DOxBKr78lnDEOo5eXkiuQtcDS6QTKM9 qRBzOAVzQ1t5HK56m4GTcxRYaLUQ3XBa8sw/nxymYYMieMEe18GtpG4ixqDz1g/iBrqn jsAw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hQUkEydOpp6BWEZjpv9SKHKYKamnTJBvfR8HfV65p3I=; b=tszU4M9QxbjVibYRYkjVDdWkSnDdl7KaHqLtaTLOYkrE6zNGsXyHb2VjBIIj17xhs4 B+YH89TdYFQOUp37sGLhxAZILQMHIRdjKR8s5QIxwocRyCSqNvrGozM6+YZHFU5y+pgh Zr6gYH1NUm68yAEfEdi+VvbKecKCWI33GwyEXPVsR48kpoESz8PMZrPoKzzZn+hQYC+J MxM9cRowuRE36kGJH/rfiml82Gq347w3L3LUtBRGvH+MQE8r2okcO+NmmAryR6NTWOD7 pBpH3IUt5w3zUqFdfWjvpNLApKM4XD4HI/sK14/JbXgQPhgsGM2oc51q4GriC4MxGYVY t+sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EDO5PDlE; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg16si5965243ejb.310.2020.05.11.04.34.07; Mon, 11 May 2020 04:34:31 -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=@redhat.com header.s=mimecast20190719 header.b=EDO5PDlE; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729641AbgEKLcn (ORCPT + 99 others); Mon, 11 May 2020 07:32:43 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:55804 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728776AbgEKLcl (ORCPT ); Mon, 11 May 2020 07:32:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589196760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hQUkEydOpp6BWEZjpv9SKHKYKamnTJBvfR8HfV65p3I=; b=EDO5PDlEgc1bPLhwB19nvgl8ml0KnuapWx2+XqyDYhtZ/6w0Vc+NdWD1gK1cVpm7lTYamY tiXvWy5oTfSJayUs3Gcw4M4wNCZnOHdVa87x4eWfavqoy/aVXTToxogobP+jtxHumOwqYT MOeL5XHkoB/gPYgS8S2W6Cj+57QkJtk= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-bIzEvCLFN2usiqVFLFNwvA-1; Mon, 11 May 2020 07:32:39 -0400 X-MC-Unique: bIzEvCLFN2usiqVFLFNwvA-1 Received: by mail-wr1-f69.google.com with SMTP id r14so4798984wrw.8 for ; Mon, 11 May 2020 04:32:38 -0700 (PDT) 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=hQUkEydOpp6BWEZjpv9SKHKYKamnTJBvfR8HfV65p3I=; b=c+kflRYB0XN2kwlzXhMKeNdWCRz0/7OqbjdcnpP1bLKrL+tWGjfdunXLeyup/okP9+ YJq+I/SgGfkfzcLqGJMV1ZPxx48V5Tz8bqJ4plJsVWJYIrOjic0hc4ZUDwBIBkX/hyad z2b9GBh2qG2Q0ZlaYLiq7lyjfFSXmAAyrrkOPQB4yl65GfJEjfRdFgjVMgFHcm+h4iMq iPOtx+U0/2RKRuFSfASg9xr+wT/+1YtwsqL1dq1zLzvBlErNZXAe6bypcG9J7bih7iXH b5fOzDdy0OKNYSVc1VozFUgYnKKIJ/O+UP0ryYBkI7GfD7a4e24Vvx04hj6snv9jXO3b AoDw== X-Gm-Message-State: AGi0PubFU7czy036fNC+3MOD9Qoq5ilry6M/NWVmTOkuZNiSbIYoE7zK 3aC/xU2A0g5E9hQ1Bjeean45VVz2NrcBZKPDKHpL8AJnHzK77RlwCCk82u6mnqF2UuwRFScR8wb SjaM8kD1lAflfW3xWn/mudSBW X-Received: by 2002:adf:f6c4:: with SMTP id y4mr19901703wrp.81.1589196757832; Mon, 11 May 2020 04:32:37 -0700 (PDT) X-Received: by 2002:adf:f6c4:: with SMTP id y4mr19901675wrp.81.1589196757643; Mon, 11 May 2020 04:32:37 -0700 (PDT) Received: from raver.teknoraver.net (net-2-44-90-75.cust.vodafonedsl.it. [2.44.90.75]) by smtp.gmail.com with ESMTPSA id e22sm1835043wrc.41.2020.05.11.04.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 04:32:36 -0700 (PDT) From: Matteo Croce To: bpf@vger.kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexei Starovoitov , Joe Stringer , Jakub Kicinski Subject: [PATCH bpf] samples: bpf: fix build error Date: Mon, 11 May 2020 13:32:34 +0200 Message-Id: <20200511113234.80722-1-mcroce@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC 10 is very strict about symbol clash, and lwt_len_hist_user contains a symbol which clashes with libbpf: /usr/bin/ld: samples/bpf/lwt_len_hist_user.o:(.bss+0x0): multiple definition of `bpf_log_buf'; samples/bpf/bpf_load.o:(.bss+0x8c0): first defined here collect2: error: ld returned 1 exit status bpf_log_buf here seems to be a leftover, so removing it. Signed-off-by: Matteo Croce --- samples/bpf/lwt_len_hist_user.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/bpf/lwt_len_hist_user.c b/samples/bpf/lwt_len_hist_user.c index 587b68b1f8dd..430a4b7e353e 100644 --- a/samples/bpf/lwt_len_hist_user.c +++ b/samples/bpf/lwt_len_hist_user.c @@ -15,8 +15,6 @@ #define MAX_INDEX 64 #define MAX_STARS 38 -char bpf_log_buf[BPF_LOG_BUF_SIZE]; - static void stars(char *str, long val, long max, int width) { int i; -- 2.26.2