From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.242]) by ozlabs.org (Postfix) with ESMTP id 0F48ADE303 for ; Sat, 7 Jun 2008 01:19:52 +1000 (EST) Received: by ag-out-0708.google.com with SMTP id 8so3384475agc.0 for ; Fri, 06 Jun 2008 08:19:51 -0700 (PDT) Message-ID: Date: Fri, 6 Jun 2008 09:19:50 -0600 From: "Grant Likely" Sender: glikely@secretlab.ca To: "Scott Wood" Subject: Re: [PATCH] phylib: Don't allow core of phylib to build as a module In-Reply-To: <48448020.5020407@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <484419EE.5040503@garzik.org> <1E4EB64C-0618-497E-AABC-74EB7D74B97F@kernel.crashing.org> <48442239.7090906@garzik.org> <83820D83-487C-4586-9867-F4226A87A276@freescale.com> <48445851.4090105@garzik.org> <095F258F-72DD-4F27-A457-A57D9FAA1E76@kernel.crashing.org> <48448020.5020407@freescale.com> Cc: netdev@vger.kernel.org, Jeff Garzik , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Jun 2, 2008 at 5:20 PM, Scott Wood wrote: > Kumar Gala wrote: >> I think we'd be better off with a small stub that is always built into the >> kernel for phy_read/phy_write, etc or the function pointer indirection >> mechanism. > > And then instead of build failures, you'd get a silent runtime failure to > apply the workaround if phylib is built as a module. Indeed; I vote for the build failure over the silent runtime failure. If a platform needs it and does not select it, then the platform is broken and it is a bug. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.