|
with the latest patch:
/home/alexey/head2/libcfs/libcfs/workitem.c: In function ‘cfs_wi_sched_create’:
/home/alexey/head2/libcfs/libcfs/workitem.c:384:37: error: ‘%02d’ directive output may be truncated writing between 2 and 11 bytes into a region of size between 0 and 15 [-Werror=format-truncation=]
snprintf(name, sizeof(name), "%s_%02d_%02d",
^~~~
/home/alexey/head2/libcfs/libcfs/workitem.c:384:4: note: ‘snprintf’ output between 7 and 39 bytes into a destination of size 16
snprintf(name, sizeof(name), "%s_%02d_%02d",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched->ws_name, sched->ws_cpt,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched->ws_nthreads);
~~~~~~~~~~~~~~~~~~~
/home/alexey/head2/libcfs/libcfs/workitem.c:388:37: error: ‘%02d’ directive output may be truncated writing between 2 and 10 bytes into a region of size between 0 and 15 [-Werror=format-truncation=]
snprintf(name, sizeof(name), "%s_%02d",
^~~~
/home/alexey/head2/libcfs/libcfs/workitem.c:388:33: note: directive argument in the range [0, 1073741823]
snprintf(name, sizeof(name), "%s_%02d",
^~~~~~~~~
/home/alexey/head2/libcfs/libcfs/workitem.c:388:4: note: ‘snprintf’ output between 4 and 27 bytes into a destination of size 16
snprintf(name, sizeof(name), "%s_%02d",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched->ws_name, sched->ws_nthreads);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/libcfs/libcfs/workitem.o] Error 1
make[5]: *** [scripts/Makefile.build:488: /home/alexey/head2/libcfs/libcfs] Error 2
make[4]: *** [scripts/Makefile.build:488: /home/alexey/head2/libcfs] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/alexey/head2/lustre/osp/lwp_dev.c: In function ‘lwp_notify_users’:
/home/alexey/head2/lustre/osp/lwp_dev.c:453:46: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 53 [-Werror=format-truncation=]
snprintf(name, MTI_NAME_MAXLEN, "lwp_notify_%s",
^~
/home/alexey/head2/lustre/osp/lwp_dev.c:453:2: note: ‘snprintf’ output between 12 and 139 bytes into a destination of size 64
snprintf(name, MTI_NAME_MAXLEN, "lwp_notify_%s",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exp->exp_obd->obd_name);
~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/osp/lwp_dev.o] Error 1
make[5]: *** [scripts/Makefile.build:488: /home/alexey/head2/lustre/osp] Error 2
make[5]: *** Waiting for unfinished jobs....
/home/alexey/head2/lustre/mdc/mdc_changelog.c: In function ‘mdc_changelog_cdev_init’:
/home/alexey/head2/lustre/mdc/mdc_changelog.c:606:38: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 22 [-Werror=format-truncation=]
snprintf(name, name_len, "changelog-%s", obd->obd_name);
^~
/home/alexey/head2/lustre/mdc/mdc_changelog.c:606:2: note: ‘snprintf’ output between 11 and 138 bytes into a destination of size 32
snprintf(name, name_len, "changelog-%s", obd->obd_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/mdc/mdc_changelog.o] Error 1
make[5]: *** [scripts/Makefile.build:488: /home/alexey/head2/lustre/mdc] Error 2
/home/alexey/head2/lustre/mdd/mdd_orphans.c: In function ‘mdd_orphan_cleanup’:
/home/alexey/head2/lustre/mdd/mdd_orphans.c:597:48: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 51 [-Werror=format-truncation=]
snprintf(name, MTI_NAME_MAXLEN, "orph_cleanup_%s",
^~
/home/alexey/head2/lustre/mdd/mdd_orphans.c:597:2: note: ‘snprintf’ output between 14 and 141 bytes into a destination of size 64
snprintf(name, MTI_NAME_MAXLEN, "orph_cleanup_%s",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mdd2obd_dev(d)->obd_name);
~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/mdd/mdd_orphans.o] Error 1
make[5]: *** [scripts/Makefile.build:488: /home/alexey/head2/lustre/mdd] Error 2
/home/alexey/head2/lustre/ptlrpc/nrs_orr.c: In function ‘nrs_orr_start’:
/home/alexey/head2/lustre/ptlrpc/nrs_orr.c:373:42: error: ‘%s’ directive output may be truncated writing up to 15 bytes into a region of size 12 [-Werror=format-truncation=]
snprintf(name, NRS_ORR_OBJ_NAME_MAX, "%s%s%s%d",
^~
/home/alexey/head2/lustre/ptlrpc/nrs_orr.c:373:2: note: ‘snprintf’ output between 10 and 36 bytes into a destination of size 16
snprintf(name, NRS_ORR_OBJ_NAME_MAX, "%s%s%s%d",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"nrs_", policy->pol_desc->pd_name,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
policy->pol_nrs->nrs_queue_type == PTLRPC_NRS_QUEUE_REG ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"reg" : "hp", nrs_pol2cptid(policy));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/ptlrpc/nrs_orr.o] Error 1
make[6]: *** Waiting for unfinished jobs....
/home/alexey/head2/lustre/quota/qsd_reint.c: In function ‘qsd_start_reint_thread’:
/home/alexey/head2/lustre/quota/qsd_reint.c:671:48: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size between 42 and 52 [-Werror=format-truncation=]
snprintf(name, MTI_NAME_MAXLEN, "qsd_reint_%d.%s",
^~
/home/alexey/head2/lustre/quota/qsd_reint.c:671:2: note: ‘snprintf’ output between 13 and 150 bytes into a destination of size 64
snprintf(name, MTI_NAME_MAXLEN, "qsd_reint_%d.%s",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qqi->qqi_qtype, qsd->qsd_svname);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/quota/qsd_reint.o] Error 1
make[5]: *** [scripts/Makefile.build:488: /home/alexey/head2/lustre/quota] Error 2
/home/alexey/head2/lustre/ptlrpc/ptlrpcd.c: In function ‘ptlrpcd_ctl_init’:
/home/alexey/head2/lustre/ptlrpc/ptlrpcd.c:540:19: error: ‘%02d’ directive output may be truncated writing between 2 and 10 bytes into a region of size between 0 and 5 [-Werror=format-truncation=]
"ptlrpcd_%02d_%02d", cpt, index);
^~~~
/home/alexey/head2/lustre/ptlrpc/ptlrpcd.c:540:5: note: directive argument in the range [-1, 2147483647]
"ptlrpcd_%02d_%02d", cpt, index);
^~~~~~~~~~~~~~~~~~~
/home/alexey/head2/lustre/ptlrpc/ptlrpcd.c:539:3: note: ‘snprintf’ output between 14 and 31 bytes into a destination of size 16
snprintf(pc->pc_name, sizeof(pc->pc_name),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"ptlrpcd_%02d_%02d", cpt, index);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/ptlrpc/ptlrpcd.o] Error 1
make[5]: *** [scripts/Makefile.build:488: /home/alexey/head2/lustre/ptlrpc] Error 2
/home/alexey/head2/lustre/mgs/mgs_handler.c: In function ‘mgs_target_reg’:
/home/alexey/head2/lustre/mgs/mgs_handler.c:405:52: error: ‘%s’ directive output may be truncated writing up to 63 bytes into a region of size 19 [-Werror=format-truncation=]
snprintf(barrier_name, sizeof(barrier_name) - 1, "%s-%s",
^~
/home/alexey/head2/lustre/mgs/mgs_handler.c:405:2: note: ‘snprintf’ output between 9 and 72 bytes into a destination of size 19
snprintf(barrier_name, sizeof(barrier_name) - 1, "%s-%s",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mti->mti_fsname, BARRIER_FILENAME);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:341: /home/alexey/head2/lustre/mgs/mgs_handler.o] Error 1
make[6]: *** Waiting for unfinished jobs....
/home/alexey/head2/lustre/mgs/mgs_llog.c: In function ‘mgs_write_log_target’:
/home/alexey/head2/lustre/mgs/mgs_llog.c:2499:27: error: ‘%s’ directive output may be truncated writing up to 63 bytes into a region of size 40 [-Werror=format-truncation=]
"%s_UUID", mti->mti_svname);
^~
/home/alexey/head2/lustre/mgs/mgs_llog.c:2498:17: note: ‘snprintf’ output between 6 and 69 bytes into a destination of size 40
snprintf(mti->mti_uuid, sizeof(mti->mti_uuid),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"%s_UUID", mti->mti_svname);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alexey/head2/lustre/mgs/mgs_llog.c:2768:27: error: ‘%s’ directive output may be truncated writing up to 63 bytes into a region of size 40 [-Werror=format-truncation=]
"%s_UUID", mti->mti_svname);
^~
/home/alexey/head2/lustre/mgs/mgs_llog.c:2767:17: note: ‘snprintf’ output between 6 and 69 bytes into a destination of size 40
snprintf(mti->mti_uuid, sizeof(mti->mti_uuid),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"%s_UUID", mti->mti_svname);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alexey/head2/lustre/mgs/mgs_llog.c:2813:44: error: ‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=]
sprintf(mdt_index, "-MDT%04x", i);
^~~~~~~~~~
/home/alexey/head2/lustre/mgs/mgs_llog.c:2813:25: note: ‘sprintf’ output between 9 and 10 bytes into a destination of size 9
sprintf(mdt_index, "-MDT%04x", i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|