This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2859
  linux/i2c.h header contains kernel-only definitions Last modified: 2006-06-28 14:33:53
     Query page      Enter new bug
Bug#: 2859   Hardware:   Reporter: Bart Van Assche <bart.vanassche@gmail.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: INVALID   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
i2c.c An example that demonstrates that <linux/i2c.h> gives compilation problems text/plain 2006-06-28 07:57 Edit None
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2859 depends on: Show dependency tree
Show dependency graph
Bug 2859 blocks:

Additional Comments:


Leave as RESOLVED INVALID
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-06-28 07:54
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.

------- Additional Comment #1 From Bart Van Assche 2006-06-28 07:57 -------
Created an attachment (id=1124)
An example that demonstrates that <linux/i2c.h> gives compilation problems

------- Additional Comment #2 From Andreas Jaeger 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.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In