From 954a9bc2947ce5bb447e12847d652949f6159bde Mon Sep 17 00:00:00 2001 From: James Wainwright Date: Fri, 29 Nov 2024 12:55:09 +0000 Subject: [PATCH] [ot] hw/opentitan: fix clang-format in ot_otp_eg_parts.c Accidentally deleted this ifdef in a previous commit. --- hw/opentitan/ot_otp_eg_parts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/opentitan/ot_otp_eg_parts.c b/hw/opentitan/ot_otp_eg_parts.c index d6999afb322e..9e9945bf3ab9 100644 --- a/hw/opentitan/ot_otp_eg_parts.c +++ b/hw/opentitan/ot_otp_eg_parts.c @@ -1,5 +1,8 @@ /* Generated from otp_ctrl_mmap.hjson with otptool.py */ +/* this prevents linters from checking this file without its parent file */ +#ifdef OT_OTP_EG_PARTS + /* clang-format off */ /* NOLINTBEGIN */ static const OtOTPPartDesc OtOTPPartDescs[] = { @@ -147,3 +150,5 @@ static const OtOTPPartDesc OtOTPPartDescs[] = { /* NOLINTEND */ /* clang-format on */ + +#endif /* OT_OTP_EG_PARTS */