HomeFreeBSD

Fix HAVE_FS_STRUCT_SPINLOCK check for gcc-4.1.2

Description

Fix HAVE_FS_STRUCT_SPINLOCK check for gcc-4.1.2

Older versions of gcc (gcc-4.1.2) will treat an 'incompatible
pointer type' as a warning instead of an error. This results
in HAVE_FS_STRUCT_SPINLOCK being defined incorrectly. This
failure mode was observed when using a RHEL6 2.6.32 based kernel
under RHEL5.5 which contains the old version of gcc. To resolve
the issue the warning is explicitly promoted to an error.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 19 2011, 8:35 PM
Parents
rGc064bdee9558: Fix the configure CONFIG_* option detection
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG97fd6a07c2c2: Fix HAVE_FS_STRUCT_SPINLOCK check for gcc-4.1.2 (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 19 2011, 8:45 PM