From 485a7f920ace8533f3963c7843dab3eafdab27a6 Mon Sep 17 00:00:00 2001 From: Ahsan Fayaz Date: Mon, 4 Dec 2023 16:48:07 +0000 Subject: [PATCH] Move includes to the file that actually uses them This was spotted thanks to clang-format reordering the includes. Even with the new config, it will include the header file for the current source file first. Nevertheless, it is best to always include header files where they are needed. --- common/common-cpu.c | 2 -- common/common-cpu.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/common-cpu.c b/common/common-cpu.c index 7da6131..497044e 100644 --- a/common/common-cpu.c +++ b/common/common-cpu.c @@ -31,8 +31,6 @@ POSSIBILITY OF SUCH DAMAGE. #include "common-cpu.h" #include "common-logging.h" -#include -#include char *parse_cpulist(char *cpulist, long *from, long *to) { diff --git a/common/common-cpu.h b/common/common-cpu.h index 2eef38c..3c8df27 100644 --- a/common/common-cpu.h +++ b/common/common-cpu.h @@ -31,6 +31,9 @@ POSSIBILITY OF SUCH DAMAGE. #pragma once +#include +#include + #define IS_CPU_PARK 0 #define IS_CPU_PIN 1