Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2209296lqo; Mon, 13 May 2024 10:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNzRvTgsx18yxqhXs63glUOvdShfzPVzFTcxAeXvouqmPb+SYnpkaDTKWvDD8iOJFyK6IaqeS9I6zwfjxp403ZWQ9NI0H6Be0lssxYXA== X-Google-Smtp-Source: AGHT+IFpv+Kl8JZ2X/YZaMH7n6uSfef/TfD27oHHrf6jbZAaIB82hXqC545nHrGjEfjEU4/hRoSd X-Received: by 2002:ac2:5331:0:b0:51d:a8ce:540 with SMTP id 2adb3069b0e04-5220fd7bb24mr8699237e87.35.1715622884703; Mon, 13 May 2024 10:54:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715622884; cv=pass; d=google.com; s=arc-20160816; b=nRp3PcbWK1+dpszd287xUza+K4VQZv7sxs9J0hKfeuEN8l5hbrEz7uoygq2rV2pKm1 UBNWiq40WY0z7HbCyLM9Q0CT4+/WwfKKRTfmc3nftbqQ/O+vW76vqKCzzk9wD6Ap+H42 lF5MYIwnF32zLKb0M0mxTzRzm/lJgJu7UUMcsso3p52ZP+1SiPa0eS5yljsIOF4DoJN8 jzPIf7728xMZVtCRzvTiw0vCu7LfRZ2QAnBwEWM+nuvaEVeHMUUn8mveOnRILL16kZ7h kwn3lJe538p/RmgCR9ZnSWDCSoFbJi69P6/h5VpSrXUuLyXWSPTox23fub4Q5ewHtFtL m/6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0tvSw3k87a575SAtJyC80sy4OD60RZdZ41G3YevCSck=; fh=OFmq+UUjpur9MV32jfOcsGnGCQE3OIzZu/7TbeebgyI=; b=bSfX5tfsY3FUtfIJ6V5XU3VnKEIWlTjgd4Igd6GQ3RY5NZC7OkBSKZ31HHl5v6hgUQ sn/rmONTmLGxmgCEtnu4+I1TSwJ8Z/XTaSOTG30fQEFf6J8mlvxeSR/bczqXytDn0J8R agGZpjr+De/MfUBfCILLR6w7xOftUJ4Ww83mVztXkoWwqJVXefSmyEjYY/B2EjzJFawx XedfLOE777PkyamYhYu9yPJQx9omNPofI28kBGr1a/I+IuzyKurYb1Ri1HF/UmLF7BQy VhR6+z4H4K8KDpNmvHyRKcNdlrVEgOhOOl8VdVBW5jkDs4ClQPovhan+JkUYSoXax7DF C/Xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lCePoxvP; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-177943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a54959a44si261101266b.555.2024.05.13.10.54.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 10:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lCePoxvP; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-177943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 6CFB61F21FF0 for ; Mon, 13 May 2024 17:54:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 325A729422; Mon, 13 May 2024 17:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="lCePoxvP" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C338824B2A for ; Mon, 13 May 2024 17:54:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715622877; cv=none; b=AGCCcZiOsV24dMz4EtzwLhMejCOPm4qyms19SpLuEBdu6i2rmwegkr20DZP/Onum1bjw2cyIAhhJk7273vezhWKzqaK/E/SohCaxAtB/C8Uypyc1+ddzLH8sUMdvd5OOr4odwenANyUKBHB0z4lJJGB6JYUqQzrT8u3jOdMJb2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715622877; c=relaxed/simple; bh=a/lbExuQyrYuQJQSUEnp9PA7ZrF8EE72p4WqgRxVGaQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=izEeMjtha+Bhp8Nj6gN9vww6F1x3O3Ko8RfYbCdF24WPfK5jSz0qIHqLaZb18dbjemmh6QXjGHW4uIIcp9fHQnI6ivUBYgALm4Zq5+UE6TeQwXD+8vFfZmrJcni3gF9Tap5oQ9WYNaBSUVITfirBbbCYO2pkq7TRbW23xJ5U27I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=lCePoxvP; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=0tvSw3k87a575SAtJyC80sy4OD60RZdZ41G3YevCSck=; b=lC ePoxvPLqxi9vLMZINKCS1xfwtdIB6OpniirjTG6UGSO0DLS2tSRRXK7jskwZsKLrbdq+vWy5D9S6S g7IIRrhEOkHqd5ElaWHlNI2IvaVe2dDm30nF0A7ovl+hWag8xe5DKFOFUU/GWEvdTcrnxSNbLq9fE EAWJP2X6j9BJ9ZY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s6Zsf-00FKL7-3o; Mon, 13 May 2024 19:54:33 +0200 Date: Mon, 13 May 2024 19:54:33 +0200 From: Andrew Lunn To: Stephen Langstaff Cc: Florian Fainelli , linux-kernel@vger.kernel.org, "OlteanV@gmail.com" Subject: Re: drivers/net/dsa/dsa_loop_bdinfo.c build problems Message-ID: References: <338daebd-b4af-4a0c-951a-ad7f86dc4646@gmail.com> <7efffaa0-6330-4b01-b3d2-63eb063cbbb0@gmail.com> <212a9464-d52b-4730-95b9-5a0aebd38c91@gmail.com> <688e54ec-3b29-4e3b-a2c3-f2c83b9c97b7@lunn.ch> 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 Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, May 13, 2024 at 06:40:19PM +0100, Stephen Langstaff wrote: > On Mon, May 13, 2024 at 5:54 PM Andrew Lunn wrote: > > As Florian pointed out, dsa_loop_bdinfo.o should be built into your > > kernel. When you insmod dsa_loop.ko, it should match the data in > > dsa_loop_bdinfo to the dsa_loop driver an instantiate an instance of > > it. Do you see that happening? > > Well, if I fiddle with the Makefiles to get dsa_loop_bdinfo built as a > module (as opposed to not building at all) then I see the following > behaviour: > > root@machine:~/dsa_test# ls > dsa_loop.ko dsa_loop_bdinfo.ko > root@machine:~/dsa_test# modprobe dsa_core > root@machine:~/dsa_test# insmod dsa_loop_bdinfo.ko > root@machine:~/dsa_test# insmod dsa_loop.ko > root@machine:~/dsa_test# lsmod > Module Size Used by > dsa_loop 16384 0 > dsa_loop_bdinfo 16384 0 > dsa_core 118784 1 dsa_loop > ... > > ...and I see no new interfaces reported by ifconfig -a > [just the existing eth0, eth1 and lo0 interfaces] > > I will revert my changes to the Makefiles and confirm that > dsa_loop_bdinfo.o does not get built into the kernel - that's an > overnight build for me so bye for now! I think most developer cross compile the kernel on a big machine. I also tend to build in everything i need, so its all in one file, which i get uboot to tftpboot. It makes the whole build/boot/crash cycle much master. Andrew