From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759730AbYA1MXR (ORCPT ); Mon, 28 Jan 2008 07:23:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754882AbYA1MXF (ORCPT ); Mon, 28 Jan 2008 07:23:05 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:38830 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751730AbYA1MXD (ORCPT ); Mon, 28 Jan 2008 07:23:03 -0500 Date: Mon, 28 Jan 2008 10:22:32 -0200 From: Mauro Carvalho Chehab To: Adrian Bunk Cc: Trent Piepho , Hans Verkuil , v4l-dvb-maintainer@linuxtv.org, Marcin Slusarz , linux-kernel@vger.kernel.org Subject: Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, I2C=n compile error Message-ID: <20080128102232.4282eef9@gaivota> In-Reply-To: <20080128121245.GG1001@does.not.exist> References: <20080127185216.GB13300@does.not.exist> <20080127223334.696fce6e@gaivota> <20080128084001.GB1001@does.not.exist> <20080128094912.1848eacd@gaivota> <20080128121245.GG1001@does.not.exist> X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.1; x86_64-mandriva-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Jan 2008 14:12:45 +0200 Adrian Bunk wrote: > On Mon, Jan 28, 2008 at 09:49:12AM -0200, Mauro Carvalho Chehab wrote: > > > Maybe the kernel headers should provide a couple macros for testing > > > configs, since people get it wrong over and over again? > > > > > > #define CONFIG_ON(x) (defined(CONFIG_##x) || defined(CONFIG_##x##_MODULE)) > > > #define CONFIG_AVAIABLE(x) (defined(CONFIG_##x) || (defined(MODULE) && defined(CONFIG_##x##_MODULE))) > > > > Seems a good idea to me. > > > > > > Not sure what to do about VIDEO_DEV=y, I2C=m. It should be possible except > > > for this function. > > > > I don't see much sense on allowing v4l2-common being in-kernel, while having > > I2C as module. Also, creating a separate module for just a single function > > seems to be overkill. > > > > IMO, in this specific case, v4l2-common should also be a module. Not sure, > > however,the better syntax on Kconfig. Once, someone suggested a very weird > > syntax, like: > > > > depends on I2C if I2C > > Why does anyone want to introduce such a weird syntax for something > that already works with the simple > > depends on I2C || I2C=n On that time, I nacked the weird syntax. The one you've pointed seems good enough. Trent, Could you please prepare the changeset for the macro, as suggested by Ian? I'll rewrite my patch to use your macro, and add the "depends on" syntax as suggested by Adrian. Cheers, Mauro