Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932407Ab2HOUBr (ORCPT ); Wed, 15 Aug 2012 16:01:47 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:46990 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932137Ab2HOUBn (ORCPT ); Wed, 15 Aug 2012 16:01:43 -0400 Message-ID: <502C0022.2020106@suse.cz> Date: Wed, 15 Aug 2012 22:01:38 +0200 From: Jiri Slaby User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120731 Thunderbird/15.0 MIME-Version: 1.0 To: Geert Uytterhoeven CC: linux-kernel@vger.kernel.org, dirk.brandewie@gmail.com, khali@linux-fr.org, linux-i2c@vger.kernel.org, Michal Marek , linux-kbuild@vger.kernel.org, jbaron@redhat.com, ben-linux@fluff.org, Jiri Slaby Subject: i2c-designware-core: KBUILD_MODNAME undeclared [was: Build regressions/improvements in v3.6-rc1] References: <1344072256-13170-1-git-send-email-geert@linux-m68k.org> In-Reply-To: <1344072256-13170-1-git-send-email-geert@linux-m68k.org> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 31 On 08/04/2012 11:24 AM, Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v3.6-rc1[1] compared to v3.5[2]. ... > + drivers/i2c/busses/i2c-designware-core.c: error: 'KBUILD_MODNAME' undeclared (first use in this function): This is a real problem we are facing here. It happens on PPC when all I2C_DESIGNWARE_PLATFORM, I2C_DESIGNWARE_PCI and DYNAMIC_DEBUG are set. It's because i2c-designware-core.c is used in two modules (i2c-designware-platform and i2c-designware-pci) and KBUILD_MODNAME is not defined for those because (scripts/Makefile.lib): # $(modname_flags) #defines KBUILD_MODNAME as the name of the module # it will end up in (or would, if it gets compiled in) # Note: Files that end up in two or more modules are compiled # without the KBUILD_MODNAME definition. The reason is # that any made-up name would differ in different configs. But DYNAMIC_DEBUG needs KBUILD_MODNAME for dev_dbg used in that source. Any ideas? Why is it not a separate module for example? thanks, -- js suse labs -- 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/