Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp249708ybi; Wed, 29 May 2019 20:38:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBJsTTP80c22wqKHf88IA2hI5RHnuv9gOZy+C1qm6ITtkPr3kQHal+KBKS/t3VJzVEcQsm X-Received: by 2002:a63:fb45:: with SMTP id w5mr1631896pgj.397.1559187490132; Wed, 29 May 2019 20:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559187490; cv=none; d=google.com; s=arc-20160816; b=v0aIJAes3ZJxjjtXoO0pPijHc41xInmosUwjJcaq2boc5eNozz1hnotokFBO0/YX/S uiUlUGzrW4KH7rLzkxxkgfKS/5ElDQ/kkYGJcrXWovmlNuy+TmGmggUjk6gd666pXBw9 bD0Rb8C1GgWeLJN4uIZSD7yye0dvxrrFFXoeT4XJ0U0h8q2dATNklJvdSAPz9UsxNnUV yrJZ1Hpcdp7vewPB3+nQHC6j+G+OfbG0bQfz4XThOdaonyYIftVcrNjcLDHvTz+j2ldL 3zegVb4IU8RwF155DPsjlwE+B5p29ZLPBHiYR3nYvvzxveh2WUV215a7egr088oEKE0E UO4A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WXxU0+qbWaOYpIwhVihxza/WZwJuyPOR/qb6RH+abT0=; b=tmG9kEhuu7iU+VCxK2WCe8aqLFotZC4qPXSU55myRcftOq1fXxHFAjJAVQ1dZUk75E 1jwbTBFdSaJKNPqDMk3wIxQDfqUrQEjlhYubZ5es7/LiiYqkjVu9tQ/QaPMSNIZmR/kW kjiqXHL2NbqDdBuKACmj+5tlRa0bkCDdxxcCFPOKynlPLZTtncRIHR6uloMeU9MC5k3f 5jomR8Jj6BqQFSkXRRXOB+EmJNgvsGPDklTE+JqZTV1jfVC9pZyRlA4gMt3nwcq0lRIK YxdoH2+TXfI1p2fvG2nISbUQ6jWvUZ7PAgg2uYXXiZgVIJ2Mw9T1biV9kNa2+Osc8JHc XQVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0T5heefg; 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 j14si2041838pfh.232.2019.05.29.20.37.54; Wed, 29 May 2019 20:38:10 -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=@kernel.org header.s=default header.b=0T5heefg; 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 S2387664AbfE3D0J (ORCPT + 99 others); Wed, 29 May 2019 23:26:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:52610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731714AbfE3DSs (ORCPT ); Wed, 29 May 2019 23:18:48 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 56A86247F3; Thu, 30 May 2019 03:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186327; bh=48QWxyRbS6OIC0nyUfFd69jYM1HcEg4sAJ2IE52vsMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0T5heefgHir4HAT65IuWKHfen01CBTCpRVL8ghm5v3o6c+ZT9/FK4eoJHTVkWxJBF dv7rharekN6EqWJDPyaWKdHKwmnc0DG7GauHdt/iDnqbPCzGvpuwf0xZWyoyMDrYS2 LpeyghN+RXOrDLTKOQ8wyN7jHFZOLUbzqpKztW/o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vineet Gupta , Yonghong Song , Alexei Starovoitov , Sasha Levin Subject: [PATCH 4.14 042/193] tools/bpf: fix perf build error with uClibc (seen on ARC) Date: Wed, 29 May 2019 20:04:56 -0700 Message-Id: <20190530030455.429601103@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030446.953835040@linuxfoundation.org> References: <20190530030446.953835040@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit ca31ca8247e2d3807ff5fa1d1760616a2292001c ] When build perf for ARC recently, there was a build failure due to lack of __NR_bpf. | Auto-detecting system features: | | ... get_cpuid: [ OFF ] | ... bpf: [ on ] | | # error __NR_bpf not defined. libbpf does not support your arch. ^~~~~ | bpf.c: In function 'sys_bpf': | bpf.c:66:17: error: '__NR_bpf' undeclared (first use in this function) | return syscall(__NR_bpf, cmd, attr, size); | ^~~~~~~~ | sys_bpf Signed-off-by: Vineet Gupta Acked-by: Yonghong Song Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- tools/lib/bpf/bpf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index 1d6907d379c99..976b28137d836 100644 --- a/tools/lib/bpf/bpf.c +++ b/tools/lib/bpf/bpf.c @@ -41,6 +41,8 @@ # define __NR_bpf 349 # elif defined(__s390__) # define __NR_bpf 351 +# elif defined(__arc__) +# define __NR_bpf 280 # else # error __NR_bpf not defined. libbpf does not support your arch. # endif -- 2.20.1