Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3170373pxk; Tue, 15 Sep 2020 11:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1oO03L0D3/gXHhFMcCC+kpVXxQRcwW5Udzk6jXAfnsGhsHIfixyi+517pAOHs+Fg40Z9n X-Received: by 2002:a17:906:37c6:: with SMTP id o6mr9938082ejc.404.1600196010725; Tue, 15 Sep 2020 11:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600196010; cv=none; d=google.com; s=arc-20160816; b=JQEv2NEsJ0nBsU7Mdno/tcrxh/1fTxAGLBll9brxJ4XVYj/mBF5aBR6WLx9n6fZozt YzLzYgFnww6GyMqKeM7P15Dw14OIvAuEpSrx1pAG6ivNyNkgAIPjfmQHBkRK2LNoHzmx LclvQXsp2MtEmWYch8pE5vT4MyV1oq8ACWEo/virnmG2EfIvnPCWzd2w7SkNU3cPf0ty gqPAuT+QBKmI0t4wDn9N3QrNhhFJ0w5SwqTlAPfgcXW1BTSsQXXAEGgaDDr3JV3AVUTM PH8CfhLk0DisjbSjBVBexgvG95kx3Rw8UsyvHt3ivW58d4G2z54UF3L5KkxvQcVxQja+ ZEUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+B6SfTmbRLE/LfIRwMpjpXfXUi1jL1qvGc+N8ykkERI=; b=urYVkkKRMyxctVGDiv8QiEM9LG69uGKv25t9XFaAX3KzlK6tJ7fjYF+t6rxLOZgNOp DwPQqylYGj6oYgRSnomgIOhGGI4M2Y0BnFSmfnQzzyuKyzn/Dktfwcbv4atHAAfggWfp cL16UdhWqW6Uqudr6qQJ+142PEOMS9XTRvrklYzZAbx0+SzTIFUu9oI5Kz5y1MtjRu/T qbD5HJyCLE/WHzkV/36eeOvWbKHdrSM7qKO9BR0SOcKv9S0CK4hOIFN6IZwf+p3wxV6i aDarE3LYAw7L1KzezyUdNcYIm9Y+F6cIEkvmYyuKVZYynch9qVXhYqqYozBcHBKkqyqN hTXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ok9Da4Vf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si10075647eds.459.2020.09.15.11.53.08; Tue, 15 Sep 2020 11:53:30 -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=@ziepe.ca header.s=google header.b=Ok9Da4Vf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727926AbgIOSt0 (ORCPT + 99 others); Tue, 15 Sep 2020 14:49:26 -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-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