Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751828Ab2JCCX4 (ORCPT ); Tue, 2 Oct 2012 22:23:56 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:53043 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187Ab2JCCXz (ORCPT ); Tue, 2 Oct 2012 22:23:55 -0400 Date: Tue, 02 Oct 2012 22:22:38 -0400 (EDT) Message-Id: <20121002.222238.1580734803370802133.davem@davemloft.net> To: haicheng.li@linux.intel.com Cc: netdev@vger.kernel.org, tshimizu818@gmail.com, linux-kernel@vger.kernel.org, haicheng.lee@gmail.com Subject: Re: [PATCH 1/2] Fix build error caused by broken PCH_PTP module dependency. From: David Miller In-Reply-To: <50654A62.5090003@linux.intel.com> References: <506546A7.7030500@linux.intel.com> <20120928.024621.1635385815700269914.davem@davemloft.net> <50654A62.5090003@linux.intel.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1876 Lines: 51 From: Haicheng Li Date: Fri, 28 Sep 2012 14:57:38 +0800 > On 09/28/2012 02:46 PM, David Miller wrote: >> From: Haicheng Li >> Date: Fri, 28 Sep 2012 14:41:43 +0800 >> >>> On 09/28/2012 06:09 AM, David Miller wrote: >>>> Look at how other people submit patches, do any other patch >>>> submissions >>>> look like your's having all of this metadata in the message body: >>> I'm sorry for it. >>> >>>> As for this specific patch: >>>> >>>>> - depends on PTP_1588_CLOCK_PCH >>>>> + depends on PTP_1588_CLOCK_PCH = PCH_GBE >>>> >>>> This is not the correct way to ensure that the module'ness of one >>>> config option meets the module'ness requirements of another. >>>> The correct way is to say something like "&& (PCH_GBE || PCH_GBE=n)" >>> >>> This case is a little bit tricky than usual, with PCH_PTP selected, >>> the valid config would be either "PTP_1588_CLOCK_PCH=PCH_GBE=m" or >>> "PTP_1588_CLOCK_PCH=PCH_GBE=y", and PTP_1588_CLOCK_PCH depends on >>> PCH_GBE. >> >> And a simple "&& PCH_GBE" should accomplish this, no? > No sir. it's actually same with the original Kconfig (by a if > PCH_GBE"), it just failed with this config: > > CONFIG_PCH_GBE=y > CONFIG_PCH_PTP=y > CONFIG_PTP_1588_CLOCK=m The correct fix is to make the Kconfig entry for PCH_PTP use a "select PTP_1588_CLOCK" instead of "depends PTP_1588_CLOCK" I'll apply this fix. The is another, extremely convoluted, way to do this, which is what the SFC driver does which is: depends on SFC && PTP_1588_CLOCK && !(SFC=y && PTP_1588_CLOCK=m) but that looks horrible to me. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/