Skip to content

selftests/vm: fix some minor aggravating factors in the Makefile

John Hubbard linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged] selftests-vm-fix-incorrect-gcc-invocation-in-some-cases.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/vm: fix false build success on the second and later attemptstools/testing/selftests/vm/Makefile+5 -00 repliesApplied
2/2selftests/vm: fix incorrect gcc invocation in some casestools/testing/selftests/vm/Makefile+12 -01 replyApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] selftests/vm: fix some minor aggravating factors in the Makefile

Hi,

This fixes a couple of minor aggravating factors that I ran across while trying to do some changes in selftests/vm. These are simple things, but like most things with GNU Make, it's rarely obvious what's wrong until you understand *the entire Makefile and all of its includes*.

So while there is, of course, joy in learning those details, I thought I'd fix these little things, so as to allow others to skip out on the Joy if they so choose. :)

First of all, if you have an item (let's choose userfaultfd for an example) that fails to build, you might do this:

$ make -j32
    # ...you observe a failed item in the threaded output

# OK, let's get a closer look

$ make
    # ...but now the build quietly "succeeds".

That's what Patch 0001 fixes.

Second, if you instead attempt this approach for your closer look (a casual mistake, as it's not supported):

$ make userfaultfd
    # ...userfaultfd fails to link, due to incomplete LDLIBS

That's what Patch 0002 fixes.

John Hubbard (2):
selftests/vm: fix false build success on the second and later attempts selftests/vm: fix incorrect gcc invocation in some cases

 tools/testing/selftests/vm/Makefile | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Signature · 1 line
2.28.0