public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Linus Torvalds <torvalds@linux-foundation•org>
Cc: Linux-Next Mailing List <linux-next@vger•kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>
Subject: linux-next: build warnings from Linus' tree
Date: Mon, 20 Aug 2018 08:13:23 +1000	[thread overview]
Message-ID: <20180820081323.23a47af3@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 24083 bytes --]

Hi Linus,

Today's linux-next build (powerpc ppc64_defconfig) produced these
warnings:

fs/cifs/cifssmb.c: In function 'CIFSSMBNegotiate':
fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=]
   strncpy(pSMB->DialectsArray+count, protocols[i].name, 16);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'get_sensor_index_attr',
    inlined from 'create_device_attrs' at drivers/hwmon/ibmpowernv.c:293:8,
    inlined from 'ibmpowernv_probe' at drivers/hwmon/ibmpowernv.c:699:8:
drivers/hwmon/ibmpowernv.c:256:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  strncpy(attr, dash_pos + 1, MAX_ATTR_LEN);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/hfsplus/xattr.c: In function 'copy_name':
fs/hfsplus/xattr.c:416:3: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
   strncpy(buffer, XATTR_MAC_OSX_PREFIX, XATTR_MAC_OSX_PREFIX_LEN);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/super.c: In function '__save_error_info':
fs/ext4/super.c:344:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  strncpy(es->s_last_error_func, func, sizeof(es->s_last_error_func));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/super.c:349:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(es->s_first_error_func, func,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sizeof(es->s_first_error_func));
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:97,
                 from include/trace/events/writeback.h:762,
                 from fs/fs-writeback.c:98:
include/trace/events/writeback.h: In function 'perf_trace_writeback_work_class':
include/trace/events/writeback.h:223:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    wb->bdi->dev ? dev_name(wb->bdi->dev) : "(unknown)", 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:222:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_class':
include/trace/events/writeback.h:277:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(wb->bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:276:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_bdi_register':
include/trace/events/writeback.h:299:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:292:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_bdi_register,
 ^~~~~~~~~~~
include/trace/events/writeback.h:298:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_wbc_class':
include/trace/events/writeback.h:324:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:323:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_queue_io':
include/trace/events/writeback.h:375:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(wb->bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:360:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_queue_io,
 ^~~~~~~~~~~
include/trace/events/writeback.h:373:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_dirty_page':
include/trace/events/writeback.h:69:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    mapping ? dev_name(inode_to_bdi(mapping->host)->dev) : "(unknown)", 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:56:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_dirty_page,
 ^~~~~~~~~~~
include/trace/events/writeback.h:68:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_dirty_inode_template':
include/trace/events/writeback.h:99:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    bdi->dev ? dev_name(bdi->dev) : "(unknown)", 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:95:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_write_inode_template':
include/trace/events/writeback.h:179:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    dev_name(inode_to_bdi(inode)->dev), 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:178:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_sb_inodes_requeue':
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'perf_trace_writeback_single_inode_template':
include/trace/events/writeback.h:660:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    dev_name(inode_to_bdi(inode)->dev), 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:659:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:96,
                 from include/trace/events/writeback.h:762,
                 from fs/fs-writeback.c:98:
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_dirty_page':
include/trace/events/writeback.h:69:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    mapping ? dev_name(inode_to_bdi(mapping->host)->dev) : "(unknown)", 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:56:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_dirty_page,
 ^~~~~~~~~~~
include/trace/events/writeback.h:68:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_dirty_inode_template':
include/trace/events/writeback.h:99:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    bdi->dev ? dev_name(bdi->dev) : "(unknown)", 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:95:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_write_inode_template':
include/trace/events/writeback.h:179:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    dev_name(inode_to_bdi(inode)->dev), 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:178:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_work_class':
include/trace/events/writeback.h:223:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    wb->bdi->dev ? dev_name(wb->bdi->dev) : "(unknown)", 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:222:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_class':
include/trace/events/writeback.h:277:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(wb->bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:276:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_bdi_register':
include/trace/events/writeback.h:299:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:292:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_bdi_register,
 ^~~~~~~~~~~
include/trace/events/writeback.h:298:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_wbc_class':
include/trace/events/writeback.h:324:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:323:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_queue_io':
include/trace/events/writeback.h:375:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name, dev_name(wb->bdi->dev), 32);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:360:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_queue_io,
 ^~~~~~~~~~~
include/trace/events/writeback.h:373:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_sb_inodes_requeue':
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h:586:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
           dev_name(inode_to_bdi(inode)->dev), 32);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
         PARAMS(assign),         \
         ^~~~~~
include/trace/events/writeback.h:572:1: note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(writeback_sb_inodes_requeue,
 ^~~~~~~~~~~
include/trace/events/writeback.h:585:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
include/trace/events/writeback.h: In function 'trace_event_raw_event_writeback_single_inode_template':
include/trace/events/writeback.h:660:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(__entry->name,
   ^~~~~~~~~~~~~~~~~~~~~~
    dev_name(inode_to_bdi(inode)->dev), 32);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
  { assign; }       \
    ^~~~~~
include/trace/events/writeback.h:659:2: note: in expansion of macro 'TP_fast_assign'
  TP_fast_assign(
  ^~~~~~~~~~~~~~
In function 'i40e_ptp_create_clock',
    inlined from 'i40e_ptp_init' at drivers/net/ethernet/intel/i40e/i40e_ptp.c:755:8:
drivers/net/ethernet/intel/i40e/i40e_ptp.c:697:2: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
  strncpy(pf->ptp_caps.name, i40e_driver_name, sizeof(pf->ptp_caps.name));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_mr.c: In function 'qlafx00_fx_disc':
drivers/scsi/qla2xxx/qla_mr.c:1882:4: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation]
    strncpy(phost_info->nodename,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        p_sysid->nodename, NODENAME_LENGTH);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_mr.c:1886:4: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation]
    strncpy(phost_info->release,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
        p_sysid->release, RELEASE_LENGTH);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_mr.c:1888:4: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation]
    strncpy(phost_info->version,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
        p_sysid->version, VERSION_LENGTH);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_mr.c:1890:4: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation]
    strncpy(phost_info->machine,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
        p_sysid->machine, MACHINE_LENGTH);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_mr.c:1892:4: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation]
    strncpy(phost_info->domainname,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        p_sysid->domainname, DOMNAME_LENGTH);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'ibmvfc_gather_partition_info',
    inlined from 'ibmvfc_npiv_login' at drivers/scsi/ibmvscsi/ibmvfc.c:4098:2:
drivers/scsi/ibmvscsi/ibmvfc.c:1156:3: warning: 'strncpy' specified bound 97 equals destination size [-Wstringop-truncation]
   strncpy(vhost->partition_name, name, sizeof(vhost->partition_name));
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'ibmvfc_set_login_info',
    inlined from 'ibmvfc_npiv_login' at drivers/scsi/ibmvscsi/ibmvfc.c:4099:2:
drivers/scsi/ibmvscsi/ibmvfc.c:1194:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation]
  strncpy(login_info->device_name,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   dev_name(&vhost->host->shost_gendev), IBMVFC_MAX_NAME);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/ibmvscsi/ibmvfc.c:1199:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation]
  strncpy(login_info->drc_name, location, IBMVFC_MAX_NAME);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Presumably caused by my update to gcc 8.2.0.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2018-08-19 22:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-19 22:13 Stephen Rothwell [this message]
2018-08-19 22:16 ` linux-next: build warnings from Linus' tree Stephen Rothwell
2018-08-19 22:40   ` Stephen Rothwell
2018-08-19 23:21 ` Linus Torvalds
2018-08-20  1:33   ` Adam Borowski
2018-08-20  2:53     ` Theodore Y. Ts'o
2018-08-20  0:02 ` Theodore Y. Ts'o
2018-08-20 17:47   ` Miguel Ojeda
  -- strict thread matches above, loose matches on Subject: below --
2019-08-29 21:59 Stephen Rothwell
2018-06-11 22:14 Stephen Rothwell
2018-11-14  4:54 ` Joel Stanley
2018-11-14 10:20   ` Michael Ellerman
2018-11-18 11:22     ` Alan Modra
2018-12-03 23:24       ` Joel Stanley
2010-10-28  0:27 Stephen Rothwell
2010-10-28  3:04 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180820081323.23a47af3@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=torvalds@linux-foundation$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox