Displaying 4 results from an estimated 4 matches for "fd_reset_if_needed".
2020 Jul 25
0
[klibc:master] Clean up clang warnings
...b/usr/kinit/ramdisk_load.c
index f43339c8..e3e15d81 100644
--- a/usr/kinit/ramdisk_load.c
+++ b/usr/kinit/ramdisk_load.c
@@ -34,7 +34,7 @@ static int change_disk(const char *devpath, int rfd, int disk)
ioctl(rfd, CDROMEJECT, 0);
} else {
/* Non-ejectable floppy */
- ioctl(rfd, FDRESET, FD_RESET_IF_NEEDED);
+ ioctl(rfd, FDRESET, (void *)FD_RESET_IF_NEEDED);
}
}
close(rfd);
2020 Mar 27
2
[PATCH v2 5/5] Clean up clang warnings
...nit/ramdisk_load.c
index f43339c8fc74..e3e15d81f81b 100644
--- a/usr/kinit/ramdisk_load.c
+++ b/usr/kinit/ramdisk_load.c
@@ -34,7 +34,7 @@ static int change_disk(const char *devpath, int rfd, int disk)
ioctl(rfd, CDROMEJECT, 0);
} else {
/* Non-ejectable floppy */
- ioctl(rfd, FDRESET, FD_RESET_IF_NEEDED);
+ ioctl(rfd, FDRESET, (void *)FD_RESET_IF_NEEDED);
}
}
close(rfd);
--
2.26.0.rc2.310.g2932bb562d-goog
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
This is a series of patches for clang compatibility:
- Using flags needed flags and removing unsupported flags.
- Adding support for clang's LLD linker.
- Removing a variety of warnings.
Bill Wendling (3):
[klibc] Kbuild: use "libc.a" with clang
[klibc] Kbuild: Add "-fcommon" for clang builds
[klibc] Clean up clang warnings
Michael Davidson (1):
[klibc] Kbuild:
2020 Mar 29
7
[kvm-unit-tests PATCH v3 0/4] Update patch set
- Renamed IMAGE_BASE to LD_IMAGE_BASE_OPT.
- Moved "-fcommon" to KLIBCREQFLAGS in scripts/Kbuild.klibc.
- Remove "dash" warning fixes which have been upstreamed.
- Conditionalize the inclusion of compiler flags by using the proper
compiler name or "cc-option".
- Added "-Werror" to "cc-option" to catch flags that cause warnings.
- Retain