Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp256176lqn; Thu, 11 Apr 2024 23:34:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXp2JVrLSEBzR7dnDqj49jhiGCXGT+G+62BJ2/l51lRlxad8GpU1guvIyrg/0YilhK8wK68UT0opfZOF3ReHTi+9LFi+kfbYbnx+hgKGA== X-Google-Smtp-Source: AGHT+IEOq7CGB+KqXNpFz62pWmk40RqDhWyVlWYXLVrf8m2p6C6+FI+cqOaQiNKM5vEweXR2DdGN X-Received: by 2002:a17:906:f590:b0:a4a:36e4:c3f9 with SMTP id cm16-20020a170906f59000b00a4a36e4c3f9mr4507342ejd.7.1712903693501; Thu, 11 Apr 2024 23:34:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712903693; cv=pass; d=google.com; s=arc-20160816; b=TuHfJleCKmY1qD5AA0JHkcI5oNqYhBC/ktZz1N4xi0SpT8p3jlwqWrcSMgoKP498mJ Z9LMiTb9vAMe1N0448zH2hxtYGGs0wQPEmNlL+cyW8Kvq7NDNIKurII5gR/fWIZmX2Gh aPfirKw7RtU24Z4PM4Vf0qlyId3qRuAkjypXDYZHdFJgblryrErdKJfsUoz4hF7ffS5Y /LS0GeaLunuOsaIHA2MM8Zu3Ny888Lg2Ax7zyi3KKsAH3PssAEwIFZC9wpUwWBv6C8DD 5DEJfWb6okVs+Vb/ORS+GJF1gdsvgaxv/MM4+TY3wlD0aKqqUgCRx2QN+a/CM+qkYY0m MoXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=uMw3xbxsk94Km6otipnOA1dkArr71xyJXb547qbTBks=; fh=7bGjZbNRq+moFbsSQzdiNGl1t7yUzY56s7CFF1p2JKA=; b=qwEJh93f9vWBEdzfzX/Ono2f1KJDU2wl8rK6NTBKKB2p3kQV7qs3oI1eDOmJaRJj78 3f//oVyEmoWxHfmlTT4DdDdOQYWEr3rhvkOeKKfw4NouDIMfXD7JAtGgw4ORwzs50nIg n8doTj4l86wGlBoNdHqYIsap0FuB7NAK5CIOpSqYJqyYE5Hs6Q5qZq3yPrulQRErSDDI EmnHT51sKpWN1sb+3xUv7oK9ol29n5nrnGcCtQ7xndC9CgA2rvS3/xQ/YZQsjRpiD4DA De5chrvrpLAdag/JqHAOxv1Q4EWnhlj+vyzIwMneoZbe/P5YzzOcP6eAsZ8PYg4RE9MH uu/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=avm.de); spf=pass (google.com: domain of linux-kernel+bounces-142045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x11-20020a170906b08b00b00a51dccf86b3si1404814ejy.737.2024.04.11.23.34.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 23:34:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=avm.de); spf=pass (google.com: domain of linux-kernel+bounces-142045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3E2CB1F2424A for ; Fri, 12 Apr 2024 06:34:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A11940BE3; Fri, 12 Apr 2024 06:34:44 +0000 (UTC) Received: from mail.avm.de (mail.avm.de [212.42.244.120]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDDCE47F73; Fri, 12 Apr 2024 06:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.42.244.120 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712903684; cv=none; b=YGr/pBC4KdT+5sfTsIloWBzuOth4BTWjwRkCT+kVvGqOD/Q/fa7zgGi7k2kqAwzowWSltdF6Yy7XDrioEzwM2X5Y8M+78SDSxQWBI6q1whK+1MT3TgGf+wbbJ2wvnNw+A3Ysw3evmtDnZzFPDpic9fly5KeKstELYRjO6bqNUg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712903684; c=relaxed/simple; bh=YimORL+yJ1Jg4ENKctqEw1m3ZDIHqs2suc/Ktwhr3Ug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q+FDNM4RUSMzIhzNKj+ZYPNAKTahBCnwko10j6H/dUoS4XHaolG4jsu0SlKw1d/UCetKm35aPdiZj5avIaEYLU/m5gMqnIc4BHtCiytww1el16ONqyl/jQwE2qf61HvE+riIZefQxSEq4ljnNqwMGncaGS3jknnZLSnsgg45ui8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fjasle.eu; spf=pass smtp.mailfrom=avm.de; arc=none smtp.client-ip=212.42.244.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fjasle.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de Received: from mail-auth.avm.de (dovecot-mx-01.avm.de [212.42.244.71]) by mail.avm.de (Postfix) with ESMTPS; Fri, 12 Apr 2024 08:34:31 +0200 (CEST) Received: from buildd.core.avm.de (buildd-sv-01.avm.de [172.16.0.225]) by mail-auth.avm.de (Postfix) with ESMTPA id EE57E8053B; Fri, 12 Apr 2024 08:34:31 +0200 (CEST) Received: by buildd.core.avm.de (Postfix, from userid 1000) id E04A5180C43; Fri, 12 Apr 2024 08:34:31 +0200 (CEST) Date: Fri, 12 Apr 2024 08:34:31 +0200 From: Nicolas Schier To: "Daniel Walker (danielwa)" Cc: "Valerii Chernous -X (vchernou - GLOBALLOGIC INC at Cisco)" , Masahiro Yamada , Nathan Chancellor , "xe-linux-external(mailer list)" , Jonathan Corbet , "linux-kbuild@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] Add MO(mod objs) variable to process ext modules with subdirs Message-ID: References: <20240405165610.1537698-1-vchernou@cisco.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-purgate-ID: 149429::1712903671-2B7DCE5F-99954997/0/0 X-purgate-type: clean X-purgate-size: 2978 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean On Thu, Apr 11, 2024 at 08:50:10PM +0000, Daniel Walker (danielwa) wrote: > On Thu, Apr 11, 2024 at 09:25:35PM +0200, Nicolas Schier wrote: > > On Thu, Apr 11, 2024 at 05:27:42PM +0000 Daniel Walker (danielwa) wrote: [...] > > > If that were true we would not have driver/uio/ for example. It seems like > > > Cisco and NVM should work together produce a solution. > > > > > > You could run into this issue even with entirely in tree modules. For example, > > > we may have a v6.6 kernel but we need some modules from v5.15 for some incompatibility > > > reason in v6.6. Then we may build the v5.15 modules as out of tree modules > > > against the v6.6 kernel. > > All problems should be fixed or worked around. One bit of code maybe isn't > the best choice or maybe another is, but not fixing or working around the > problem is not really an option. Let me sum up: It is possible to build out-of-tree kmods with subdirs in their source tree. The patch attempts to put support for _out-of-source builds_ of out-of-tree kmods with subdirs into kbuild itself. If you really out-of-source builds for your complex out-of-tree kmods, than, as a "work-around", you can simply put those 'src' override lines into your oot-Kbuild files. But you probably know that already, right? > > If your in-tree module in question does compile and run properly in v5.15 and > > in v6.6: why don't you just compile it in-tree in v6.6? Which driver/module do > > you refer to? > > I believe it was this driver drivers/crypto/marvell/octeontx2 . I don't recall > every aspect of the issues but it has to do with what Marvell supported in their > SDK and the exact hardware we were using and the bootloader we had on the > product. > > > > You also have just normal developers making kernel modules which always start as > > > out of tree modules before they are upstreamed. Those modules could be any level > > > of complexity. > > > > I do not agree, but there is no need to convince me as I am not in the position > > to decide between acceptance or denial. I just thought it might be fair to > > warn that I do not expect acceptance. > > I think it's incorrect, unhealthy even, to look at it that way. If your using > Linux to make a product and you have an issue, it should be consider as a real > issue. Not something maintainer can just discard. Unless the maintainer has > a suggestion to do what is needed or different code to do it. > > Daniel Daniel, I am confused about the outcome from your argumentation that you might expect. And I think, I as a spare-time reviewer (not maintainer), am not the one you want to argue with. If you have a concrete technical issue or bug, please explain it concretely to linux-kbuild and we will probably find someone trying to help you. If you want me to hide critical thoughts when reviewing patches under your pillow, then please tell me so. Have a nice weekend, Nicolas