Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763476AbXEZQzW (ORCPT ); Sat, 26 May 2007 12:55:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755303AbXEZQzK (ORCPT ); Sat, 26 May 2007 12:55:10 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:60234 "EHLO the-village.bc.nu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752772AbXEZQzI (ORCPT ); Sat, 26 May 2007 12:55:08 -0400 Date: Sat, 26 May 2007 17:59:47 +0100 From: Alan Cox To: Junio C Hamano Cc: Linux Kernel , bzolnier@gmail.com, linux-ide@vger.kernel.org, Dave Jones Subject: Re: [PATCH 2/3] Unify dma blacklist in ide-dma.c and libata-core.c Message-ID: <20070526175947.7dffbec5@the-village.bc.nu> In-Reply-To: <7vveela1lv.fsf_-_@assigned-by-dhcp.cox.net> References: <20070521145042.GA6957@redhat.com> <20070521171551.0f81a0be@the-village.bc.nu> <7v3b1pbgeo.fsf_-_@assigned-by-dhcp.cox.net> <7vveela1lv.fsf_-_@assigned-by-dhcp.cox.net> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1132 Lines: 30 On Mon, 21 May 2007 22:06:36 -0700 Junio C Hamano wrote: > This introduces a shared header file that defines the entries > for two dma blacklists in ide-dma.c and libata-core.c to make it > easier to keep them in sync. > > Signed-off-by: Junio C Hamano NAK This makes stuff so much more ugly its not funny > --- > > * Removes more lines than it adds. I am not proud of the > DMA_BLACK_LIST macro in ide-dma.c which relies on the > compiler doing a sane thing for compile time constant > expression to initialize the list, but that hopefully can be > fixed in the next patch. The basic concept is sound but it would be better to make sure the ATA_HORKAGE macros and struct ata_blacklist_entry as well as all the blacklist stuff was placed together in one file to avoid the horrors you are proposing and then used by both driver sets. - 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/