[Bug libc/2859] New: linux/i2c.h header contains kernel-only definitions

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2859] New: linux/i2c.h header contains kernel-only definitions

cvs-commit at gcc dot gnu.org
The header <linux/i2c.h> is provided by glibc and is needed from user-space
because it contains the definitions of e.g. I2C_TENBIT, I2C_SLAVE, ... However,
it contains many declarations and definitions that only make sense when included
from within the kernel, and that make no sense in user-space (e.g.
i2c_master_send(), struct i2c_driver). Additionally, user-space C source files
that include <linux/i2c.h> do not compile.

--
           Summary: linux/i2c.h header contains kernel-only definitions
           Product: glibc
           Version: 2.3.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: bart dot vanassche at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2859

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2859] linux/i2c.h header contains kernel-only definitions

cvs-commit at gcc dot gnu.org

------- Additional Comments From bart dot vanassche at gmail dot com  2006-06-28 07:57 -------
Created an attachment (id=1124)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1124&action=view)
An example that demonstrates that <linux/i2c.h> gives compilation problems


--


http://sourceware.org/bugzilla/show_bug.cgi?id=2859

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2859] linux/i2c.h header contains kernel-only definitions

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org

------- Additional Comments From aj at suse dot de  2006-06-28 14:33 -------
The linux headers are not part of glibc, they are added by your distribution and
come from the Linux kernel source package.

There's nothing we can do.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=2859

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.