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 */