> -----Original Message----- > From: Sergey Temerkhanov <[email protected]> > Sent: Tuesday, October 13, 2026 2:13 AM > To: [email protected] > Subject: [PATCH RESEND iwl-net v6 6/7] ice: Annotate PTP control PF lock > handoff > > ice_ptp_lock() conditionally retains ctrl_pf_lock for read when it > successfully acquires the hardware semaphore. The matching unlock occurs in > ice_ptp_unlock(). Describe this cross-function handoff with context analysis > annotations so static analysis can verify callers. > > The annotations are inert for now: drivers/net/ethernet/intel/ice/ does not > set CONTEXT_ANALYSIS := y, > so CONFIG_WARN_CONTEXT_ANALYSIS does not cover > these files. Opting the directory in requires annotating the rest of the ice > locking first and is left for a follow-up. > > Signed-off-by: Sergey Temerkhanov <[email protected]> > Reviewed-by: Przemyslaw Korba <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice.h | 12 ++++++++++ > drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 26 +++++++++++++-------- > drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 6 +++-- > 3 files changed, 32 insertions(+), 12 deletions(-)
Tested-by: Alexander Nowlin <[email protected]>
