diff --git a/src/libcamera/byte_stream_buffer.cpp b/src/libcamera/byte_stream_buffer.cpp
index df7029b02a7f..eb9003927266 100644
--- a/src/libcamera/byte_stream_buffer.cpp
+++ b/src/libcamera/byte_stream_buffer.cpp
@@ -12,15 +12,15 @@
 
 #include "libcamera/internal/log.h"
 
-namespace libcamera {
-
-LOG_DEFINE_CATEGORY(Serialization);
-
 /**
  * \file byte_stream_buffer.h
  * \brief Managed memory container for serialized data
  */
 
+namespace libcamera {
+
+LOG_DEFINE_CATEGORY(Serialization);
+
 /**
  * \class ByteStreamBuffer
  * \brief Wrap a memory buffer and provide sequential data read and write
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp
index 6b05909f56ae..03ab085c1231 100644
--- a/src/libcamera/v4l2_pixelformat.cpp
+++ b/src/libcamera/v4l2_pixelformat.cpp
@@ -22,6 +22,7 @@
  * \file v4l2_pixelformat.h
  * \brief V4L2 Pixel Format
  */
+
 namespace libcamera {
 
 LOG_DECLARE_CATEGORY(V4L2)
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index 508522ef42bb..16162e1edba3 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -32,6 +32,7 @@
  * \file v4l2_videodevice.h
  * \brief V4L2 Video Device
  */
+
 namespace libcamera {
 
 LOG_DECLARE_CATEGORY(V4L2)
