From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 11 01:30:04 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31B0B106566C for ; Tue, 11 Sep 2012 01:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E579D8FC0A for ; Tue, 11 Sep 2012 01:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8B1U3Pp026575 for ; Tue, 11 Sep 2012 01:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8B1U3sG026562; Tue, 11 Sep 2012 01:30:03 GMT (envelope-from gnats) Resent-Date: Tue, 11 Sep 2012 01:30:03 GMT Resent-Message-Id: <201209110130.q8B1U3sG026562@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Bonomi Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FF56106564A for ; Tue, 11 Sep 2012 01:25:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9878FC08 for ; Tue, 11 Sep 2012 01:25:36 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8B1PaK5091059 for ; Tue, 11 Sep 2012 01:25:36 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8B1Paua091057; Tue, 11 Sep 2012 01:25:36 GMT (envelope-from nobody) Message-Id: <201209110125.q8B1Paua091057@red.freebsd.org> Date: Tue, 11 Sep 2012 01:25:36 GMT From: Robert Bonomi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/171532: ndis(4) driver includes 'pccard'-specific code, even if 'device pccard' absent from config X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2012 01:30:04 -0000 >Number: 171532 >Category: kern >Synopsis: ndis(4) driver includes 'pccard'-specific code, even if 'device pccard' absent from config >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 11 01:30:03 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Robert Bonomi >Release: 8.3-RELEASE i386 >Organization: >Environment: FreeBSD 8.3-RELEAE FreeBSD 8.3-RELEASE #5.... i386 >Description: Two 'if' blocks, one at lines 562-569, and the other at lines 1083-1084, in sys/dev/if_ndis/if_ndis.c are RUN-TIME tests for PCMCIA/PC-Card/CARDBUS hardware, and reference routines that exist only in the 'device pccard' support modules. Kernel linking fails if 'device pccard' is not included, even if the machine has no pccard hardware. >How-To-Repeat: attempt to compile a kernel with option NDISAPI device ndis device wlan and WITHOUT device pcard observe the linker failure. >Fix: bracket each of the 'if ()' blocks identified above with *COMPILE-TIME* '#if' or '#ifdef' conditionals on 'something' that is set only if 'device pccard' is in the config file. >Release-Note: >Audit-Trail: >Unformatted: