Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262254AbTHFNvM (ORCPT ); Wed, 6 Aug 2003 09:51:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262273AbTHFNvM (ORCPT ); Wed, 6 Aug 2003 09:51:12 -0400 Received: from hera.cwi.nl ([192.16.191.8]:7305 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id S262254AbTHFNvJ (ORCPT ); Wed, 6 Aug 2003 09:51:09 -0400 From: Andries.Brouwer@cwi.nl Date: Wed, 6 Aug 2003 15:51:06 +0200 (MEST) Message-Id: To: Andries.Brouwer@cwi.nl, jgarzik@pobox.com Subject: Re: Add identify decoding 4/4 Cc: B.Zolnierkiewicz@elka.pw.edu.pl, linux-kernel@vger.kernel.org, torvalds@osdl.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 36 Andries.Brouwer@cwi.nl wrote: > Here a somewhat uneven commented ide_identify.h. > This is part of a larger patch, but suffices for now. Do you really want to stick that long function in a header? Stick it in ide-lib.c, that's a better place for it, IMO... No. contains a lot of 1-line static inline functions, just readable names for current magic bit checks, and one big function ide_dump_identify_info() that is included as #ifdef IDE_IDENTIFY_DEBUG static void ide_dump_identify_info(const struct hd_driveid *id, const char *name) { ... } #endif Thus, ide-floppy.c and ide-tape.c and isd200.c can do #if IDEFLOPPY_DEBUG_INFO #define IDE_IDENTIFY_DEBUG #include #endif and get this big function, but only when their local debugging option is set. We would not want to see it in the binary if there were no users. Andries - 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/