← Commit list

0b0d39334

Eric Andersen
Eric Andersen
2003-06-27
FAILED Duration: 142s

Subject

Remove bdflush garbage, which is only relevant to unsupported kernel versions

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

init/init.c+0 -11
@@ -102,12 +102,6 @@ struct serial_struct {
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
-#if __GNU_LIBRARY__ > 5
-#include <sys/kdaemon.h>
-#else
-extern int bdflush(int func, long int data);
-#endif
-
#define SHELL "/bin/sh" /* Default shell */
#define LOGIN_SHELL "-" SHELL /* Default login shell */
#define INITTAB "/etc/inittab" /* inittab file location */
@@ -716,11 +710,6 @@ static void shutdown_system(void)
sleep(1);
sync();
- if (kernelVersion > 0 && kernelVersion <= KERNEL_VERSION(2, 2, 11)) {
- /* bdflush, kupdate not needed for kernels >2.2.11 */
- bdflush(1, 0);
- sync();
- }
}
static void exec_signal(int sig)