<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:35:58 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-17504] build errors with gcc-13</title>
                <link>https://jira.whamcloud.com/browse/LU-17504</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;gcc-13 added a new warning:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;-Wenum-int-mismatch warns about mismatches between an enumerated type and an integer type
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;which caused the following Lustre build errors:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/root/lustre-release/lustre/ptlrpc/pack_generic.c:81:5: error: conflicting types for &apos;lustre_msg_check_version&apos; due to enum/integer mismatch; have &apos;int(struct lustre_msg_v2 *, enum lustre_msg_version)&apos; [-Werror=enum-int-mismatch]
   81 | int lustre_msg_check_version(struct lustre_msg *msg,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/lustre-release/lustre/ptlrpc/pack_generic.c:48:
/root/lustre-release/lustre/include/lustre_net.h:2287:5: note: previous declaration of &apos;lustre_msg_check_version&apos; with type &apos;int(struct lustre_msg_v2 *, __u32)&apos; {aka &apos;int(struct lustre_msg_v2 *, unsigned int)&apos;}
 2287 | int lustre_msg_check_version(struct lustre_msg *msg, __u32 version);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/root/lustre-release/lustre/ptlrpc/pack_generic.c:858:20: error: conflicting types for &apos;lustre_msghdr_get_flags&apos; due to enum/integer mismatch; have &apos;enum lustre_msghdr(struct lustre_msg_v2 *)&apos; [-Werror=enum-int-mismatch]
  858 | enum lustre_msghdr lustre_msghdr_get_flags(struct lustre_msg *msg)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
/root/lustre-release/lustre/include/lustre_net.h:2315:7: note: previous declaration of &apos;lustre_msghdr_get_flags&apos; with type &apos;__u32(struct lustre_msg_v2 *)&apos; {aka &apos;unsigned int(struct lustre_msg_v2 *)&apos;}
 2315 | __u32 lustre_msghdr_get_flags(struct lustre_msg *msg);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;liblustreapi_layout.c:2141:5: error: conflicting types for &apos;llapi_layout_comp_use&apos; due to enum/integer mismatch; have &apos;int(struct llapi_layout *, enum llapi_layout_comp_use)&apos; [-Werror=enum-int-mismatch]
 2141 | int llapi_layout_comp_use(struct llapi_layout *layout,
      |     ^~~~~~~~~~~~~~~~~~~~~
In file included from liblustreapi_layout.c:44:
/root/lustre-release/lustre/include/lustre/lustreapi.h:1233:5: note: previous declaration of &apos;llapi_layout_comp_use&apos; with type &apos;int(struct llapi_layout *, uint32_t)&apos; {aka &apos;int(struct llapi_layout *, unsigned int)&apos;}
 1233 | int llapi_layout_comp_use(struct llapi_layout *layout, uint32_t pos);
      |     ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="80639">LU-17504</key>
            <summary>build errors with gcc-13</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Feb 2024 07:47:09 +0000</created>
                <updated>Mon, 5 Feb 2024 07:54:41 +0000</updated>
                                            <version>Lustre 2.16.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="402623" author="yujian" created="Mon, 5 Feb 2024 07:50:08 +0000"  >&lt;p&gt;More fallthrough warnings:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/root/lustre-release/libcfs/libcfs/fail.o: warning: objtool: __cfs_fail_check_set() falls through to next function __cfs_fail_timeout_set()
  CC [M]  /root/lustre-release/libcfs/libcfs/module.o
/root/lustre-release/libcfs/libcfs/module.o: warning: objtool: libcfs_force_lbug() falls through to next function proc_cpt_distance()
  CC [M]  /root/lustre-release/libcfs/libcfs/tracefile.o
  CC [M]  /root/lustre-release/libcfs/libcfs/libcfs_string.o
  CC [M]  /root/lustre-release/libcfs/libcfs/hash.o
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_bd_del_locked() falls through to next function cfs_hash_cond_del_locked()
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_bd_from_key() falls through to next function cfs_hash_buckets_free()
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_bd_get() falls through to next function cfs_hash_multi_bd_findadd_locked.constprop.0()
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_bd_move_locked() falls through to next function cfs_hash_dual_bd_get()
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_dual_bd_get() falls through to next function cfs_hash_rehash_key()
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_rehash_cancel() falls through to next function cfs_hash_putref()
/root/lustre-release/libcfs/libcfs/hash.o: warning: objtool: cfs_hash_for_each_enter() falls through to next function cfs_hash_rehash()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="402625" author="yujian" created="Mon, 5 Feb 2024 07:52:39 +0000"  >&lt;p&gt;More &amp;#45;Werror=attribute-warning errors:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;In function &#8216;fortify_memcpy_chk&#8217;,
    inlined from &#8216;class_handle_ioctl&#8217; at /root/lustre-release/lustre/obdclass/class_obd.c:389:3:
include/linux/fortify-string.h:583:25: error: call to &#8216;__write_overflow_field&#8217; declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  583 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;In function &#8216;fortify_memcpy_chk&#8217;,
    inlined from &#8216;dt_index_page_build&#8217; at /root/lustre-release/lustre/obdclass/dt_object.c:908:5:
include/linux/fortify-string.h:583:25: error: call to &#8216;__write_overflow_field&#8217; declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  583 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="402626" author="yujian" created="Mon, 5 Feb 2024 07:54:41 +0000"  >&lt;p&gt;More &amp;#45;Werror=stringop-overread errors:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;In function &#8216;strcpy&#8217;,
    inlined from &#8216;do_config_log_add.isra&#8217; at /root/lustre-release/lustre/mgc/mgc_request.c:225:2:
include/linux/fortify-string.h:798:17: error: call to &#8216;__write_overflow&#8217; declared with attribute error: detected write beyond size of object (1st parameter)
  798 |                 __write_overflow();
      |                 ^~~~~~~~~~~~~~~~~~
/root/lustre-release/lustre/mgc/mgc_request.c: In function &#8216;config_log_find&#8217;:
/root/lustre-release/lustre/mgc/mgc_request.c:190:21: error: &#8216;strcmp&#8217; reading 1 or more bytes from a region of size 0 [-Werror=stringop-overread]
  190 |                 if (strcmp(logname, cld-&amp;gt;cld_logname) == 0) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/lustre-release/lustre/include/lustre_log.h:54,
                 from /root/lustre-release/lustre/mgc/mgc_request.c:45:
/root/lustre-release/lustre/include/obd_class.h:282:37: note: source object &#8216;cld_logname&#8217; of size 0
  282 |         char                        cld_logname[0];
      |                                     ^~~~~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/root/lustre-release/lustre/lmv/lmv_obd.c: In function &#8216;stripe_dirent_get&#8217;:
/root/lustre-release/lustre/lmv/lmv_obd.c:2767:22: error: &#8216;strncmp&#8217; specified bound [1, 65535] exceeds source size 0 [-Werror=stringop-overread]
 2767 |                     (strncmp(ent-&amp;gt;lde_name, &quot;.&quot;,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
 2768 |                              le16_to_cpu(ent-&amp;gt;lde_namelen)) == 0 ||
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/lustre-release/lustre/include/lprocfs_status.h:50,
                 from /root/lustre-release/lustre/include/obd_support.h:42,
                 from /root/lustre-release/lustre/lmv/lmv_obd.c:46:
/root/lustre-release/lustre/include/uapi/linux/lustre/lustre_idl.h:460:23: note: source object allocated here
  460 |         char          lde_name[0];
      |                       ^~~~~~~~
/root/lustre-release/lustre/lmv/lmv_obd.c:2769:22: error: &#8216;strncmp&#8217; specified bound [1, 65535] exceeds source size 0 [-Werror=stringop-overread]
 2769 |                      strncmp(ent-&amp;gt;lde_name, &quot;..&quot;,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2770 |                              le16_to_cpu(ent-&amp;gt;lde_namelen)) == 0))
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/lustre-release/lustre/include/uapi/linux/lustre/lustre_idl.h:460:23: note: source object allocated here
  460 |         char          lde_name[0];
      |                       ^~~~~~~~
cc1: all warnings being treated as errors
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i04aaf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>