8460 emlxs: passing argument discards volatile qualifier

Review Request #617 — Created July 5, 2017 and submitted — Latest diff uploaded

tsoome
illumos-gate
8460
7b76622...
general
../../common/io/fibre-channel/fca/emlxs/emlxs_mbox.c: In function 'emlxs_mb_config_hbq':
../../common/io/fibre-channel/fca/emlxs/emlxs_mbox.c:2539:7: error: passing argument 2 of 'bcopy' discards 'volatile' qualifier from pointer target type [-Werror=discarded-array-qualifiers]
       &mb->un.varCfgHbq.profiles.allprofiles,
       ^
In file included from ../..//common/sys/fibre-channel/fca/emlxs/emlxs_os.h:133:0,
                 from ../..//common/sys/fibre-channel/fca/emlxs/emlxs.h:36,
                 from ../../common/io/fibre-channel/fca/emlxs/emlxs_mbox.c:27:
/code/illumos-gate/proto/root_i386/usr/include/sys/sunddi.h:476:13: note: expected 'void *' but argument is of type 'volatile uint32_t (*)[12] {aka volatile unsigned int (*)[12]}'
 extern void bcopy(const void *, void *, size_t);
             ^~~~~
cc1: all warnings being treated as errors


Loading...