Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp923436imu; Wed, 9 Jan 2019 08:34:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN4X37Q830HcWDtXSLckqv73zRv3ZvGBejtJTI0fv/X8BMV16Ba+IcCcuCAlCJJK1qOXnZ2o X-Received: by 2002:aa7:83c6:: with SMTP id j6mr6606982pfn.91.1547051660449; Wed, 09 Jan 2019 08:34:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547051660; cv=none; d=google.com; s=arc-20160816; b=BQ5U/EdzCFdjNxO6/YlJoKx96s3sXY1zP+mVu/QOAjqAof3T6TUomOb338mkpeBRj3 9z92kpLTUQlK43pvXbMHX2loXV995jM5CxpWW0ceO5Gp7la13sTK4MvlUILW+jVaFDx1 aK1rgif4zPovi8qERmLm6aGXHdRiPYQn4SZ/e7dY6nxE9pV+lbRyKdR4mxBO6XCFgD4O NXO/ffQSvfB2doCdU30wJ+hJ5xfh4utJsPwSyeOULqRCjD8PCjahRsEgHZwDukX3UDzV pt5bRxKVTGBgYF/jw2Dob1TnaBBkljoG/nW1TLinoT7yCaKxwlH0giiwcSsEOuc/aeK8 WMFg== 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; bh=fHIoyvJ6wOj03zsUc6yprgUWpK6Tykrcn6Wjy6B7AkY=; b=tAGl6zyoZSZFpPmgTWfJ8SzymyxO3NrMZ+G0A9pkEZdOxlweCkuu4HYKgqAjhmrNke 27vPfZ1dnNDGUjkAQYqUDdW+KtO/KjiOgXL5Mi/NRdqGmEdniVjUht3Ux2x5EHdGTMO9 +Rj5HX8tVIOCslM7YXt7p2A65oNtrrksa/nDP0/dasoeL1Kk3avqgzEapBetP1JHw/o9 s/cGVor7cjD5+HBa++FMs+3hfgLWo8O6QPrZrBVP/zthWT1n9e/LAFngXZa2ER3jUXRt ul2zMxtMXWVb36RWOsdOPzlKWSYU2cyJ7CezlTPE/dwi64GWbLGN05RWrYv88kEg0FmX MWbQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si1483230pgc.237.2019.01.09.08.34.04; Wed, 09 Jan 2019 08:34:20 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732297AbfAIP3N (ORCPT + 99 others); Wed, 9 Jan 2019 10:29:13 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:40699 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730774AbfAIP3N (ORCPT ); Wed, 9 Jan 2019 10:29:13 -0500 Received: by mail-qk1-f196.google.com with SMTP id y16so4614719qki.7 for ; Wed, 09 Jan 2019 07:29:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fHIoyvJ6wOj03zsUc6yprgUWpK6Tykrcn6Wjy6B7AkY=; b=evtKiFyg2cjneawnv5pJWIA/J47T7fYj3rOI6p94vl8N04o89LK41wbLg24F91Ybjq yHLBohmOVxHfeVKbelUYiJ+JZdK1fFKHutwJSHchQyaULFoSv3Nbleugpmpz/l/oBuTm TycYKF08v/UbcCWWZmTYtE4tZdfS9VPwNK4dBeNAbs0OrJslxhwNnNWuTZSMDVUJy6z6 1nJGD0jHjZ24P3lyXIL7b3v206udkjBN0P4PyRISenur62n+FtA+q7X0WhB5jlBn1tsr XKnkq969tgtZhor4P4a1tZc0pFwotHdDVzYOwBmRzwtAaPclbW98z0/Tw8JQbZB9QY7V 1uxw== X-Gm-Message-State: AJcUukfmo9a0M2K5kz/WNzvEFppSeYFNHnMePNGswSxbTjxGehewEklY 9GJta9A2X/G7uyr8Z1jEVizFWw== X-Received: by 2002:a37:b1c7:: with SMTP id a190mr5627883qkf.94.1547047751994; Wed, 09 Jan 2019 07:29:11 -0800 (PST) Received: from ?IPv6:2601:602:9800:dae6::814b? ([2601:602:9800:dae6::814b]) by smtp.gmail.com with ESMTPSA id r56sm38648890qtj.30.2019.01.09.07.29.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 07:29:11 -0800 (PST) Subject: Re: [PATCH] tools uapi asm: Update asm-generic/unistd.h To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Peter Zijlstra , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, Arnd Bergmann References: <20190108221758.14546-1-labbott@redhat.com> <20190109131540.GC25192@kernel.org> From: Laura Abbott Message-ID: <2be8f051-1430-77d6-413c-2edaad4c1346@redhat.com> Date: Wed, 9 Jan 2019 07:29:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190109131540.GC25192@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/9/19 5:15 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 08, 2019 at 02:17:58PM -0800, Laura Abbott escreveu: >> Commit 4e21565b7fd4 ("asm-generic: add kexec_file_load system >> call to unistd.h") added the system call to the generic header >> but not to the perf copy resulting a compile failure on aarch64 > > Humm, that shouldn't happen, i.e. kernel developers don't have to update > anything in tools/ as part of their normal kernel development workflows. > > They can if they wish, but are not required, so the build failure was > due to something else or a pre-existing bug where tools/ living stuff > used things outside tools/. > I think that's the issue, I couldn't reproduce the issue until I installed the 5.0-rc1 headers. This is the invocation of the script (paths trimmed) /tools/perf/arch/arm64/entry/syscalls//mksyscalltbl' 'gcc' 'gcc' /tools /tools/arch/arm64/include/uapi/asm/unistd.h > arch/arm64/include/generated/asm/syscalls.c In tools/perf/arch/arm64/entry/syscalls/mksyscalltbl, $hostcc -I $incpath/include/uapi -o $create_table_exe -x c - This was the gcc command that was failing. tools/arch/arm64/include/uapi/asm/unistd.h includes asm-generic/unistd.h so I think that's what's leaking from the system. >> When running mksyscalltbl > > Lemme try this on my Orangi PI zero... > > - Arnaldo > >> BUILDSTDERR: : In function 'main': >> BUILDSTDERR: :273:44: error: '__NR_kexec_file_load' undeclared (first use in this function) >> BUILDSTDERR: :273:44: note: each undeclared identifier is reported only once for each function it appears in >> >> Fix this by syncing up. >> >> Fixes: 4e21565b7fd4 ("asm-generic: add kexec_file_load system call to unistd.h") >> Signed-off-by: Laura Abbott >> --- >> Found this on Fedora when compiling 5.0-rc1, I hadn't seen a patch >> queued yet. >> --- >> tools/include/uapi/asm-generic/unistd.h | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/tools/include/uapi/asm-generic/unistd.h b/tools/include/uapi/asm-generic/unistd.h >> index c7f3321fbe43..d90127298f12 100644 >> --- a/tools/include/uapi/asm-generic/unistd.h >> +++ b/tools/include/uapi/asm-generic/unistd.h >> @@ -738,9 +738,11 @@ __SYSCALL(__NR_statx, sys_statx) >> __SC_COMP(__NR_io_pgetevents, sys_io_pgetevents, compat_sys_io_pgetevents) >> #define __NR_rseq 293 >> __SYSCALL(__NR_rseq, sys_rseq) >> +#define __NR_kexec_file_load 294 >> +__SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) >> >> #undef __NR_syscalls >> -#define __NR_syscalls 294 >> +#define __NR_syscalls 295 >> >> /* >> * 32 bit systems traditionally used different >> -- >> 2.20.1 >