1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

timerfd_create: fix after cf742faa39

Remove the include that crept in by accident
Clang complains about CLOCK_BOOTTIME being the same for now as
CLOCK_UPTIME, so remove CLOCK_BOOTTIME and leave a comment for
what to do when CLOCK_BOOTTIME will be different for real.
This commit is contained in:
Baptiste Daroussin 2024-03-06 18:28:02 +01:00
parent cf742faa39
commit 0ecf0b26a7

View File

@ -26,7 +26,6 @@
* SUCH DAMAGE.
*/
#include <sys/_clock_id.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/callout.h>
@ -439,8 +438,10 @@ kern_timerfd_create(struct thread *td, int clockid, int flags)
case CLOCK_MONOTONIC:
/* FALLTHROUGH */
case CLOCK_UPTIME:
/* FALLTHROUGH */
case CLOCK_BOOTTIME:
/*
* CLOCK_BOOTTIME should be added once different from
* CLOCK_UPTIME
*/
break;
default:
return (EINVAL);