Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3764388rwb; Mon, 16 Jan 2023 12:37:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtc21TWRYrrzgVzHmmM+3HbmPbAvFNElfcaw/PEkZ6duZ2FXW1swcn01bMuRQOmhmRe+8Yu X-Received: by 2002:a05:6402:b8a:b0:47e:eb84:c598 with SMTP id cf10-20020a0564020b8a00b0047eeb84c598mr9881698edb.30.1673901428121; Mon, 16 Jan 2023 12:37:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673901428; cv=none; d=google.com; s=arc-20160816; b=k7S1CaeCbbAfHsypY9UuK+gZJ8YzcfxepzY1+mSQYJtQphWjiOcors5XoCiygRGWbq SR+PaSJ7ySZA0LfD/bYOQSDXELy3p/hjaZ0Q7wtbhWTvygTL4O1T0F5dgFvr6cCnll4k Bj2jtr1iVel0H1754vgTZSbZpTasLBcnN7DEYsV8CisEX2NAw6Lfy7M/RmBNK9V8e8yB uHGsNeeN6R7oJLC0qla7Be5UH86llTbOAxG6YWt0/fULKx/SeMkJq2VfCc7vzVJyFNPO ZkhGZYKkLe/R7tFoBisvyAOfkLOe54FlsAwEFkV7ev5U/tCLasYrsZkqDPg0XGgt+78l +v/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=g5z/UsvxoAHDPOxxgaZCWV5EmXrPSSoPnJvAdNMrCiQ=; b=ymx+X3kY/qbReIO6zt6T9VYB+POoDyOBqqXC9YDkxcnwmY8/93SbF99M2haDc6YQvS Xw0AeVUBQAk/QFuE+5qo+KMcmAcaGu1XHX7dTE47q8toUB7qTiyHFozFANeyK0koaUjI M1OLg7itI7goEtN3l4FoVWC+fS+dA88x/knij9Kqt5KkMzoj/WE6fGOjtznpM0vW8/yx n7GUBjvQo4TfYKG08h/3WGEuaw7uDmEcfGfWdeBkRZblivpdX/CIqg9fvgEQRtqDELBy Yocq4tYCSgMXIBim8D8cbyloeeZk178Guv9FWepKNKd6/WCN5VbbMPkbD91doolvaEF8 RMuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=VCjchUtG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq6-20020a056402220600b004520b01a355si5710260edb.52.2023.01.16.12.36.55; Mon, 16 Jan 2023 12:37:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=VCjchUtG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232880AbjAPUS1 (ORCPT + 52 others); Mon, 16 Jan 2023 15:18:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233498AbjAPUSI (ORCPT ); Mon, 16 Jan 2023 15:18:08 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 452451EFD0; Mon, 16 Jan 2023 12:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1673900283; bh=RB/4hb5fSDHu6MiJ5tBqZgpdnlPyTlnDj4FHPZRfRig=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VCjchUtGitaBNRA5iHqeq21e02/kEW0oYvWgLh771ew1gF4fgci0AVO/cK/nhITBY w68f5Q/tg3SAb2DABRAkCqnKO57K3QkFJcqzoQ1jEsrgcK/b/6ZfMkIwIDIpJ6n2Ol EWvzDnwoErYSSCgwuxKrxOGpQS/z5ql/pv2AvsX2Umbxz68ewE8UfjI/gMMammrezV 4SatBqedMWoGK3ZO30Oy6sXtXTGTUWI1YxqwFW3q44L2Tkc+asp/GmCH/ojvX6pqPj nrSHXd8N432YmbQ5duu9tYZXUspYDoTZ55CdBIcwDM17YhJjKnKJz9lWc09qE/csqY 2+NrUgBmFxqRA== Received: from [172.16.0.101] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4Nwjy35tVczgXn; Mon, 16 Jan 2023 15:18:03 -0500 (EST) Message-ID: Date: Mon, 16 Jan 2023 15:18:37 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [tip:sched/core 7/28] rseq.c:139:37: error: 'AT_RSEQ_ALIGN' undeclared; did you mean 'R_SH_ALIGN'? Content-Language: en-US To: kernel test robot , Shuah Khan Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Peter Zijlstra , linux-kselftest@vger.kernel.org References: <202301170348.7WLKH1pl-lkp@intel.com> From: Mathieu Desnoyers In-Reply-To: <202301170348.7WLKH1pl-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RDNS_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-01-16 14:40, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core > head: 79ba1e607d68178db7d3fe4f6a4aa38f06805e7b > commit: 03f5c0272d1b59343144e199becc911dae52c37e [7/28] selftests/rseq: Use ELF auxiliary vector for extensible rseq > compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 > reproduce: > # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=03f5c0272d1b59343144e199becc911dae52c37e > git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > git fetch --no-tags tip sched/core > git checkout 03f5c0272d1b59343144e199becc911dae52c37e > make O=/tmp/kselftest headers > make O=/tmp/kselftest -C tools/testing/selftests > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot In order to fix this, I need to change -I../../../../usr/include/ for $(KHDR_INCLUDES) in tools/testing/selftests/rseq/Makefile I can find 25 odd uses of the same pattern in the kernel selftests. Should I fix them all in one go ? grep -r "../../../../usr/include/" tools/testing/selftests/ | wc -l 25 AFAIU it typically works just because the build system happens to have recent enough kernel headers installed in the root environment. Thanks, Mathieu > > All errors (new ones prefixed by >>): > > rseq.c: In function 'get_rseq_feature_size': >>> rseq.c:139:37: error: 'AT_RSEQ_ALIGN' undeclared (first use in this function); did you mean 'R_SH_ALIGN'? > 139 | auxv_rseq_align = getauxval(AT_RSEQ_ALIGN); > | ^~~~~~~~~~~~~ > | R_SH_ALIGN > rseq.c:139:37: note: each undeclared identifier is reported only once for each function it appears in >>> rseq.c:142:44: error: 'AT_RSEQ_FEATURE_SIZE' undeclared (first use in this function); did you mean 'ORIG_RSEQ_FEATURE_SIZE'? > 142 | auxv_rseq_feature_size = getauxval(AT_RSEQ_FEATURE_SIZE); > | ^~~~~~~~~~~~~~~~~~~~ > | ORIG_RSEQ_FEATURE_SIZE > -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com