Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp667082rdb; Thu, 15 Feb 2024 11:23:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWU4/EFMj9ugJRkntikJK35W0jtDxzvd3hiTcxNf9rFDTsGJfZlfdCpD8PzepLsz+0p66E5kjf7K2WNA4eTXf5J+iUj5AJFG4FIrPJ/gQ== X-Google-Smtp-Source: AGHT+IH+cIIvBYVzQylhBkV8vUcEVl5CrtUMg7UMQJ0OoE8GAX31P2t39j7v4cxkM4ePUa0R+Oyd X-Received: by 2002:a17:902:848c:b0:1db:7181:c5ba with SMTP id c12-20020a170902848c00b001db7181c5bamr2308070plo.62.1708025025432; Thu, 15 Feb 2024 11:23:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708025025; cv=pass; d=google.com; s=arc-20160816; b=wnLWlU4fKpg94juny6hn88q3TNqlZONHaOX3jfZ6OctP0iEMl0t76wsG/4qGO2Nouv NSLTAUGazUgEB5Lp0c8cGwNTprh/32V/QeRBdwhImGsp1xwOyA93Zt8+k3di1srya7Fj QM4s6EXzUZIxIrCNx93qBe90lMrTwHl9I82kmfDG7iO+RZ2H7aZQaN33AWGSboeZeVhE dT/pbq+d6hrfhFgHkSy3c9Z1WmEJsuav2gCucOvnJYyPGM8cCDZNKQEJmhVh1jZ9gyZX RfpBbQak+WzScmXuwWBsrbR0dgfzj9o82tLgfFPiWX3X1/g2UfX1k2QLAqGyz27zzPzY asGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to: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=fa6fwskS/XeiRHwRWUxIzXg8lpFOjokK1ZaMlxoJ2Js=; fh=XRlcvo+mw+A2Pe/xOZj8lSwBbDqUO+TvsI7HH6kuo/Y=; b=aDI2cGC7dllo2lFN1a9Qb2V9YF7T+0SGGkqmDPDc3YoX17wPETvIe/AY6yrhlmBcN2 +f9pqnzOzvnalwKWOR+urEr8baQR2eAPs7sNfVQXHY/U9+GdFPpjGhYb1aAi1bTY+Mwb CUYOGynEn56lcJaXiKtZfhr1uRnLbA3pbdo8m32SO+v4I5E2axSiVGzuxAg11DpB1Vwd vPmilDDWIaUh2ESu4Pb0XuUASF19KHVCFD7QLRDv6DHifdLp2SYEN/wKit10kEVhGpLk RB0EmNui0uoN6yxyvpQzKMlptYy57uPINgHsK8wGWP+AplyPzee00vkbGb6XMi4/XD4B tOsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=n5jF2kOw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=n5jF2kOw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=LNYC7ovG; 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-67571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t18-20020a17090340d200b001d8da2362b8si1569099pld.261.2024.02.15.11.23.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=n5jF2kOw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=n5jF2kOw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=LNYC7ovG; 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-67571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67571-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 23930284AC6 for ; Thu, 15 Feb 2024 19:23:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1041139599; Thu, 15 Feb 2024 19:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="n5jF2kOw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="LNYC7ovG"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="n5jF2kOw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="LNYC7ovG" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 BF9B6136983; Thu, 15 Feb 2024 19:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025019; cv=none; b=BlK+UHtnClfrth+pklDxMD+0smi9sOPemE0AWOMC7xSVAZ4dg3gH7QRUkx8O+XZ/3zndvfaosNcvLZ+pmMQnGnypctxxtsJkojAR3cwKSwRJWe1PrgXxOb5B0lpZ7ZwM/LZro1NIoJMcoChUoPWqZnAiW8hnnHWTIw+rSAhxOME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025019; c=relaxed/simple; bh=5FzjDGGdF/LEJ1+yyKQUEfGfpUmI8UPYzcH+PLbeksU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QTqw9bX+uKMx3BDwSgY2QTWeWrHy+2tOg6D8uXVfIN251CnHFaqWCXazI1F5zfAl/L70Fa6skdJtrMxx8qpgTX/mEU0O38KQD8H4nESw9o7odqArRTGQ9x+WQ3azHC8UfQZQvt1IziH0tsXiKraTPgCXRe2cRX5jD4TradmwiSw= 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=n5jF2kOw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=LNYC7ovG; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=n5jF2kOw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=LNYC7ovG; arc=none smtp.client-ip=195.135.223.131 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-out2.suse.de (Postfix) with ESMTPS id 9BE6E1F8C5; Thu, 15 Feb 2024 19:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708025015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fa6fwskS/XeiRHwRWUxIzXg8lpFOjokK1ZaMlxoJ2Js=; b=n5jF2kOwc96NXtoFvQ1Hkh5Mh9MbyJm7BrMp6hp76bEoK8o/S4LqzLkHiyIhIEVMNzXUFE Eb/Im8zINT9e1syoklSHnFRaYWvyaIZhsPI3q6pvMa3WE7L94HAIVaK48VGnnbgC4X0Bbe JRwG8uVPISOsNDaIPHr3Y4BTpxbFi2c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708025015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fa6fwskS/XeiRHwRWUxIzXg8lpFOjokK1ZaMlxoJ2Js=; b=LNYC7ovG2ARcRpqnpuw0r2PZgT8nAQqOgtZ39N0lUO4LMO3/EH/MNGCYdmsfbaUrBbyQ2M O+ABg1wn8TZxNiBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708025015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fa6fwskS/XeiRHwRWUxIzXg8lpFOjokK1ZaMlxoJ2Js=; b=n5jF2kOwc96NXtoFvQ1Hkh5Mh9MbyJm7BrMp6hp76bEoK8o/S4LqzLkHiyIhIEVMNzXUFE Eb/Im8zINT9e1syoklSHnFRaYWvyaIZhsPI3q6pvMa3WE7L94HAIVaK48VGnnbgC4X0Bbe JRwG8uVPISOsNDaIPHr3Y4BTpxbFi2c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708025015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fa6fwskS/XeiRHwRWUxIzXg8lpFOjokK1ZaMlxoJ2Js=; b=LNYC7ovG2ARcRpqnpuw0r2PZgT8nAQqOgtZ39N0lUO4LMO3/EH/MNGCYdmsfbaUrBbyQ2M O+ABg1wn8TZxNiBA== Date: Thu, 15 Feb 2024 20:23:34 +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: <20240215192334.GT9696@kitsune.suse.cz> References: <20240215165527.23684-1-msuchanek@suse.de> <87cysxilr5.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=us-ascii Content-Disposition: inline In-Reply-To: <87cysxilr5.fsf@li-e15d104c-2135-11b2-a85c-d7ef17e56be6.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [-0.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(-0.00)[30.55%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -0.10 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. 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. Thanks Michal