Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11009966ybi; Thu, 25 Jul 2019 08:28:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwv+W9KFxlExXBgvzcqe3Ce3nces7+4dCUqAOlJRz9OGQO1q/jPhWrD3m+8rDt3m61ig+J X-Received: by 2002:a17:90a:26ea:: with SMTP id m97mr93617750pje.59.1564068499002; Thu, 25 Jul 2019 08:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564068498; cv=none; d=google.com; s=arc-20160816; b=iLK0g6Qya4s977UddNd/B4ql/Park1UamjzYcqv7zlEiH4MpNXJ8/tdra1MTFrJ7RB X3w7NptEf7qNNZGe2HNULL0Q80yiXtcDazcx83a3Bpf39nE17/j/Q+i1k7l1Oza+rZTZ pA8RJppdPBOlpJWGfcC2ilwQaMCXTUuuHMIIT1PRlCEV3IWXxdLQm62COgKovqD5dF5T hdNXNfTm+DIVGEVhEkH2rCZaNGQIDxxDVhg0Tm4iv1UODooqOtkhOC76kYdLi9naobZL ZYbyM/EsJspKnV6XKYqE1Mj/P0pvy5MMC3cs6N6ep5179umyAtBEEyBCTUMB24atbpaq JoQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0gNRZiTPf+ZY4F6SX5w7WeTAv0opmQiYao9k8wlMewI=; b=C95UDXwf1wqLnSud6jTXRfahIppVcLXM1iO/PRXti9CePj/0L0cdd2TOHot2etsCFw rAWzPrmSdZkTuY0tq92O0efgkNdsvWZs3BJoVvVJbRxFH9Yh+iQZJNduhZ42IRYaGuLR OQJxjcQEpPGS4T7rJcZqPXRjCEi/CAjMOfSA4InDgXR5/Hab2tC6KXPTP3MBGRuw8laW 8UZR3GzsuRk364Iju1dXGujwTu6hkAuI86ihnOOICZAkYnvstlv0q9CAZiZd48wF8YFy DBYqwJuH7y84L4Gfwg+TLzoOIM5vRNtIEtIEaH/NriRP5B5Kvbf35ZuuUN5UG7vL4F94 jTHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si16595197pjt.94.2019.07.25.08.28.04; Thu, 25 Jul 2019 08:28:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389092AbfGYP1L (ORCPT + 99 others); Thu, 25 Jul 2019 11:27:11 -0400 Received: from gecko.sbs.de ([194.138.37.40]:59964 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388457AbfGYP1L (ORCPT ); Thu, 25 Jul 2019 11:27:11 -0400 Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id x6PFR12c018059 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jul 2019 17:27:01 +0200 Received: from [139.23.76.89] ([139.23.76.89]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x6PFR1oM018756; Thu, 25 Jul 2019 17:27:01 +0200 Subject: Re: [PATCH v3 07/12] kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod To: Masahiro Yamada Cc: Linux Kbuild mailing list , Joe Lawrence , Michal Marek , Linux Kernel Mailing List References: <20190717061800.10018-1-yamada.masahiro@socionext.com> <20190717061800.10018-8-yamada.masahiro@socionext.com> <230d2ca1-19cd-b60e-1b1b-6d7413eea9e2@siemens.com> From: Jan Kiszka Message-ID: <0ee802e1-5563-3615-d08f-c936d4e96ebc@siemens.com> Date: Thu, 25 Jul 2019 17:27:00 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.07.19 17:18, Masahiro Yamada wrote: > Hi Jan, > > On Thu, Jul 25, 2019 at 5:39 PM Jan Kiszka wrote: >>> >> >> This affects also external modules builds: I have patterns here that do >> >> [Makefile] >> subdir-y := some-module >> >> [some-module/Makefile] >> obj-m := some-module.o >> >> and since this patch, the final some-module.ko is no longer built. Am I missing >> something in the kbuild makefiles, or is this a regression? > > Thanks for the report. > Interesting. I have never imagined that Makefiles were written like that. > > I just wrote a fix-up, but I have not determined to apply it. > https://patchwork.kernel.org/patch/11059033/ > > It is easy to fixup your Makefile, though. Thanks for addressing this quickly! I'm happy to adjust our code [1]. Is the suggested pattern usable with recent stable kernels as well, say down to 4.4 at least? Jan [1] https://github.com/siemens/jailhouse/blob/master/Kbuild#L54 -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux