[lkml]   [2020]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] selftests/vm: fix: make executable
On 10/2/20 12:59 AM, Stephen Rothwell wrote:
> Hi John,
> On Thu, 1 Oct 2020 23:48:11 -0700 John Hubbard <> wrote:
>> commit 30fb9454ab23 ("selftests/vm: hmm-tests: remove the libhugetlbfs
>> dependency") created the new file without the execute
>> bits set. This is a problem because the Makefile runs it with "./", so
>> now "make" is failing in that directory.
>> The posted patch [1] does seem to have it as an executable file, so I'm
>> not sure how this happened. But in any case, make
>> executable again, so that "make" in selftests/vm works once again.
> The correct fix is to make sure that the Makefile runs it explicitly
> with a shell because is such a patch is applied with patch(1), the
> execute bit will not be preserved.
> See e.g. in the top level Makefile:
> $(CONFIG_SHELL) $(srctree)/scripts/ $@

OK...we should also fix it anyway, seeing as how the also needs
the execute bit re-set, yes?

So I guess I should send a patch that does:

* chmod +x on both and, plus

* invoke via $(CONFIG_SHELL) from the Makefile.

Does that sound about right?

John Hubbard

 \ /
  Last update: 2020-10-02 10:11    [W:0.067 / U:2.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site