Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp732675rdb; Thu, 15 Feb 2024 13:51:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3AOxrPjIKFszNmLzFnhKE678cAP0N8bqX4RI594xffF/b/joMFXuMIp9ZVUupbEhRN5hHQJEGkPoqDwPPCs2t5WgJ3IOtAGt77cNuVg== X-Google-Smtp-Source: AGHT+IE0jEwugvoWHRkx6NsaUNOu4Fz6cUoPF4QMefB1txDjXDuc559t6MYkQ/L96tTe2/0dXA1r X-Received: by 2002:a0c:e34d:0:b0:68f:30a1:4be6 with SMTP id a13-20020a0ce34d000000b0068f30a14be6mr435124qvm.30.1708033873571; Thu, 15 Feb 2024 13:51:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708033873; cv=pass; d=google.com; s=arc-20160816; b=qXAOeLodzWNkHo7vtwyTnsGm8915V7ofSr4+Ve2zrgxxb0/68fvdbZLuMlfeLQbRY2 vWJvNNGXxLoHtCz7owLe95Ygx8ZF7peYIN0F16RsyczTfH8F9QyHGi6JlL4YrIUHp5tD DxWx25k7NyOCemlitno/ZMvsz+/AbbGsQof/Z0xFVUVrRKm3ILADyIlrbgaSGLFE+gLO RbV9xxMY0CXk8WdSloGBRVTjmHN2WbewkxygTEuSAYAYW6UsRN7UzF03edTZMeMJdbUJ KWrBQ2Cl1EEU+F1QvZVs3yhBfJjGWOhXqfEKFJNxbHRMv4jKzR0h/INDGNgSgQDABbRS g0+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=O8vOtgPGN8KarkiUSv9tkZ442Q2uoVcZR5ZzpfSk2J8=; fh=XRlcvo+mw+A2Pe/xOZj8lSwBbDqUO+TvsI7HH6kuo/Y=; b=N4N7c2XwP+vjzO2sACiP8qD9n1mDMULhkCNoN97bzrsL/UmbKMo87KFnG8e9HgHNH6 JMLWe/kDNq1DA0DDMNonibht+1pOQ6JcT/4GmzZ/o691hVhCQkmxDrUvRUryCuwxKMu/ /HFqgkLymDryGopTDVd2J4WIxExerRB1HToOt0977svgaI+huC2FYv19h3y67AHTjHZc SbQal7Fj2FdIerlGvk6iuLHnRui9ZrOvHeruOTHpaPCj85dx2hLq45T7pTRwBBSuE35y cxlO+A2LEvqMj0Em5oYIEb3bNyLURdmbiidJRGosdpylec4E2tGOIxkL3x2MXlSo3lRf +ioQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tVtTbNfR; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tVtTbNfR; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=tZPljd1N; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-67714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 2-20020a056214202200b0068c938c5548si2490993qvf.39.2024.02.15.13.51.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:51:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tVtTbNfR; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tVtTbNfR; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=tZPljd1N; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-67714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 495D31C21C07 for ; Thu, 15 Feb 2024 21:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C2F9145340; Thu, 15 Feb 2024 21:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="tVtTbNfR"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tZPljd1N"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="tVtTbNfR"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tZPljd1N" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D3396A349; Thu, 15 Feb 2024 21:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033850; cv=none; b=on5K2tiAS02wo5YXeq7CyBCL6BshpRLxbA7PJ6YPyrmV9QS2D+2mwcDUIGiUe6cLdmZVn3pjN+vRPKMBUE/8KMnnobal/1Nl5RP96AEB6ceo8uHcJSkuJL4YPqUJYFrunPmq/0tBHP/LzGgzD9duHXH7bgMYE8T9r4S1zxPQMkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033850; c=relaxed/simple; bh=idON+bbZYzmEzPH9UvpHCpG1kmGpuXvEU2Wog5Zspi8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AhDgblSkSI4HQ/CdIGV1Aq2R/KNA6LqRGnV30tnD33XZV4OPZS8ByOG3D3yokUnmwrgZRo+l4TQgwNgIATeAwPBGGV0VYDZYivlPMwlzpQ64Ef9JB4NmGF/4rfPdAR55TUK/P0iOyMeOXCP4GSfvQ0JoQl7AOI9bcrn/+ZwO7bc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=tVtTbNfR; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=tZPljd1N; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=tVtTbNfR; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=tZPljd1N; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from kitsune.suse.cz (unknown [10.100.12.127]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 783AF22056; Thu, 15 Feb 2024 21:50:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708033846; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8vOtgPGN8KarkiUSv9tkZ442Q2uoVcZR5ZzpfSk2J8=; b=tVtTbNfR2gczusynP3FlmOwd3jeTBTgFpYvLQmDBfMTSPJZp3ZkG00DUmCUiu0uqDnmEam LSS1TMaWG6sCFGMQE6fCJ6PQazrirE1OOWFXStFWtjLSkaRL6Sv8NZhQWasf6F/xT/MomH dWFbxePSmV2QzHqyWg/gcyqEDg9uKNI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708033846; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8vOtgPGN8KarkiUSv9tkZ442Q2uoVcZR5ZzpfSk2J8=; b=tZPljd1Noigoc3Od96osNrNXdRHbvlLZVShmeKIkUZNFxC7btrFqgx22IlzlgevnemIoGe Fmy65eCgTECw8jCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708033846; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8vOtgPGN8KarkiUSv9tkZ442Q2uoVcZR5ZzpfSk2J8=; b=tVtTbNfR2gczusynP3FlmOwd3jeTBTgFpYvLQmDBfMTSPJZp3ZkG00DUmCUiu0uqDnmEam LSS1TMaWG6sCFGMQE6fCJ6PQazrirE1OOWFXStFWtjLSkaRL6Sv8NZhQWasf6F/xT/MomH dWFbxePSmV2QzHqyWg/gcyqEDg9uKNI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708033846; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8vOtgPGN8KarkiUSv9tkZ442Q2uoVcZR5ZzpfSk2J8=; b=tZPljd1Noigoc3Od96osNrNXdRHbvlLZVShmeKIkUZNFxC7btrFqgx22IlzlgevnemIoGe Fmy65eCgTECw8jCw== Date: Thu, 15 Feb 2024 22:50:45 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Nathan Lynch Cc: linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] selftests: powerpc: Add header symlinks for building papr character device tests Message-ID: <20240215215045.GU9696@kitsune.suse.cz> References: <20240215165527.23684-1-msuchanek@suse.de> <87cysxilr5.fsf@li-e15d104c-2135-11b2-a85c-d7ef17e56be6.ibm.com> <20240215192334.GT9696@kitsune.suse.cz> <87a5o1ikk0.fsf@li-e15d104c-2135-11b2-a85c-d7ef17e56be6.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a5o1ikk0.fsf@li-e15d104c-2135-11b2-a85c-d7ef17e56be6.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [-3.10 / 50.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[10]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[lists.ozlabs.org,ellerman.id.au,gmail.com,csgroup.eu,kernel.org,linux.ibm.com,vger.kernel.org]; BAYES_HAM(-3.00)[100.00%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -3.10 On Thu, Feb 15, 2024 at 01:39:27PM -0600, Nathan Lynch wrote: > Michal Such?nek writes: > > On Thu, Feb 15, 2024 at 01:13:34PM -0600, Nathan Lynch wrote: > >> Michal Suchanek writes: > >> > > >> > Without the headers the tests don't build. > >> > > >> > Fixes: 9118c5d32bdd ("powerpc/selftests: Add test for papr-vpd") > >> > Fixes: 76b2ec3faeaa ("powerpc/selftests: Add test for papr-sysparm") > >> > Signed-off-by: Michal Suchanek > >> > --- > >> > tools/testing/selftests/powerpc/include/asm/papr-miscdev.h | 1 + > >> > tools/testing/selftests/powerpc/include/asm/papr-sysparm.h | 1 + > >> > tools/testing/selftests/powerpc/include/asm/papr-vpd.h | 1 + > >> > 3 files changed, 3 insertions(+) > >> > create mode 120000 tools/testing/selftests/powerpc/include/asm/papr-miscdev.h > >> > create mode 120000 tools/testing/selftests/powerpc/include/asm/papr-sysparm.h > >> > create mode 120000 > >> > tools/testing/selftests/powerpc/include/asm/papr-vpd.h > >> > >> I really hope making symlinks into the kernel source isn't necessary. I > >> haven't experienced build failures with these tests. How are you > >> building them? > >> > >> I usually do something like (on a x86 build host): > >> > >> $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux- ppc64le_defconfig > >> $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux- headers > >> $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux- -C tools/testing/selftests/powerpc/ > >> > >> without issue. > > > > I am not configuring the kernel, only building the tests, and certainly > > not installing headers on the system. > > OK, but again: how do you provoke the build errors, exactly? Don't make > us guess please. cd tools/testing/selftests/powerpc/ make -k > > Apparently this is what people aim to do, and report bugs when it does > > not work: build the kselftests as self-contained testsuite that relies > > only on standard libc, and whatever it brought in the sources. > > > > That said, the target to install headers is headers_install, not > > headers. The headers target is not documented, it's probably meant to be > > internal to the build system. Yet it is not enforced that it is built > > before building the selftests. > > the headers target is used in Documentation/dev-tools/kselftest.rst: > > """ > To build the tests:: > > $ make headers > $ make -C tools/testing/selftests > """ Indeed so it's not supposed to work otherwise. It would be nice if it did but might be difficult to achieve with plain makefiles. 'headers' is not in 'make help' output but whatever. Thanks Michal