8395 mr_sas: sizeof on array function parameter will return size of pointer
Review Request #584 — Created June 15, 2017 and submitted — Latest diff uploaded
Information | |
---|---|
tsoome | |
illumos-gate | |
8395 | |
3b62b2f... | |
Reviewers | |
general | |
../../common/io/mr_sas/mr_sas_tbolt.c:3012:21: error: 'sizeof' on array function parameter 'cdb' will return size of 'uint8_t * {aka unsigned char *}' [-Werror=sizeof-array-argument] bzero(cdb, sizeof (cdb)); ^ ../../common/io/mr_sas/mr_sas_tbolt.c:2987:27: note: declared here mrsas_tbolt_set_pd_lba(U8 cdb[], uint8_t *cdb_len_ptr, U64 start_blk, ^~~ ../../common/io/mr_sas/mr_sas_tbolt.c:3045:21: error: 'sizeof' on array function parameter 'cdb' will return size of 'uint8_t * {aka unsigned char *}' [-Werror=sizeof-array-argument] bzero(cdb, sizeof (cdb)); ^ ../../common/io/mr_sas/mr_sas_tbolt.c:2987:27: note: declared here mrsas_tbolt_set_pd_lba(U8 cdb[], uint8_t *cdb_len_ptr, U64 start_blk, ^~~ ../../common/io/mr_sas/mr_sas_tbolt.c:3065:21: error: 'sizeof' on array function parameter 'cdb' will return size of 'uint8_t * {aka unsigned char *}' [-Werror=sizeof-array-argument] bzero(cdb, sizeof (cdb)); ^ ../../common/io/mr_sas/mr_sas_tbolt.c:2987:27: note: declared here mrsas_tbolt_set_pd_lba(U8 cdb[], uint8_t *cdb_len_ptr, U64 start_blk, ^~~ cc1: all warnings being treated as errors