From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754006AbaLVDCW (ORCPT ); Sun, 21 Dec 2014 22:02:22 -0500 Received: from mail-ig0-f169.google.com ([209.85.213.169]:34211 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753948AbaLVDCU (ORCPT ); Sun, 21 Dec 2014 22:02:20 -0500 Date: Sun, 21 Dec 2014 19:02:15 -0800 From: Dmitry Torokhov To: Jim Davis Cc: Stephen Rothwell , linux-next , linux-kernel , linux-input@vger.kernel.org, Grant Likely , Rob Herring Subject: Re: randconfig build error with next-20141219, in drivers/input/misc/regulator-haptic.c Message-ID: <20141222030215.GD30082@dtor-ws> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 19, 2014 at 09:13:02AM -0700, Jim Davis wrote: > Building with the attached random configuration file, > > drivers/input/misc/regulator-haptic.c: In function ‘regulator_haptic_probe’: > drivers/input/misc/regulator-haptic.c:184:2: error: implicit > declaration of function ‘devm_regulator_get_exclusive’ > [-Werror=implicit-function-declaration] > haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic"); > ^ > drivers/input/misc/regulator-haptic.c:184:20: warning: assignment makes pointer > from integer without a cast [enabled by default] > haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic"); > ^ > cc1: some warnings being treated as errors > make[3]: *** [drivers/input/misc/regulator-haptic.o] Error 1 Thanks, I'll add the missing dependency on CONFIG_REGULATOR. -- Dmitry