Commit eee8c61
committed
Suppress sparse warning
Reported by sparse:
examples/cryptosk.c: In function ‘test_skcipher_encrypt’:
examples/cryptosk.c:121:35: error: passing argument 3 of
‘skcipher_request_set_callback’ from incompatible pointer type [-Werror=incompatible-pointer-types]
121 | test_skcipher_callback, &sk->result);
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(struct crypto_async_request *, int)
In file included from ./include/crypto/internal/skcipher.h:13,
from examples/cryptosk.c:4:
./include/crypto/skcipher.h:576:70: note: expected ‘crypto_completion_t’
{aka ‘void (*)(void *, int)’} but argument is of type ‘void (*)(struct crypto_async_request *, int)’
576 | crypto_completion_t compl,
| ~~~~~~~~~~~~~~~~~~~~^~~~~
cc1: some warnings being treated as errors1 parent 1d38d2e commit eee8c61
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments