Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1704018pxk; Fri, 2 Oct 2020 17:23:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkcm9FkPw6DaS47CwLWBUv1GfRoUD8i1/A+MBFkjn1LEERWTQHETP9tX9+97jkK2zQ+eBU X-Received: by 2002:a17:907:728e:: with SMTP id dt14mr4460564ejc.505.1601684597586; Fri, 02 Oct 2020 17:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601684597; cv=none; d=google.com; s=arc-20160816; b=C8eD58P2S5FaecRKp99K6BIuTVcgGYeLl6QLFM4SQgDEU448HWKvAwBm7hBVCo3E8R DDFtoDWqtwiKQ3n1dQilJWroyMOIvN+Xnj/8WGJx99Jl/fr29aXxCR8/wHP0FJei2LEV NcaZBabOWUALHMdyAV96ELAUNghG0g9LYT0c1jwvDUwz7sZbutB/wCTIR93Xg5sGfNVq NIhToKuiLSjCuElFMlK13uJA39kv1hfZSZ7ROylP/YgbhCzyOtsCfseb0uJrl5D2mTOz ql1WmPZ18iYwvHR8SlICBEHGLyv+dhFDTwGUWWL8uFDkZveNrYoYw4lsV0SLi9FXW6Cd kRjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=WuyiYWjWPWYyIxLJ4cAt9mzxpJiZtrYrsXWo+nyO5Dw=; b=sWROtUuhSPK0IksRa4BWdvnNpTej4z+5LeZYjH46FKCXY+7uxdtcUgpLd7wouzQF7E vz3FkkTuaxx1Xxl5FZLYkPhV9kXhP8xLurBsotQz8D32Bjosh9MqY7xPzzT7Wu4xH283 15a+IPBsd8TbYzN9ocwOWFN1AIjtwLI/XRxvVmIK4NKZvVOKwRlKjq3nVZz9mcs145xN x35W+FSfBLfZFBkj/FbnNqwmavUioo5istxiQlvV0blrp9PvseWz3zTwr4QL7Kwv1Qxm rqLTMLu4oAzhR8vTf6o6uXY0/amYAU2nVMB/Nc3I9eXpZ9Z1O7vatfKOxQhyx6Xm6OAG eWHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="pW53dv/u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si2238851ejy.634.2020.10.02.17.22.54; Fri, 02 Oct 2020 17:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="pW53dv/u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725764AbgJCAVo (ORCPT + 99 others); Fri, 2 Oct 2020 20:21:44 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:2214 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgJCAVn (ORCPT ); Fri, 2 Oct 2020 20:21:43 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 02 Oct 2020 17:21:30 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 3 Oct 2020 00:21:43 +0000 Received: from sandstorm.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Sat, 3 Oct 2020 00:21:43 +0000 From: John Hubbard To: Stephen Rothwell , Andrew Morton CC: Linux Next , LKML , , John Hubbard Subject: [PATCH v3 1/2] selftests/vm: fix an improper dependency upon executable script permissions Date: Fri, 2 Oct 2020 17:21:41 -0700 Message-ID: <20201003002142.32671-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201003002142.32671-1-jhubbard@nvidia.com> References: <20201003002142.32671-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601684490; bh=WuyiYWjWPWYyIxLJ4cAt9mzxpJiZtrYrsXWo+nyO5Dw=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=pW53dv/u8yw4i/CUrfXGZr76nPQNAoVZAaigSWV8j48+P9aJDTxYtG0RUrQxB6u+b /+6v2EGqxGcGYdkRap4cxnhbeqdPqkfoolwDqKrOIqTdM0h+e5kxZRo0w7joB3RyE2 ygIWyz0B4scLOf4Ybb3chRKxbrqRFwPs7DoHum3Y0C0QGXG4ZwEyK+BNxXAq6bWfUJ LZWS92LEYouNXJrAOP7eFuPUDuGSTsrua/QhT3iHOu2LHrd7oDy0E6JRl0oiDrIO1y AsG5Z3k62zP1H0LpMuMAUnnmHzuiUQFqwhoID2BlsbdG11QMStWZKRxnfeHe5d1y5o cUXeToPlXaRgg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs dependency") created the new check_config.sh file without the execute bit set. This is a problem because that same commit caused the Makefile to invoke it "./check_config.sh", so now "make" is failing in that directory. Scripts are not supposed to depend on the executable bit being set, because patch(1) doesn't set it, and using patch to install a kernel is supported. Therefore, this fix involves two parts: 1) Invoke the new script via /bin/sh, to fix the problem, and 2) As an nice touch, make check_config.sh executable as well. Fixes: commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlb= fs dependency") Signed-off-by: John Hubbard --- tools/testing/selftests/vm/Makefile | 2 +- tools/testing/selftests/vm/check_config.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 =3D> 100755 tools/testing/selftests/vm/check_config.sh diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/= vm/Makefile index 019cbb7f3cf8..a9332a7cf33f 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -138,7 +138,7 @@ $(OUTPUT)/hmm-tests: local_config.h $(OUTPUT)/hmm-tests: LDLIBS +=3D $(HMM_EXTRA_LIBS) =20 local_config.mk local_config.h: check_config.sh - ./check_config.sh $(CC) + /bin/sh ./check_config.sh $(CC) =20 EXTRA_CLEAN +=3D local_config.mk local_config.h =20 diff --git a/tools/testing/selftests/vm/check_config.sh b/tools/testing/sel= ftests/vm/check_config.sh old mode 100644 new mode 100755 --=20 2.28.0