From 7d4451142227c37ce227930197c33e0106264605 Mon Sep 17 00:00:00 2001 From: Emil Tsalapatis Date: Wed, 6 Nov 2024 12:52:10 -0800 Subject: [PATCH] fix missing/extraneous newline --- rust/scx_utils/src/enums.rs | 3 +-- scheds/include/scx/enums.autogen.bpf.h | 1 - scheds/include/scx/enums.autogen.h | 1 - scripts/gen_enums.py | 6 +++--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/rust/scx_utils/src/enums.rs b/rust/scx_utils/src/enums.rs index e50bd93..28084bd 100644 --- a/rust/scx_utils/src/enums.rs +++ b/rust/scx_utils/src/enums.rs @@ -1,4 +1,3 @@ - /* * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would * like to access an enum that is currently missing, add it to the script @@ -121,4 +120,4 @@ macro_rules! import_enums { $skel.maps.rodata_data.__SCX_ENQ_CLEAR_OPSS = scx_enums.SCX_ENQ_CLEAR_OPSS; $skel.maps.rodata_data.__SCX_ENQ_DSQ_PRIQ = scx_enums.SCX_ENQ_DSQ_PRIQ; }}; -} \ No newline at end of file +} diff --git a/scheds/include/scx/enums.autogen.bpf.h b/scheds/include/scx/enums.autogen.bpf.h index 86de87d..0e941a0 100644 --- a/scheds/include/scx/enums.autogen.bpf.h +++ b/scheds/include/scx/enums.autogen.bpf.h @@ -1,4 +1,3 @@ - /* * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would * like to access an enum that is currently missing, add it to the script diff --git a/scheds/include/scx/enums.autogen.h b/scheds/include/scx/enums.autogen.h index 4c3e3de..88137a1 100644 --- a/scheds/include/scx/enums.autogen.h +++ b/scheds/include/scx/enums.autogen.h @@ -1,4 +1,3 @@ - /* * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would * like to access an enum that is currently missing, add it to the script diff --git a/scripts/gen_enums.py b/scripts/gen_enums.py index 0730006..64727cc 100755 --- a/scripts/gen_enums.py +++ b/scripts/gen_enums.py @@ -2,8 +2,8 @@ from pathlib import Path -warning = """ -/* +warning = \ +"""/* * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would * like to access an enum that is currently missing, add it to the script * and run it from the root directory to update this file. @@ -106,7 +106,7 @@ def gen_enums_rs(): f.write(" $skel.maps.rodata_data.{} = scx_enums.{};\n".format(localvar(symbol), symbol)) f.write(" }};\n") - f.write("}") + f.write("}\n") """