From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B325FC433E2 for ; Tue, 15 Sep 2020 18:49:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7207621974 for ; Tue, 15 Sep 2020 18:49:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="Ok9Da4Vf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727947AbgIOSt3 (ORCPT ); Tue, 15 Sep 2020 14:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727871AbgIOR1G (ORCPT ); Tue, 15 Sep 2020 13:27:06 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDDEC061353 for ; Tue, 15 Sep 2020 10:25:22 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id y74so4915906iof.12 for ; Tue, 15 Sep 2020 10:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+B6SfTmbRLE/LfIRwMpjpXfXUi1jL1qvGc+N8ykkERI=; b=Ok9Da4Vf/W1wPTsr/vAXSayisJPsO041Aeg3Igtr8glIIqRJt13m1NF6tPwRYNSyaZ iiTvf20x/9ZAQtB1M1kujLkF7tqDVbkoDwsZTekDgSXBaDzhW1p2eKHRqCoKdwL2d/7s XzWHl8zJsur5ohdCESQBYpqRdfc+2wwomEbfXvGyIszSa4B45soiTt9SFJgPRi0Q76ED qfAS2TSpEK2sGKvFtM4j6+i3SaAVyBEIN1hXmzFLRQj7Lv1LCcRtDjKnYd3fnDnIRMhS 2SZeVMIiISGpuIhWMk3kt/5kprWN4GOxoIy3KXmQ6jYumkll88xi/x6NYBVocXk+CfXN cEMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+B6SfTmbRLE/LfIRwMpjpXfXUi1jL1qvGc+N8ykkERI=; b=L9B+Q83kVm4llznsUSX5WPBl0/nmh0/SJHsmkFPXPyOqxfB1h30mF9ewRmDdSSnVMD OvFc4b8Ob3KIWc3xDH4IUzIdZgDGo9UR6qUFuZ3NwSVBPWVIMbuVOO0CVYQqnpGJ8Y+I 64QH5Rq/5v0VQXtCt2zYs7WC5m65fLonXImZcVgFfB4B/BTnJdGCP+iQM2mhMJFT7VZJ APWUviZ3ec40yNX1vl3Gp4OZbD1fhwPldWJ1hFAOJ5xoUmyaYo15adzDuzK72GFjNpF0 jYHzujjKYk1tODi6hwGESqxTDVmgLKr4QGX3EKhDrdIKb7Dc+r56bmg7MZaJ+uGWQge+ 3wAg== X-Gm-Message-State: AOAM531nL3T19Wn9ea2mxn/+KLz/dXpYx86Ge6kuYKkHmfNtkhyAWBMw s/PaOtjX7Ca1gYMCet6qzM1KTA== X-Google-Smtp-Source: ABdhPJymvc5riRPwnED++gXip8Ks7OVyQSEGj+RzOI/P4r0s4LZBjXreZCcZFsoRDRY5VijDMlIrMw== X-Received: by 2002:a6b:6d07:: with SMTP id a7mr15724555iod.82.1600190721636; Tue, 15 Sep 2020 10:25:21 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id t10sm8071240iog.49.2020.09.15.10.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 10:25:20 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kIEhj-006WFS-Fg; Tue, 15 Sep 2020 14:25:19 -0300 Date: Tue, 15 Sep 2020 14:25:19 -0300 From: Jason Gunthorpe To: John Hubbard Cc: Andrew Morton , Shuah Khan , LKML , linux-mm@kvack.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 2/2] selftests/vm: fix incorrect gcc invocation in some cases Message-ID: <20200915172519.GL1221970@ziepe.ca> References: <20200915012901.1655280-1-jhubbard@nvidia.com> <20200915012901.1655280-3-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915012901.1655280-3-jhubbard@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 06:29:01PM -0700, John Hubbard wrote: > Avoid accidental wrong builds, due to built-in rules working just a > little bit too well--but not quite as well as required for our situation > here. > > In other words, "make userfaultfd" (for example) is supposed to fail to > build at all, because this Makefile only supports either "make" (all), > or "make /full/path". However, the built-in rules, if not suppressed, > will pick up CFLAGS and the initial LDLIBS (but not the target-specific > LDLIBS, because those are only set for the full path target!). This > causes it to get pretty far into building things despite using incorrect > values such as an *occasionally* incomplete LDLIBS value. > > Signed-off-by: John Hubbard > --- > tools/testing/selftests/vm/Makefile | 12 ++++++++++++ > 1 file changed, 12 insertions(+) I hit this too when fiddling with the hmm tests! Would be happy to see better errors Jason