[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#535243: marked as done (kfreebsd-kernel-headers: Wrong type in <sys/pciio.h>?)

Your message dated Tue, 7 Jul 2009 21:44:53 +0200 (CEST)
with message-id <Pine.LNX.4.62.0907072143180.19606@sci.felk.cvut.cz>
and subject line <sys/pciio.h> fixed
has caused the Debian Bug report #535243,
regarding kfreebsd-kernel-headers: Wrong type in <sys/pciio.h>?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

535243: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535243
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: kfreebsd-kernel-headers
Version: 0.34
Severity: important
Tags: patch


while working on hal on kfreebsd-i386, I've stumbled upon the following:
./hald/freebsd/hf-pci.c includes <sys/pciio.h>, but the latter uses
uint64_t for the pci_bar_io structure, instead of u_intNN_t for other
structures, and the compiler fails on that token.

Maybe a -D (I tried __USE_BSD) or another include is missing? Or one
could just use the attached patch (I copied the path from the
000_bruno_haible.diff patch, I didn't install the whole sources)?

--- src/sys/sys/pciio.h
+++ src/sys/sys/pciio.h
@@ -113,8 +113,8 @@
 	struct pcisel	pbi_sel;	/* device to operate on */
 	int		pbi_reg;	/* starting address of BAR */
 	int		pbi_enabled;	/* decoding enabled */
-	uint64_t	pbi_base;	/* current value of BAR */
-	uint64_t	pbi_length;	/* length of BAR */
+	u_int64_t	pbi_base;	/* current value of BAR */
+	u_int64_t	pbi_length;	/* length of BAR */
 #define	PCIOCGETCONF	_IOWR('p', 5, struct pci_conf_io)

--- End Message ---
--- Begin Message ---
There should be "Closes: #535243" instead of "Closes #535243"

kfreebsd-kernel-headers (0.35) unstable; urgency=low
   [ Petr Salinger ]
   * add #include <stdint.h> into <sys/pciio.h>
     Closes #535243.
   [ Cyril Brulebois ]
   * Add myself to Uploaders.
   * Bump Standards-Version to 3.8.2 (no changes).

--- End Message ---

Reply to: