Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4669139rdb; Fri, 15 Sep 2023 08:51:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyuVvwQjA2NOBvx+GJ+IbtDSv/d28R1gNp0pVd7hwTVs3o6k1qVt3PuN+1wS3exrB2KpBc X-Received: by 2002:a17:902:ec89:b0:1c4:16f:cc3e with SMTP id x9-20020a170902ec8900b001c4016fcc3emr2248201plg.35.1694793105359; Fri, 15 Sep 2023 08:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694793105; cv=none; d=google.com; s=arc-20160816; b=QeRARrjoMryQurasWEXPkzDYaNzMnUzP1V46hhUi3LhgDRoviZfVHm9dcS3hCYELYJ HhFeb3HdD7I3ZizN6NtNDB2V4ViNWPATjdvQy2a2yQLSLYBAXZ0i+bZLA/0+nAZ+1umx h80u56pqVKOIXet+CoXc1wZ6r1lIHA7IQuFwhMqAXK37r83Xl9J4ws1S9wgU92tgiITI urwxpmdoteqHLH6yzShu3LZk1UfsfFUBAHi7Y8deyg2gD9jgLLLcvslUmC596FlvIewk nT9bNsQU8eqo4xBe4n13nE9Ip8ocBIbh31rHj6eoWFT/+5Z1CJhQe8uQodfiVMqEhWcL OWHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9YXFI+WhfAISDbsXD1xioqZrn+hF0Uu9c9p7iUiwhwc=; fh=kVnfOvObsbpkddw4MaV/14YQJ4YcO+xI1cwXrJk5LXU=; b=qOchprtCr2UL9ks75X+/iqFhtmbreHvxJCroRuGcp2myDOpe6sJKjVAmGn271NNrmX ridG6n4nD623k8p+OCjINz0QEmnFkHwm31HO/SwK22280xgiRTqgeKZq6Kj6/H7ab/yh gtCJM0fHP3J19isCQzZYHGlbuvtxV0kZzJ2q0hQXaLz8e4tvQVbCiBvRwcbLdAylk/E8 W6Ds2RxB2c5MMtLqkOIh61ut9BcqPg8BkwYQJkbGMnptHYxNIUeGeTH2J7NjoW7YgQxF piH2Ok7xFU8Np42RfRJ5HNKp+8osLoTqXIM2V69eQ/8OArdiXCei/a4pI5f2KeA2tYL1 CzwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=deGzgNWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x14-20020a170902ec8e00b001c427a74e31si1845134plg.628.2023.09.15.08.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:51:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=deGzgNWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5647E83457C6; Fri, 15 Sep 2023 03:02:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233912AbjIOKCu (ORCPT + 99 others); Fri, 15 Sep 2023 06:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbjIOKCs (ORCPT ); Fri, 15 Sep 2023 06:02:48 -0400 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 A8FD42728 for ; Fri, 15 Sep 2023 03:01:27 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-31f4a286ae1so1638644f8f.3 for ; Fri, 15 Sep 2023 03:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1694772077; x=1695376877; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9YXFI+WhfAISDbsXD1xioqZrn+hF0Uu9c9p7iUiwhwc=; b=deGzgNWQix/q7NKb17Nk2nCXzUBteH08tH4BnpE+JPpoinZr/yNgvOLzGa0as0qloq Sk/9/2e/iIwsNF4mcplA0+7ROleKXuVwk1vswydk7BPDTPINzmeCZ3GhJc7QgdgLAZiS fA79w+nIuy1EYxy6RvostX31XC0G4896EwWgESDmm9bYOj5+yGvwFwEZhz262yAPObk9 qxRDrXT6fldL7CReO1TEtTGAQetrAhjDxEc+ObxgkJNXk9Dt7MmpP0u8Twa9eNd0fbFI 80Tf75AD4PSXWMxmXITdfrGQ+wFwQRaN2K1UAPs/KcAX0wbOlImAOh5GwXPojtSlpiob lACA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694772077; x=1695376877; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9YXFI+WhfAISDbsXD1xioqZrn+hF0Uu9c9p7iUiwhwc=; b=jvEr6KUesgxCDVq92bOcGsd7i0RXa6aXy6fULgwf/iU/kotS/cQIZ1lWs3mB5j+KSW n5qIdQkbu83D2TjQxyRQVNjbwtc9Uj+IdYLJIYh8BQy5HSvvHS+hoIE9dx/W291sjOHV q7t4H5gl8v5ZArw0D462u4mGt7gir6PyozXlfWt8dJCxtAZklowllLajQILgDnlXiY/z ad5xeCh9YJhxZLIa5sFmJXv/tIHtO+TqaBYdec6uy9v+/ck/5zeCvVl/ta4l6FwEqvQH dfaVhA6s7wCVN6BVlN00w9ZEzqeF2NSWxwpJy1SSu25VLMUmQILfs3tdIG6r44JKwBjx QXIw== X-Gm-Message-State: AOJu0Yx/xaN35U3FvdP3VHsZDos3ypXP8JLhJ9qIz5aZalBHmJz9JaFJ tEid5s7Wpxkhq/65zhe6yaGY7g== X-Received: by 2002:adf:a303:0:b0:31f:f84e:f63e with SMTP id c3-20020adfa303000000b0031ff84ef63emr540429wrb.54.1694772076646; Fri, 15 Sep 2023 03:01:16 -0700 (PDT) Received: from alex-rivos.home (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id f4-20020adfdb44000000b00317f29ad113sm4057900wrj.32.2023.09.15.03.01.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 03:01:15 -0700 (PDT) From: Alexandre Ghiti To: Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Charlie Jenkins , linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH -fixes] riscv: kselftests: Fix mm build by removing testcases subdirectory Date: Fri, 15 Sep 2023 12:01:13 +0200 Message-Id: <20230915100113.13131-1-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 03:02:56 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email kselftests fails to build because the mm/testcases subdirectory is not created and then the compiler fails to output the binary there. So fix this by simply removing this subdirectory which is not very useful. Signed-off-by: Alexandre Ghiti --- tools/testing/selftests/riscv/mm/Makefile | 6 +++--- .../selftests/riscv/mm/{testcases => }/mmap_bottomup.c | 2 +- .../selftests/riscv/mm/{testcases => }/mmap_default.c | 2 +- .../testing/selftests/riscv/mm/{testcases => }/mmap_test.h | 0 .../testing/selftests/riscv/mm/{testcases => }/run_mmap.sh | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename tools/testing/selftests/riscv/mm/{testcases => }/mmap_bottomup.c (97%) rename tools/testing/selftests/riscv/mm/{testcases => }/mmap_default.c (97%) rename tools/testing/selftests/riscv/mm/{testcases => }/mmap_test.h (100%) rename tools/testing/selftests/riscv/mm/{testcases => }/run_mmap.sh (100%) diff --git a/tools/testing/selftests/riscv/mm/Makefile b/tools/testing/selftests/riscv/mm/Makefile index 11e0f0568923..c333263f2b27 100644 --- a/tools/testing/selftests/riscv/mm/Makefile +++ b/tools/testing/selftests/riscv/mm/Makefile @@ -5,11 +5,11 @@ # Additional include paths needed by kselftest.h and local headers CFLAGS += -D_GNU_SOURCE -std=gnu99 -I. -TEST_GEN_FILES := testcases/mmap_default testcases/mmap_bottomup +TEST_GEN_FILES := mmap_default mmap_bottomup -TEST_PROGS := testcases/run_mmap.sh +TEST_PROGS := run_mmap.sh include ../../lib.mk -$(OUTPUT)/mm: testcases/mmap_default.c testcases/mmap_bottomup.c testcases/mmap_tests.h +$(OUTPUT)/mm: mmap_default.c mmap_bottomup.c mmap_tests.h $(CC) -o$@ $(CFLAGS) $(LDFLAGS) $^ diff --git a/tools/testing/selftests/riscv/mm/testcases/mmap_bottomup.c b/tools/testing/selftests/riscv/mm/mmap_bottomup.c similarity index 97% rename from tools/testing/selftests/riscv/mm/testcases/mmap_bottomup.c rename to tools/testing/selftests/riscv/mm/mmap_bottomup.c index b29379f7e478..1757d19ca89b 100644 --- a/tools/testing/selftests/riscv/mm/testcases/mmap_bottomup.c +++ b/tools/testing/selftests/riscv/mm/mmap_bottomup.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include -#include +#include #include "../../kselftest_harness.h" diff --git a/tools/testing/selftests/riscv/mm/testcases/mmap_default.c b/tools/testing/selftests/riscv/mm/mmap_default.c similarity index 97% rename from tools/testing/selftests/riscv/mm/testcases/mmap_default.c rename to tools/testing/selftests/riscv/mm/mmap_default.c index d1accb91b726..c63c60b9397e 100644 --- a/tools/testing/selftests/riscv/mm/testcases/mmap_default.c +++ b/tools/testing/selftests/riscv/mm/mmap_default.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include -#include +#include #include "../../kselftest_harness.h" diff --git a/tools/testing/selftests/riscv/mm/testcases/mmap_test.h b/tools/testing/selftests/riscv/mm/mmap_test.h similarity index 100% rename from tools/testing/selftests/riscv/mm/testcases/mmap_test.h rename to tools/testing/selftests/riscv/mm/mmap_test.h diff --git a/tools/testing/selftests/riscv/mm/testcases/run_mmap.sh b/tools/testing/selftests/riscv/mm/run_mmap.sh similarity index 100% rename from tools/testing/selftests/riscv/mm/testcases/run_mmap.sh rename to tools/testing/selftests/riscv/mm/run_mmap.sh -- 2.39.2