Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3910314imm; Mon, 11 Jun 2018 03:59:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLmFrtlTQkjOo4WxrQnmP8tWeY4WVPrqvu0URQ5wulY+zy6Euq+jGLQa3sKyIO9SYjOGrJ1 X-Received: by 2002:a63:7781:: with SMTP id s123-v6mr14602452pgc.117.1528714766631; Mon, 11 Jun 2018 03:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714766; cv=none; d=google.com; s=arc-20160816; b=MLY975hHfCsN1kOojM6ELyF/51RcrtEUKTJrKVj5zjpGWV6uOfXHoUnkxU/105pmvP DAwgsUWDGSe6MrGTlrg7aNRD913P/V4dEh77uIrClo9SaiogmbZ91ija0344HbH93mbR 4edHSnUQEdCa6NkMyLJ8XfKcNYD0JlBcu26FbDSa3idpP4uN+s2eS8+uZVE9rjjyM0IS oa6Q55FxGnc+ILSwnNETqLskY3ea9IDNrla9ahfs59DHZGqguS35pb/DOXvXNzf8P+6B bHEwOOheyOe71pDHDbRH9G4CRiuLvEXfhD4jJ9zgHWXTithQ5ufzk7ckViMM8T0f/+Lj A2+Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=sVtBbawQJsoUf2MPF+Sf0NW04mY7Yx11m0iwm5smsew=; b=tS0rRA8vRnSnKoLMuAGy2aPgoJ8K4AV7z8vnz+mN7xILUVrtfbhXI+CwbAEz8i8eJf s4YQYXNm1EA4vHt8DJ+YlfYgIPQlFRQST2bVPZkNBQ3WMQSF5WAaJlmARCPC7WHF9YT7 YBnY/U7w7WRGYY1O8h3lbAbbxlaZ99xgZSEwvYuCqrhGzDX5H29jDGpDLZkvkFr6lt6b b05YACYSL2UrhAqWFzDs7uysTni5EmDe5dJ9zGwjtSdnklBi/tymifPQ1wvNng0uXwTv pfVVqXShqGkjCeOpVphcKp7NIkuyXYjvM0tdn9Eg9fXyR80RCzlk+/OaQn7cKtIG7L3K I8jA== ARC-Authentication-Results: i=1; mx.google.com; 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 d18-v6si16870278pgp.214.2018.06.11.03.59.12; Mon, 11 Jun 2018 03:59:26 -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; 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 S932873AbeFKK6p (ORCPT + 99 others); Mon, 11 Jun 2018 06:58:45 -0400 Received: from www62.your-server.de ([213.133.104.62]:58002 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932765AbeFKK6o (ORCPT ); Mon, 11 Jun 2018 06:58:44 -0400 Received: from [188.63.75.139] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fSKX3-0007Vo-RE; Mon, 11 Jun 2018 12:58:41 +0200 Subject: Re: [PATCH v2] selftests: bpf: fix urandom_read build issue To: Anders Roxell , ast@kernel.org, ys114321@gmail.com, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20180608065127.28115-1-anders.roxell@linaro.org> From: Daniel Borkmann Message-ID: Date: Mon, 11 Jun 2018 12:58:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180608065127.28115-1-anders.roxell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24652/Mon Jun 11 06:34:15 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/08/2018 08:51 AM, Anders Roxell wrote: > gcc complains that urandom_read gets built twice. > > gcc -o tools/testing/selftests/bpf/urandom_read > -static urandom_read.c -Wl,--build-id > gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf > -I../../../../include/generated -I../../../include urandom_read.c > urandom_read -lcap -lelf -lrt -lpthread -o > tools/testing/selftests/bpf/urandom_read > gcc: fatal error: input file > ‘tools/testing/selftests/bpf/urandom_read’ is the > same as output file > compilation terminated. > ../lib.mk:110: recipe for target > 'tools/testing/selftests/bpf/urandom_read' failed > To fix this issue remove the urandom_read target and so target > TEST_CUSTOM_PROGS gets used. > > Fixes: 81f77fd0deeb ("bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID") > Signed-off-by: Anders Roxell > Acked-by: Yonghong Song Applied to bpf, thanks Anders!