Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755199Ab2HaXBb (ORCPT ); Fri, 31 Aug 2012 19:01:31 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:63810 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753714Ab2HaXB3 (ORCPT ); Fri, 31 Aug 2012 19:01:29 -0400 MIME-Version: 1.0 In-Reply-To: <1346204124.13176.0.camel@phoenix> References: <1346204124.13176.0.camel@phoenix> Date: Sat, 1 Sep 2012 01:01:28 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpio: mc9s08dz60: Fix build error if I2C=m From: Linus Walleij To: Axel Lin Cc: Grant Likely , Wu Guoxing , Sascha Hauer , Marc Kleine-Budde , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1240 Lines: 29 On Wed, Aug 29, 2012 at 3:35 AM, Axel Lin wrote: > Make GPIO_MC9S08DZ60 depend on I2C=y, this fixes below build error: > > LD init/built-in.o > drivers/built-in.o: In function `mc9s08dz60_get_value': > clk-fixed-factor.c:(.text+0x7214): undefined reference to `i2c_smbus_read_byte_data' > drivers/built-in.o: In function `mc9s08dz60_set': > clk-fixed-factor.c:(.text+0x727c): undefined reference to `i2c_smbus_read_byte_data' > clk-fixed-factor.c:(.text+0x72bc): undefined reference to `i2c_smbus_write_byte_data' > drivers/built-in.o: In function `mc9s08dz60_i2c_driver_init': > clk-fixed-factor.c:(.init.text+0x290): undefined reference to `i2c_register_driver' > drivers/built-in.o: In function `mc9s08dz60_i2c_driver_exit': > clk-fixed-factor.c:(.exit.text+0x2c): undefined reference to `i2c_del_driver' > make: *** [vmlinux] Error 1 > > Signed-off-by: Axel Lin Patch applied. Freescale folks: yell if you disagree. Thanks! Linus Walleij -- 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/