Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4658200rdb; Fri, 15 Sep 2023 08:34:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjxaqMUl87ubE+W1rp+1US1nPRTj3clxgjZwSuaWXsgnQxixng3OqPYyvf6L+WubE9lMQ0 X-Received: by 2002:a05:6a21:7888:b0:154:fb34:5f09 with SMTP id bf8-20020a056a21788800b00154fb345f09mr2485205pzc.15.1694792047909; Fri, 15 Sep 2023 08:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694792047; cv=none; d=google.com; s=arc-20160816; b=q3sof7VzdfpV7471VT/GudYMcl8UT/LY0HpQoPhHqJe3cMcpm2SDuCs8PeUNlRgQqN u0BHb6QnWF4/7KK/w+v5s0ze7IIAmh1WbJcFdBx9CTWStCg68E26xOTLuGUnl8hoCurg kq6ve2VQIQ8Bk7vph8pNIpPwjYDaU1uog/Qcda4d3oqv0APURGQ63R2qRqR9aW2MCreL KtG3Rk/PmrzfLyQoMpygj0JZr7cWQ++ZvehWv7v+TlR3D75UnU+MzzpoY2TIbyDTu6P1 uZ0SmvBBCzCMcaplgEnH1NKavzW6OBYYn9ai0vXNrQ4m5kofNJ6EubwTcuWbhMJeJ3sT NKhg== 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=JzUny5ZDY3B8dwGvMbx7t3ZOXwBY6DGZ8A+gn9ETcXA=; fh=ZC8thzyCEpDetgS2rk0TsPQgHXRAOUh9YPJjdDfb99A=; b=eYEq8nL9WGMffOMtDj8rOgBT+OS1EjQ5pmswp1VOzVR0ASfXhCXuw6lOS2ClrduIq9 BPRlyhc5+9c0uijm3J2e0Y5V6TBtJwlRgZooFu3wBJk7aSdUrRLDxB563xvxT/0fyV4q 7lgbhnhbOEoZDQ3Ebw0MTF0+tfZQwLNM8xNuMFzxQbdyD1BUVpCc4TzypvpB0WbTzE6D XkJhxXmr8EprFhQ9vr60hYL6HpdHUoOcohwRpJQx6SAcCWKqOkHFlMdrkKo52dAqm35B KhKrX3rHxSremvRxhBAGBWqHzCyCN61YlBxb6SJ3XGETvd8CYXgHrUp73OWKlwscel6n fltA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="0BdMv/t2"; 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 d4-20020a633604000000b00564ca42aad9si3441227pga.894.2023.09.15.08.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:34:07 -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="0BdMv/t2"; 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 2F210801B80A; Fri, 15 Sep 2023 08:23:50 -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 S236067AbjIOPXZ (ORCPT + 99 others); Fri, 15 Sep 2023 11:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236062AbjIOPXQ (ORCPT ); Fri, 15 Sep 2023 11:23:16 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBD3E6D for ; Fri, 15 Sep 2023 08:23:09 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68fbd5cd0ceso1957328b3a.1 for ; Fri, 15 Sep 2023 08:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1694791389; x=1695396189; darn=vger.kernel.org; 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=JzUny5ZDY3B8dwGvMbx7t3ZOXwBY6DGZ8A+gn9ETcXA=; b=0BdMv/t2kSwIcKkYEe7jYMeCfjq1Wys4SU/VqXRf8qbeN5IUQMoPXdh4U/Fq9S1eeb GfZVVox/pywXV/ZWA0zOGbRkpWqRZvsMjiRGk8xbuBToQe+nlkw4Zhni2V6VfEK03+rw 2qyXgbGZfiGXGzs6ADpgRasRS1rqM88EzCLxdV/fbAZUNZxqnf/b2PdQdq1MBzpjWfra 5aJLuSa7NjhIeLKbD6ODkJeUs73PtT86mwSYaIJ3d597u6BabQDpnqBMh5N1096YRydc oOo0xg677ZfTTyRzmzASBfkYkSAIhii21ZOAOtDZvpLWZovm4fV0f4Jpt4cWncUOXokW x+xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694791389; x=1695396189; 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=JzUny5ZDY3B8dwGvMbx7t3ZOXwBY6DGZ8A+gn9ETcXA=; b=Yyv7OPuK9pkfHF1yuDdpEfSPFtDGYsQEBHojk6Kl6fR5fi/3nDKbsmZ0D1Pe5nzOCF trBf4kP5zh3ytprs6VUg4wZ0q1jmPhQPS+H1db0hNrUUbCPP4aA0HceJX/xRer+nS3zQ tOT5ZgOslfqTxJBg2u3LP8fjEpSQfB0nPhCgs+3C9m8viuGZUbaGLu4pV8GV2XgtVTrU ZroP34srsk5hQa/BKyLV9UUzISh9h+zSRKHpe9M88i0FipYurcVL8TczPaeFZpVNZaa5 MaINzYAckQyZWvqCT6d/1fgj0i9ptFSptNkGOMXTHDINtE4VIHXjv2nVqzF9qJKF3nRh 5quA== X-Gm-Message-State: AOJu0YxQiGqEt34XLLriC08gAQWZxi5XzG+I0oO9HTG1yPtXR9OtDu4m mC9hdOOLlGmRu7ELQv5wODZcNw== X-Received: by 2002:a05:6a00:3186:b0:690:1857:3349 with SMTP id bj6-20020a056a00318600b0069018573349mr1453397pfb.25.1694791389091; Fri, 15 Sep 2023 08:23:09 -0700 (PDT) Received: from ghost ([50.168.177.76]) by smtp.gmail.com with ESMTPSA id c15-20020aa78c0f000000b0068fb5e44827sm3087719pfd.67.2023.09.15.08.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:23:08 -0700 (PDT) Date: Fri, 15 Sep 2023 11:23:05 -0400 From: Charlie Jenkins To: Alexandre Ghiti Cc: Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -fixes] riscv: kselftests: Fix mm build by removing testcases subdirectory Message-ID: References: <20230915100113.13131-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915100113.13131-1-alexghiti@rivosinc.com> X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 08:23:50 -0700 (PDT) On Fri, Sep 15, 2023 at 12:01:13PM +0200, Alexandre Ghiti wrote: > 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 > Fixes the problem. Reviewed-by: Charlie Jenkins - Charlie