Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp908631rwb; Wed, 9 Nov 2022 10:05:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM4UOmEUYFBgdYY8h/HwbkYRy3U5VWuCKGt1oCCKZb6PACirZ6UC/k4NeL4v35TZ5O+HaIXg X-Received: by 2002:a05:6a00:1988:b0:56d:315d:e371 with SMTP id d8-20020a056a00198800b0056d315de371mr57826420pfl.20.1668017102702; Wed, 09 Nov 2022 10:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668017102; cv=none; d=google.com; s=arc-20160816; b=e+DqnOLWrkjwPOt4qIm+/F4FffpIMXOnGdkMxFsa5XmZ283T54zBvVsgtd+DeIzElL sSdz+QbjxsrNIIdGFT3vi5vlLhzYw3TgQQGn1iW3JG90cMPtkkL2HYFdSWbNztpp7UrO Fzau98gWTrXz4QYm6a/+y+KtW5p7URjyu6J6J5HKurgnDE/yQA3EOEimU9Nn+QUR4gq/ Kx01CzcRlrXoX1fzHmSDvQaJ35Ewrxc8C2HDTuur4QepeLyzfJ7rVEYu8L/5U6JNUI2r bFVePnUShRvu4mW59CGhfJtS/xzwgpszW1xK3atSQaR4H38nqwPKq2oYLbGzCgCdCemm 6U5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X6qC3u7TJCJ9WDjpawDLknUJdFq/gXX99rp9XUruyx4=; b=Ss7lk8qI92CwDx2QWu/mKBgVW+WbDSPFZpWQf/t8Cbyrnh3XV1kIdva5yTBdwdbUtv 69VNcPMGGc6RmmKDsPj+l2xzdLmeexKRmGtJgh7nNeLRpI78w75iLJXRI2vJAPqEqUxr gMwGdR7m2bvf16RikucTOL1iHISfBa3R7kfYn0e1ksBLoNxE6l8YtVhHbWKRt/SSPWSr 5QNf6/WkoyDMSGqK3/Xmby/OoSEik00y9Hz9BOIfrzyuPhMHHsr68lneAAcwPpA4O5MO a5cfhvi4kycblRxVJtEvzzwP9TPvTaLEzeLMMaES7m69gGNwMKtuHQdv+aZ40cq/O7hw D13w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RaIY/b1B"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a170903018900b00186f1a1fb83si18999846plg.352.2022.11.09.10.04.49; Wed, 09 Nov 2022 10:05:02 -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=@gmail.com header.s=20210112 header.b="RaIY/b1B"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbiKIRCd (ORCPT + 92 others); Wed, 9 Nov 2022 12:02:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbiKIRBN (ORCPT ); Wed, 9 Nov 2022 12:01:13 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D212E24F12; Wed, 9 Nov 2022 08:59:35 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id v17so28091765edc.8; Wed, 09 Nov 2022 08:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=X6qC3u7TJCJ9WDjpawDLknUJdFq/gXX99rp9XUruyx4=; b=RaIY/b1BcdnSf71S65QtqaF9vC+Ze5b9z5MN8vdB70KjGn6145Bq+mPgBFV1ZwUZG4 gMyTQ4oM5ctg8UPCNzdZxqfwtlaGG4aQljI2d+2cQQDjTpIimdM6UkrB7Y+GfF4xD8Ha LT/7oXVoBiiqhpglRiXp+Tee3pTRkZqnBxHpP/HQg5twfq63hruMXDErjrYlVLE5jRMs wSV1IgFdhJiHRPPHv/nu1LRIYvUnUG+t2rRD3U3gdKiw6ER6ohlZxYHemB3TIhSuBRmZ vTpPuji5CPlP7dkB020qnV9OQMbFOXwhrjQxU5IasODsjiYNY2/4DQ0YIGFq5rpL9G5Q NTkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=X6qC3u7TJCJ9WDjpawDLknUJdFq/gXX99rp9XUruyx4=; b=F7V1YD+mGIOgFk/3yFZIN92jyBx5U2PK3USozVNX2Wp/nr12dcNywxSmErGfqazeRa WPb0HPa65IRXIT/D2b7OpPE7BjGEAxY/tWbTUnp18h16xOaWf/T4l/JY18gJfoJXY7RV IusdOyhEXb10pK/6rLmEX0YHAZ9jzuPrzbbl26MXClsLuQEYGV5GBpMDHs5ocKnReF++ xrN98/4M6sfT5mL91mur0k/1querjI4mOoM65Ov401Bh3q+LSrqgOGC+iGCtJ6jqQU4F iiHzSV9fqJFjP13WMiw84ZzW6cRr6sN2vGBbi5KiCbMzjwm/Jsn0sllcw4wa2WoFTnC3 wcnA== X-Gm-Message-State: ACrzQf20yyF1L8ZazeRXuvPWe0U0Wl0JjxmDVQVakr7OnHxU+CHliKnA H3baK7wOKK/G6fCCTWah7g== X-Received: by 2002:aa7:cf0b:0:b0:461:2271:8559 with SMTP id a11-20020aa7cf0b000000b0046122718559mr60860684edy.92.1668013174332; Wed, 09 Nov 2022 08:59:34 -0800 (PST) Received: from p183 ([46.53.251.133]) by smtp.gmail.com with ESMTPSA id n20-20020a05640204d400b004588ef795easm7245157edw.34.2022.11.09.08.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 08:59:33 -0800 (PST) Date: Wed, 9 Nov 2022 19:59:31 +0300 From: Alexey Dobriyan To: Punit Agrawal Cc: akpm@linux-foundation.org, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] selftests: proc: Fix proc-empty-vm build error on non x86_64 Message-ID: References: <20221109110621.1791999-1-punit.agrawal@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221109110621.1791999-1-punit.agrawal@bytedance.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Wed, Nov 09, 2022 at 11:06:21AM +0000, Punit Agrawal wrote: > The proc-empty-vm test is implemented for x86_64 and fails to build > for other architectures. Rather then emitting a compiler error it > would be preferable to only build the test on supported architectures. Ehh, can you just port it to whatever arch you're using? What's the address space on arm/arm64? #ifdef __amd64__ munmap(NULL, ((size_t)1 << 47) - 4096); #else #error "implement 'unmap everything'" #endif This program is almost arch-independent. > +TEST_GEN_PROGS_x86_64 += proc-empty-vm