diff options
| author | Marco Elver <elver@google.com> | 2025-12-19 16:40:24 +0100 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-01-05 16:43:36 +0100 |
| commit | dc36d55d4e7259ff0f91a154744125ccc2228171 (patch) | |
| tree | 58b1ff6d120adf795e405027de8ce770233ade9a /include/crypto/internal/engine.h | |
| parent | 87335b61a23bd10e4aec132bd3a48a009d406973 (diff) | |
| download | linux-next-dc36d55d4e7259ff0f91a154744125ccc2228171.tar.gz linux-next-dc36d55d4e7259ff0f91a154744125ccc2228171.zip | |
crypto: Enable context analysis
Enable context analysis for crypto subsystem.
This demonstrates a larger conversion to use Clang's context
analysis. The benefit is additional static checking of locking rules,
along with better documentation.
Note the use of the __acquire_ret macro how to define an API where a
function returns a pointer to an object (struct scomp_scratch) with a
lock held. Additionally, the analysis only resolves aliases where the
analysis unambiguously sees that a variable was not reassigned after
initialization, requiring minor code changes.
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251219154418.3592607-36-elver@google.com
Diffstat (limited to 'include/crypto/internal/engine.h')
| -rw-r--r-- | include/crypto/internal/engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/internal/engine.h b/include/crypto/internal/engine.h index f19ef376833f..6a1d27880615 100644 --- a/include/crypto/internal/engine.h +++ b/include/crypto/internal/engine.h @@ -45,7 +45,7 @@ struct crypto_engine { struct list_head list; spinlock_t queue_lock; - struct crypto_queue queue; + struct crypto_queue queue __guarded_by(&queue_lock); struct device *dev; struct kthread_worker *kworker; |
