Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp9324995ioo; Sun, 5 Jun 2022 11:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwASHGIgIb5j3FOlBcxnFGALvpJ5UcpsTnYxvasAs7KkA6iR+u7iLHw40jM8bxpdauCW1P9 X-Received: by 2002:a17:907:1690:b0:6f5:40d:f4bb with SMTP id hc16-20020a170907169000b006f5040df4bbmr17864096ejc.495.1654452240986; Sun, 05 Jun 2022 11:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654452240; cv=none; d=google.com; s=arc-20160816; b=xNb1hmj8NZxm8MCeFKjctg6p9c4ISjYJKFTQEqCzP0pO18OCwwFhmLEMnA/XUfwGTC kJmf57NZMntn+SuBE1ZfG3ST+pmNwV8KwimJGKx32+UXfe16f4YXi8TY19T+8xnD17Lt EVflb3UAcPsKgmX4KzNN/1vgh2fxZLdqPjnXz/y/oQmFurAxkAhZGFDbd4g5xT9buZoX Clga2RIUmwkJiPWbNmNGEL3GnHdQyT0/uQtoN3MR0pk0O5I7ThkW91jSUWTmQM8nJgGF xkc8bWCHGxxoNVjB1c9eVnXXw1KiTTNDrc4Kv/JBaOPiq4BQvFP1WCRyGdFpsQfZB2f8 XmrQ== 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; bh=6Qa+QIPtQalOTtqplXOlY9PBG0Gl2hRoS6xhbKbMYgU=; b=R8auRohovuz6XEvrWWlRBsscD+qwDj9yWA/zIk5KY4gYdJo6ZDbu9KNHQlWQxFVLPV aLKIAOLsfeM/Lm/ErYMaPG1OeDPC/IQiuRGh0kvjwPVJu34jUvkhiEr7O9qOAmi7ksO3 +uf/z5611F+rHfru64Omx9HGMvShbEnRELn0uDvrgpn4pKth4ntd92MIuXKx8LoYjmxo Wbj2F+RdAp6sV62qr0DEnYL7p3AVbwnrot8LZzuqx3fmm9dRyQnlfvItIc5PWdZK1OMI SG5FJbCcVxtDDVsSyf+8GGf9mqiu6vFk4ydhxaoKaXIEp/+o3VlTjIt/XE3LVVG2ta6/ /TQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb25-20020a1709077e9900b00711c769d7a7si2874190ejc.983.2022.06.05.11.03.34; Sun, 05 Jun 2022 11:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233684AbiFDNw7 (ORCPT + 99 others); Sat, 4 Jun 2022 09:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236433AbiFDNva (ORCPT ); Sat, 4 Jun 2022 09:51:30 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B55E8313A4 for ; Sat, 4 Jun 2022 06:51:29 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxUBb-0005eU-0c; Sat, 04 Jun 2022 15:51:27 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 175828C384; Sat, 4 Jun 2022 13:51:26 +0000 (UTC) Date: Sat, 4 Jun 2022 15:51:25 +0200 From: Marc Kleine-Budde To: Vincent MAILHOL Cc: linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Max Staudt , Oliver Hartkopp , netdev@vger.kernel.org Subject: Re: [PATCH v4 3/7] can: bittiming: move bittiming calculation functions to calc_bittiming.c Message-ID: <20220604135125.gdaldwbde5segvxo@pengutronix.de> References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220603102848.17907-1-mailhol.vincent@wanadoo.fr> <20220603102848.17907-4-mailhol.vincent@wanadoo.fr> <20220604112538.p4hlzgqnodyvftsj@pengutronix.de> <20220604124139.pg2h33zanyqs54q5@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hu7x2i5eoqf2vu6l" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hu7x2i5eoqf2vu6l Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 04.06.2022 21:56:23, Vincent MAILHOL wrote: > > I was thinking to order by CONFIG symbol and put the objects without an > > additional symbol first > > > > > By sorting the list, do literally mean to sort each line like this: > > > > > > obj-$(CONFIG_CAN_DEV) +=3D can-dev.o > > > can-dev-$(CONFIG_CAN_CALC_BITTIMING) +=3D calc_bittiming.o > > > can-dev-$(CONFIG_CAN_DEV) +=3D skb.o > > > can-dev-$(CONFIG_CAN_NETLINK) +=3D bittiming.o > > > can-dev-$(CONFIG_CAN_NETLINK) +=3D dev.o > > > can-dev-$(CONFIG_CAN_NETLINK) +=3D length.o > > > can-dev-$(CONFIG_CAN_NETLINK) +=3D netlink.o > > > can-dev-$(CONFIG_CAN_RX_OFFLOAD) +=3D rx-offload.o > > > > ...which results in: > > > > obj-$(CONFIG_CAN_DEV) +=3D can-dev.o > > > > can-dev-y +=3D skb.o >=20 > I see. But this contradicts the idea to do > | obj-y +=3D can-dev > as suggested in: > https://lore.kernel.org/linux-can/20220604112707.z4zjdjydqy5rkyfe@pengutr= onix.de/ Doh! That mail was totally wrong - I've send an updated version. > So, we have to choose between: > | obj-$(CONFIG_CAN_DEV) +=3D can-dev.o > | > | can-dev-y +=3D skb.o > | > | can-dev-$(CONFIG_CAN_CALC_BITTIMING) +=3D calc_bittiming.o > | (...) +1 > or: >=20 > | obj-y +=3D can-dev.o > | > | can-dev-$(CONFIG_CAN_CALC_BITTIMING) +=3D calc_bittiming.o > | can-dev-$(CONFIG_CAN_DEV) +=3D skb.o > | (...) >=20 > I have a slight preference for the second, but again, wouldn't mind to > select the first one. I think if can-dev is added to "obj-y" it will be always complied into the kernel. It will not be a module, if CONFIG_CAN_DEV configured as a module (which results in $(CONFIG_CAN_DEV) evaluate to "m"). Sorry for the confusion! Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --hu7x2i5eoqf2vu6l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmKbY1oACgkQrX5LkNig 0123zwf/YDkOnyfVZEWZ6KpNrYxRG2BTMIJuZln8TFlSPSSRDuY5KlbY3I6N+zDd Ccg/e1lih5sQIuyPu9ijctgEiCatW1cVeDBtk5iDxs3fI5QRRP0XOjfol0247v87 evOjfc8AZMdISZ2oK3+OHyIbLknH13iiaWAQM4UZ+n8xQg3wS2OeueUEKcR/lWMb 48U5iCUjN8I2nKeDw6PsFAdn8yRshJr2Kltg6rWOqFT7NB4uSXBiLnYCaLKeywlF msTvGA6myPLUvx2HgTclcTFcKmEvkPrWg/y03UqWKEq3h9uEbIMebkN6p5KCBbq7 fbDWie7VnC1Z0sEz/fdrqZ+MEx2PWA== =Qbeq -----END PGP SIGNATURE----- --hu7x2i5eoqf2vu6l--