Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4167470iob; Tue, 17 May 2022 15:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/1V8MG4hxz+48mVGWZT8GGQIR1na4inHaplqgn6y2IPj+ttlUcrmV7j+6Fx5zDLZcQ5iQ X-Received: by 2002:a05:6402:4383:b0:427:b18b:a1b with SMTP id o3-20020a056402438300b00427b18b0a1bmr21551954edc.80.1652828144410; Tue, 17 May 2022 15:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652828144; cv=none; d=google.com; s=arc-20160816; b=DGo/CjvT82NeMCZ9zJnVoGXBk4YSA5EXIMNd/ze1ZMI8ia7QU9PXjUHx3yDQtu6gBU us7JB6XrDv/rHJUtXm4gMEWUpTEF61uAXDuhmxAmUnarPI/SH71CSaRUUX5tQVkQhmf2 +8xT7Z4sRuxvu6snTaJ6wDSSREmDkZBAUaEoV/p/cUlOolRX4a10BN5qFFadPqyJ2XKo YonC2jt7WLzSfA/0omc4Ei5HVu9V2/S1D8Z9e9qHT3oShGtn5xrVpVUx8V6fwfWzm+BK 2wbmoUYgrwdU6G+AEASDT+rfdvMepy234Kk9pjnT6IXP/rErRqgkmJ+jXcv+MNs6MiV5 jxoA== 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; bh=ZwTUdkRg8ubqIGAkhH+00xEd3ogG8WDDHQd9rSc7Qbk=; b=nwqVUVGhVggfdGirzqJfsQBPtebwYQqikU7ZUIDPEJjVWnB64ImvSC/iBdLmRDDi5p VxNGiKJZFToUjG7GUV+Xx3t7HCg4uYmPsewUq+q5+cmMvOAKSAl2Fh9yghoIGNn0oCrJ OKbzKv4QFy9ion8AyB2QK9nqxMzOVVfn59WRcdyvd3K/CVNXAKZN5qS3uyfcC0dbP0xD DNW7QutA99ZpoQVxHK1FEhMQlx2BTrG1Ic4kfvV1HzLQid1tR+SDrg9Q5k/TD/cPY9IK WLUNZjpKF5OrttzNkf23/MN9YqW6jp/+KMwNcC5+2QKYzU4u2NVqlqjHn0a6S6Cl40n5 r1Sg== 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 g22-20020a170906539600b006f3a15fb801si486813ejo.454.2022.05.17.15.55.18; Tue, 17 May 2022 15:55:44 -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 S1351625AbiEQRxY (ORCPT + 99 others); Tue, 17 May 2022 13:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234949AbiEQRxU (ORCPT ); Tue, 17 May 2022 13:53:20 -0400 Received: from mail.enpas.org (zhong.enpas.org [IPv6:2a03:4000:2:537::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84DE33F88A; Tue, 17 May 2022 10:53:18 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id ECB4AFF9D7; Tue, 17 May 2022 17:52:41 +0000 (UTC) Date: Tue, 17 May 2022 19:52:28 +0200 From: Max Staudt To: Oliver Hartkopp Cc: Marc Kleine-Budde , Vincent MAILHOL , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v3 3/4] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c Message-ID: <20220517195228.1cb6ca16.max@enpas.org> In-Reply-To: References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220514141650.1109542-1-mailhol.vincent@wanadoo.fr> <20220514141650.1109542-4-mailhol.vincent@wanadoo.fr> <7b1644ad-c117-881e-a64f-35b8d8b40ef7@hartkopp.net> <20220517060821.akuqbqxro34tj7x6@pengutronix.de> <20220517104545.eslountqjppvcnz2@pengutronix.de> <20220517141404.578d188a.max@enpas.org> <20220517122153.4r6n6kkbdslsa2hv@pengutronix.de> <20220517143921.08458f2c.max@enpas.org> <0b505b1f-1ee4-5a2c-3bbf-6e9822f78817@hartkopp.net> <20220517154301.5bf99ba9.max@enpas.org> <22590a57-c7c6-39c6-06d5-11c6e4e1534b@hartkopp.net> <20220517173821.445c5e90.max@enpas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, 17 May 2022 17:50:03 +0200 Oliver Hartkopp wrote: > On 17.05.22 17:38, Max Staudt wrote: > > I'm a bit lost - what would CAN_DEV_SW do? > > It should be just *one* enabler of building can-dev-ko > > > If it enables can_dropped_invalid_skb(), then the HW drivers would > > also need to depend on CAN_DEV_SW directly or indirectly, or am I > > missing something? > > And CAN_DEV is another enabler that would build the skb stuff from > CAN_DEV_SW too (but also the netlink stuff). > > That's what I meant with "some Makefile magic" which is then building > the can-dev.ko with the required features depending on CAN_DEV_SW, > CAN_DEV, CAN_DEV_RX_OFFLOAD, CAN_CALC_BITTIMING, etc Ah, I see! Sounds good :) Max