[Bugme-new] [Bug 12483] New: Reference to inexistent struct dmi_device_id breaks the build

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Mon Jan 19 01:29:51 PST 2009


http://bugzilla.kernel.org/show_bug.cgi?id=12483

           Summary: Reference to inexistent struct dmi_device_id breaks the
                    build
           Product: Platform Specific/Hardware
           Version: 2.5
     KernelVersion: 2.6.28
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: i386
        AssignedTo: platform_i386 at kernel-bugs.osdl.org
        ReportedBy: khali at linux-fr.org
                CC: akpm at osdl.org, dwmw2 at infradead.org, rydberg at euromail.se
        Regression: 1


Latest working kernel version: 2.6.27.10
Earliest failing kernel version: 2.6.28
Distribution: Slackware 11.0
Hardware Environment: i386
Software Environment: gcc 3.4.6, GNU ld 2.15.92.0.2
Problem Description:

Kernel build fails with either of the following errors:
drivers/hwmon/applesmc.c:1582: error: storage size of '__mod_dmi_device_table'
isn't known
drivers/video/backlight/mbp_nvidia_bl.c:114: error: storage size of
'__mod_dmi_device_table' isn't known

This is because MODULE_DEVICE_TABLE(dmi, ...) expands to:
extern const struct dmi_device_id __mod_dmi_device_table ...
and struct dmi_device_id doesn't exist.

Steps to reproduce:
Build kernel 2.6.28 or 2.6.29-rc2 on x86 with gcc 3.

Apparently the problem doesn't happen with gcc 4.

This problem has already been discussed:
http://lkml.org/lkml/2008/12/11/441
https://kerneltrap.org/mailarchive/linux-kernel/2008/11/14/4156904/thread
But a patch still has to be submitted to mainline and then ported to
2.6.28-stable.


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the Bugme-new mailing list