Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2221486iof; Tue, 7 Jun 2022 23:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTklHVKwgIDE+3dc/PdAwVW4q108odalJFR5wzgECslPHv4v9wym/QHHWLLGTeLRZUtYb9 X-Received: by 2002:a05:6a02:184:b0:3fc:3b43:e5da with SMTP id bj4-20020a056a02018400b003fc3b43e5damr27915536pgb.587.1654670329928; Tue, 07 Jun 2022 23:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654670329; cv=none; d=google.com; s=arc-20160816; b=r4TDWGz2UUhBTL0FXye+GN838e/tFRwGzIQY7EVqFcdSd1qXTN+qG+nD0Dt42fOBVg kB8LSUD8Kvxcev/cjEwQk+5TcazjRJOJ4UgrOkiNt6o++HeiMFkAyCFFFCezEDyITJxq 85Iweq6uVIw5OXF2uSiT+pIqrPskYAySS3PnoG97hr9c/SV53dvj2Ki8706fk2iQdv10 eRHeM1cyFDu55edIvi2QitOwGfSMZ2PTKtmymLynHuHj7QlXJ+V6nHXoWdoxn6H1iqCS U4SdGxabZMWnbHNQZ9xS+ckONHRiovyiTrFymlDdKZvfHl7JPth+mTYDXJZcWkgEiNSz Iwug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=IN5450zBwA6OtZTL0wqq7wb89TCOazQRChGqvtVZGZQ=; b=l/DfFDHs8+t6d30Pu8tX2mBN3BhSrsqYEvI1DKOSJK5Kku+Bv+bVKkaQUPAu6A4D0u d1LDej77vCswfo9E+Q8t/ih2bs/TEJXiZl6FuMkE5PM/Cw9uJYtsTF6jFSpJj1a4Xog9 nWEeURTHwgNgONpUON2AzGq0T/nEaMT67DetepPo8Lw7o4r7sP7lmg5XxGY7a71wRwiz BxW82bBeH5cNKpDXrCm8ShJ9h5/3ScLR3BOmjuKkkfkPasXlndZdPR+ByIKwEQWea3nA yKz2B7NSAtmCr0gmDACb/InAlaBcFZDF2svBFMAawxB5v6wTDYvScA/wXCfcBXa69F2Z 8I1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NRdbU3ay; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q16-20020a63d610000000b003fc3c770296si27661874pgg.83.2022.06.07.23.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:38:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NRdbU3ay; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE1061476AB; Tue, 7 Jun 2022 23:01:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235432AbiFHC1s (ORCPT + 99 others); Tue, 7 Jun 2022 22:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446703AbiFHCVh (ORCPT ); Tue, 7 Jun 2022 22:21:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49BB010D5FA; Tue, 7 Jun 2022 17:14:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DD90CB82474; Wed, 8 Jun 2022 00:14:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6543CC34114; Wed, 8 Jun 2022 00:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654647296; bh=NXXoRp3O0lf2L8bwbUT1SM463oYDoMSvjZr5C8vGoKI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NRdbU3ay3EiyLv2foPiwz+TygNsWU7MyKzHKlESvJxuAb7eR63u681318bdo/MAXq FfjMqnCKgC6Ff50dOEsigEc6ZoyaRWfSYIpIwNZM6Fdo/dyrEvguprqmZgcXZAK3cb I7TZVDZxfHxjPR02m5i60tesHyvlqrPCTHr8jnJBG0e8lcMB6Z756AGB48/GfkpidO 2vbw8fevrDY2WVHgsIDrup82xjHl7nAnDu6HFmBIHdQPBPrVV7UGdMJQIESxOTbJ/M sJWGckCAEi5HSFl34k0Db1SqRUb3K9PgViCcOAbyzPgTcyUjHnqiZmmi9kNzp7I4yM 6EM1z0/POLoKw== Date: Tue, 7 Jun 2022 17:14:55 -0700 From: Jakub Kicinski To: Max Staudt Cc: Vincent MAILHOL , Geert Uytterhoeven , Marc Kleine-Budde , linux-can@vger.kernel.org, Linux Kernel Mailing List , Oliver Hartkopp , netdev Subject: Re: [PATCH v5 4/7] can: Kconfig: add CONFIG_CAN_RX_OFFLOAD Message-ID: <20220607171455.0a75020c@kernel.org> In-Reply-To: <20220608014248.6e0045ae.max@enpas.org> References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-5-mailhol.vincent@wanadoo.fr> <20220607182216.5fb1084e.max@enpas.org> <20220607150614.6248c504@kernel.org> <20220608014248.6e0045ae.max@enpas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 On Wed, 8 Jun 2022 01:43:54 +0200 Max Staudt wrote: > It seems strange to me to magically build some extra features into > can_dev.ko, depending on whether some other .ko files are built in that > very same moment, or not. By "magically", I mean an invisible Kconfig > option. This is why I think Vincent's approach is best here, by making > the drivers a clearly visible subset of the RX_OFFLOAD option in > Kconfig, and RX_OFFLOAD user-selectable. Sorry for a chunked response, vger becoming unresponsive the week after the merge window seems to become a tradition :/ We have a ton of "magical" / hidden Kconfigs in networking, take a look at net/Kconfig. Quick grep, likely not very accurate but FWIW: # not-hidden $ git grep -c -E '(bool|tristate)..' net/Kconfig net/Kconfig:23 # hidden $ git grep -c -E '(bool|tristate)$' net/Kconfig net/Kconfig:20 > How about making RX_OFFLOAD a separate .ko file, so we don't have > various possible versions of can_dev.ko? > > @Vincent, I think you suggested that some time ago, IIRC? > > (I know, I was against a ton of little modules, but I'm changing my > ways here now since it seems to help...) A separate module wouldn't help with my objections, I don't think.