Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbdCALQS (ORCPT ); Wed, 1 Mar 2017 06:16:18 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:32981 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813AbdCALQR (ORCPT ); Wed, 1 Mar 2017 06:16:17 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.wolfsonmicro.com Date: Wed, 1 Mar 2017 10:49:19 +0000 From: Charles Keepax To: Randy Dunlap CC: , LKML , Wim Van Sebroeck , Guenter Roeck , "Mark Brown" , Subject: Re: [PATCH -next] watchdog/wm831x: fix build when COMPILE_TEST is enabled Message-ID: <20170301104919.GL2742@localhost.localdomain> References: <8bb4874f-7d0e-225f-3a97-842c2d171c78@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <8bb4874f-7d0e-225f-3a97-842c2d171c78@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1703010102 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 25 On Tue, Feb 28, 2017 at 10:31:15AM -0800, Randy Dunlap wrote: > From: Randy Dunlap > > Fix kconfig dependencies when COMPILE_TEST is enabled so that > interdependent module dependencies are configured as needed. > > Fixes build when WM831X_WATCHDOG=m and COMPILE_TEST=y. > No other WM831X drivers are enabled. > The problem is in mixing tristate and boolean dependencies. > > ERROR: "wm831x_reg_write" [drivers/watchdog/wm831x_wdt.ko] undefined! > ERROR: "wm831x_reg_read" [drivers/watchdog/wm831x_wdt.ko] undefined! > ERROR: "wm831x_reg_unlock" [drivers/watchdog/wm831x_wdt.ko] undefined! > ERROR: "wm831x_reg_lock" [drivers/watchdog/wm831x_wdt.ko] undefined! > ERROR: "wm831x_set_bits" [drivers/watchdog/wm831x_wdt.ko] undefined! > > Signed-off-by: Randy Dunlap > Cc: patches@opensource.wolfsonmicro.com > Cc: Mark Brown > --- Acked-by: Charles Keepax Thanks, Charles