diff options
author | Jason Zaman <[email protected]> | 2016-08-10 00:56:56 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-12 09:51:19 -0700 |
commit | a9947ce77175234fa4e26afc663a75041b37f8f0 (patch) | |
tree | 9e7c336880af9a84143fae46a8a798bcb025ffe0 /module/icp/include/aes | |
parent | 6eb73b00466b4d72c9e0f0df8e000ef68b757c99 (diff) |
icp: add no_const for PaX Compat
The constify plugin will automatically constify a class of types that contain
only function pointers. The icp structs fail to build if this is enabled with
the following error. The no_const attribute makes the plugin skip those
structs.
module/icp/spi/kcf_spi.c: In function ‘copy_ops_vector_v1’:
module/icp/spi/kcf_spi.c:61:16: error: assignment of read-only location ‘*dst_ops->cou.cou_v1.co_control_ops’
*((dst)->ops) = *((src)->ops);
^
module/icp/spi/kcf_spi.c:74:2: note: in expansion of macro ‘KCF_SPI_COPY_OPS’
KCF_SPI_COPY_OPS(src_ops, dst_ops, co_control_ops);
^
Signed-off-by: Jason Zaman <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4947
Closes #4962
Diffstat (limited to 'module/icp/include/aes')
0 files changed, 0 insertions, 0 deletions