Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1245297rwb; Wed, 9 Nov 2022 15:08:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM6ey5m4dKrTQjlKjkAWTm72M9/zqVKXxbwihu21yG7Aea+B143+T+U2/G0/hXPGPfBifAM2 X-Received: by 2002:a05:6402:46:b0:45c:bd68:6ab0 with SMTP id f6-20020a056402004600b0045cbd686ab0mr61756475edu.16.1668035296054; Wed, 09 Nov 2022 15:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668035296; cv=none; d=google.com; s=arc-20160816; b=F2RTiUe0S6X1HR11IBNGa+xLgYnK01Y4XJBK1hIG4sHbqGut38KVRDsqPrnNI8bx+g cKHhyH3oS9TCuAlY/DlAUlH9+bJUSOXeYESZez7mui5uQ0fb6jZFIXlmB3UK3+I+hIj6 j0ldvID3ASYUHrioHA6kL7cmwJEEkXNz82K7SEqE0dGORIU901A0fDLLBuZAY3nmGX4y 6smvSHxWl9rjnAvM4ZSSp/yCVjR8emehHKLEeTz6e0PB4XAaB8w23opfXfRACEFehilV Ssle/R/iwQlgldMDccwgLoJVonJmdMe+j2uYz+L1VoAVcG5ENJcFVYEt1Mko5RSn4V09 PQ1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=xVu78POIovNyD99aPi4Yv4vzOo0b2PvKhIqKGNMp9kk=; b=gkVpNVZAH0rHtAEXOwxsZMsbMPshV0Z7JZSUWqYDXLvoKW1X9r5W7xY3vELDpvrBn4 4HwdI++M1UIpf8wos6JuFbMKzf5I6g1VkznMJxgp5nqqNRT302q627m9ymtfZ7rjUrIh FdUTnb/G5p6izoyo6JQ8ogNRTwZL4Ux8y+AdpuJBzPp65H2QcPNBvHhz5FdjrJ6YxNxy eRjWBiw78qvZJqUijbaA8vhrepPJDlnBY9Us0+rdrVZJlmkMsKHxGS3Y2VF80tI6V5Kt lbXqVyTKNUvq0RI3D8yxpg0d7pAFlzVZ8f7Es2ydKtzpA6Nq+miN4Wc1YTH04D5AxVS9 4ojg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=Lsn0qJl9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y26-20020a50e61a000000b00461b96334eesi15987001edm.500.2022.11.09.15.07.50; Wed, 09 Nov 2022 15:08:16 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=Lsn0qJl9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231865AbiKIWHZ (ORCPT + 92 others); Wed, 9 Nov 2022 17:07:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbiKIWHO (ORCPT ); Wed, 9 Nov 2022 17:07:14 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1DF82DA8F for ; Wed, 9 Nov 2022 14:07:13 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id z14so27929686wrn.7 for ; Wed, 09 Nov 2022 14:07:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xVu78POIovNyD99aPi4Yv4vzOo0b2PvKhIqKGNMp9kk=; b=Lsn0qJl948PIXcPTpBoc5kLqwQH0giN853X1wBZbXW5wayaj/UsFmo6mtUOBn3gjq/ 5RC1fIi6ts5rvITCJO4n8tvQjbAXTiz9UeSVaOf/mxFduVmkpgjy9JT3PXm8EsgVqBIP T89yGj+CixA4Xd6Ry+pPkTJPyG1y47swh/X1uJoO64VUlH0FqMpJ4PAd9N0l3DVHyS4B S1sY6n+I7sJBczNAJ9CXZPbD+L4y4oY1QOY0gJDLomCW79M/RSj2iKcSmn1pfg7ghUhL kPWD6GIpXrHP3bmwepbQfA5+JOVSFA4HIUSvSfCnppz/ZPV8KcEVeXiCRLlnWqJt7gtE 5vBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xVu78POIovNyD99aPi4Yv4vzOo0b2PvKhIqKGNMp9kk=; b=chkMZQp4T0Frd/yM89Ma7L01g4oD9Q9LN/6v0SnRLt+A3st1nxvZlHc1JkGjQB9RSM ylwG5TlhFmT6k25C+8KcfIOmVfm7T6tWI/WkfsjGwfAjdRM+JA/Ej49YgT3diYvd3yaB piZl3TtQ7WVS9/wwMYSaTJEOFmmQpxcyfQNBbfqZTjih04J2DYatirhOl44U5uDq99J/ Wk52cv45w45XmpVjXoL/C7y7pcsPCSEoGufxn5vK9TLR1M9spokXj96MnNKZm6Pw04U5 OupVY5KWXts1ORPuWCCZ9s6I1axB9lIGC0xu/2LXDjW1jEolav6vxtg0P3ufckI8Z1MG NdHA== X-Gm-Message-State: ACrzQf18VFl8uKtwJDj7ia4Qi3nN7SgD5zLoadxQb1+YGn0edBWtwL/K +ZyfkrL8H8V2pFd+8u7Ay+xZaYpsI85Dn185 X-Received: by 2002:a5d:6101:0:b0:236:6542:c65b with SMTP id v1-20020a5d6101000000b002366542c65bmr40849068wrt.438.1668031632279; Wed, 09 Nov 2022 14:07:12 -0800 (PST) Received: from localhost ([95.148.15.66]) by smtp.gmail.com with ESMTPSA id v4-20020a5d4a44000000b002365254ea42sm14402030wrs.1.2022.11.09.14.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 14:07:11 -0800 (PST) From: Punit Agrawal To: Punit Agrawal Cc: akpm@linux-foundation.org, shuah@kernel.org, adobriyan@gmail.com, 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 References: <20221109110621.1791999-1-punit.agrawal@bytedance.com> Date: Wed, 09 Nov 2022 22:07:10 +0000 In-Reply-To: <20221109110621.1791999-1-punit.agrawal@bytedance.com> (Punit Agrawal's message of "Wed, 9 Nov 2022 11:06:21 +0000") Message-ID: <87fser235d.fsf@stealth> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Punit Agrawal writes: > 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. > > Mark proc-empty-vm as a test for x86_64 and customise to the Makefile > to build it only when building for this target architecture. > > Fixes: 5bc73bb3451b ("proc: test how it holds up with mapping'less process") > Signed-off-by: Punit Agrawal > --- > tools/testing/selftests/proc/Makefile | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/proc/Makefile b/tools/testing/selftests/proc/Makefile > index cd95369254c0..6b31439902af 100644 > --- a/tools/testing/selftests/proc/Makefile > +++ b/tools/testing/selftests/proc/Makefile > @@ -1,14 +1,18 @@ > # SPDX-License-Identifier: GPL-2.0-only > + > +# When ARCH not overridden for crosscompiling, lookup machine > +ARCH ?= $(shell uname -m 2>/dev/null || echo not) > + > CFLAGS += -Wall -O2 -Wno-unused-function > CFLAGS += -D_GNU_SOURCE > LDFLAGS += -pthread > > -TEST_GEN_PROGS := > +TEST_GEN_PROGS_x86_64 += proc-empty-vm > + > TEST_GEN_PROGS += fd-001-lookup > TEST_GEN_PROGS += fd-002-posix-eq > TEST_GEN_PROGS += fd-003-kthread > TEST_GEN_PROGS += proc-loadavg-001 > -TEST_GEN_PROGS += proc-empty-vm > TEST_GEN_PROGS += proc-pid-vm > TEST_GEN_PROGS += proc-self-map-files-001 > TEST_GEN_PROGS += proc-self-map-files-002 I noticed that a hunk has gone missing from the patch. Please ignore this version - I'll post an updated one shortly.