Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3981071pxk; Tue, 29 Sep 2020 10:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzGFkb8B4lb86O2I/FmNqWkKgatAbF3s8Pw1+ytbz/u1T4G8HbnmEMa3DyuMoYORKoxr2b X-Received: by 2002:a17:906:a2d9:: with SMTP id by25mr5229163ejb.326.1601402205556; Tue, 29 Sep 2020 10:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601402205; cv=none; d=google.com; s=arc-20160816; b=0sSTuUauRke1hlU4KkFTYmre88oVfpuKQdS9KGSvWUb03Mz0yRDM0fEbAd/RGowZiY QY8IrLEX5A33W2C2gOnAEThB+v7tYK+WMnfr5QYE3XjjCJtyT8xlrWUvHj/qYashUys2 7geJIuHp8wrsPHPt6L6l79j2iv4oFQ3/8fd9eJLKGpiO++FdTkF6b4ldGtTk2N3EioUn yT3GjCmM3d9i4jbJEdx92i9XZ7b5Jr9u0AmbkFpbavW+qb42Ary4sdigAda5LlIiF0BG 00qJyr7yXQK6p4NP14aVycSBZLfBLcFW/yA2GbboxcjVIF6sIxXHIuFnD3sxlyTR9nmU Fl/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7ZNnkzAFolvu6loEFUCNXafFTWzkfs/zAnBvd6ABHu4=; b=F1KxWwIHvOD+55qfaQeMsa/RDeq0H9TomnE1cZfkUIfTkOQH6UY5+yddmVi83nc2kj sFyZ9ZSVY9ijT4HCewm+wLrKP2w/985HiPHt/BQUmfTTTQunGRCMJ34E5e7NsJ1F+jZb tKoSx/YpXxWCkDiO6+4g6jaHuu+MZO7HKi9FU38iOeIj+8Z7SMUCXM//5XHAgTnFcLWd RB4lvblqQi0zeZvy7Fraz2fcZzIF2+XMeDdUonQxeJXddOS0IR9F9/FxqD3B+XTD5LNk O6btyTQZeESlry53G6EEfacBCKMdHdafViJV8w4RIzlLQbXN+zYxA4B88ohCY8Gc+7ac 5BXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ZpTZHWVv; 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 x11si1045204ejj.528.2020.09.29.10.56.22; Tue, 29 Sep 2020 10:56:45 -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=ZpTZHWVv; 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 S1727886AbgI2Rz1 (ORCPT + 99 others); Tue, 29 Sep 2020 13:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgI2Rz0 (ORCPT ); Tue, 29 Sep 2020 13:55:26 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ACF7C0613D1 for ; Tue, 29 Sep 2020 10:55:26 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id d20so5221180qka.5 for ; Tue, 29 Sep 2020 10:55:26 -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=7ZNnkzAFolvu6loEFUCNXafFTWzkfs/zAnBvd6ABHu4=; b=ZpTZHWVvwxozfjUlDLnIpEwgeqdqJOUtrAs7iTklXyJsXWIZCE/UCcbieWAuzgy0Xb UlE2fIZWIwUB/1ZuycAItnHPYWfjLcbdHspaMc+oCeIJtx4xhqkwdaKnR3aWXJRHcuPR 3+myR0wJOTuJ4zbdcjAR2EYfLImD2FRBurs1gZXzpLFNQBOSXDa8Qb+HqODbUqAkqIe1 J7ncyzuDahlWYxtz42s+FYC6hfqNXGFl7KA1fHerNFAPXK0EkD66RlRRAPeakBY8l420 DFzD1qmnUpasrmcgpc0Te4FnzOd6pFxnRY1BvdgqEARYAj4MjkRtCDe2TfXgMQjukv81 3UjQ== 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=7ZNnkzAFolvu6loEFUCNXafFTWzkfs/zAnBvd6ABHu4=; b=M1+2kAcZuuqk+2n77sHnZpOTtpqp6V+Uk4+nZj/ay18WbV1krEvnTlZFUA4IH6215t x2KysxMxt01NUWYjNA6BQmjtJj32OfuvQlwLioeVUTKiGDQ1KU6nsye1fgTSaaxIxRS4 ZrUKMRaRh5M9EbyK2NZ0y9zeaxaddBmP8KcRJT236ExMcxPcTtqihqmWx2N5aALis/JO BMWVsw9hYLbHi0X1OSh3291HpACAGJlyR/OIOCg/tmjemaIBjE/o26/dS3akpALpEivn YEzbT0mOFMeY8QqPqUEBYtD0B0Y34EiryMu4BWMnrJElGW7x8qrfQVDemmeGUS0/EO/C JXFQ== X-Gm-Message-State: AOAM5333t1mfcxFQL1o8pO8LNJLzLc9v5hm2GT1D1syoCQUasL00u2VP cALeEpuKitn4XmysiNmRm1DNvQ== X-Received: by 2002:a05:620a:1657:: with SMTP id c23mr5436789qko.382.1601402125757; Tue, 29 Sep 2020 10:55:25 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id a3sm6216379qtp.63.2020.09.29.10.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 10:55:25 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kNJqW-003DRg-DU; Tue, 29 Sep 2020 14:55:24 -0300 Date: Tue, 29 Sep 2020 14:55:24 -0300 From: Jason Gunthorpe To: John Hubbard Cc: Andrew Morton , Jonathan Corbet , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Ralph Campbell , Shuah Khan , LKML , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 2/8] selftests/vm: use a common gup_test.h Message-ID: <20200929175524.GX9916@ziepe.ca> References: <20200928062159.923212-1-jhubbard@nvidia.com> <20200928062159.923212-3-jhubbard@nvidia.com> <20200928125739.GP9916@ziepe.ca> <6481e78f-c70d-133a-ff4a-325b5cd8fd5d@nvidia.com> <20200929163507.GV9916@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 10:44:31AM -0700, John Hubbard wrote: > On 9/29/20 9:35 AM, Jason Gunthorpe wrote: > > On Mon, Sep 28, 2020 at 01:10:24PM -0700, John Hubbard wrote: > > > On 9/28/20 5:57 AM, Jason Gunthorpe wrote: > > > > On Sun, Sep 27, 2020 at 11:21:53PM -0700, John Hubbard wrote: > > > > > diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile > > > > > index d1ae706d9927..9cc6bc087461 100644 > > > > > +++ b/tools/testing/selftests/vm/Makefile > > > > > @@ -130,3 +130,5 @@ endif > > > > > $(OUTPUT)/userfaultfd: LDLIBS += -lpthread > > > > > $(OUTPUT)/mlock-random-test: LDLIBS += -lcap > > > > > + > > > > > +$(OUTPUT)/gup_test: ../../../../mm/gup_test.h > > > > > > > > There is no reason to do this, the auto depends will pick up header > > > > files, and gup_test.h isn't a generated file > > > > > > Oh, I misread your comment! You were talking about this Makefile > dependency that I'm adding, rather than the ../'s in the path. > > Well, for that though, it also has to stay as shown in this patch, > because of this: > > I don't see any "gcc -m" type of dependency generation pass happening > in this relatively simple Make system. It happens with -MD, all the deps are stored in files like mm/.init-mm.o.cmd and sucked into the build. > And so, without including an explicit header file dependency (at > least, that's the simplest way), changes to gup_test.h are not > detected. Shouldn't be > Both the Makefile code and the observed behavior back this up. (I > expect that this is because there is less use of header files in > this area, because most unit tests are self-contained within a > single .c file.) Something else is very wrong then. Jason