Red Hat Bugzilla – Bug 180320
hdparm doesn't rebuild
Last modified: 2015-01-07 19:11:33 EST
gcc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual
-Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs
-Wtrigraphs -c -o hdparm.o hdparm.c
hdparm.c:55: `readahead' redeclared as different kind of symbol
/usr/include/bits/fcntl.h:200: previous declaration of `readahead'
hdparm.c:55: warning: `readahead' was declared `extern' and later `static'
make: *** [hdparm.o] Error 1
The "readahead" variable clashes with the readahead function. Patch attached.
Created attachment 124308 [details]
This obviously doesn't qualify for inclusion in a quarterly update, but I'll
keep it around as DEFERRED just in case an erratum needs to be done.