<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:32:13 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-17052] inux-prim.c:129:25: error: dereferencing pointer to incomplete type &#8216;struct xa_node&#8217;</title>
                <link>https://jira.whamcloud.com/browse/LU-17052</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Recent commit &quot;778791dd7d &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8130&quot; title=&quot;Migrate from libcfs hash to rhashtable&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8130&quot;&gt;LU-8130&lt;/a&gt; libcfs: don&apos;t use radix tree for xarray&quot; breaks build on old kernel 4.17-4.19:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
make[3]: Entering directory &lt;span class=&quot;code-quote&quot;&gt;&apos;/usr/src/kernels/4.19.90-2308.2.0.0213.oe1.aarch64&apos;&lt;/span&gt;
&#160; CC [M]&#160; /home/openeuler/lustre-release/libcfs/libcfs/linux/linux-prim.o
/home/openeuler/lustre-release/libcfs/libcfs/linux/linux-prim.c: In function &#8216;xarray_node_ctor&#8217;:
/home/openeuler/lustre-release/libcfs/libcfs/linux/linux-prim.c:129:25: error: dereferencing pointer to incomplete type &#8216;struct xa_node&#8217;
&#160; memset(node, 0, sizeof(*node));
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ^~~~~
/home/openeuler/lustre-release/libcfs/libcfs/linux/linux-prim.c: In function &#8216;cfs_arch_init&#8217;:
/home/openeuler/lustre-release/libcfs/libcfs/linux/linux-prim.c:143:15: error: invalid application of &#8216;sizeof&#8217; to incomplete type &#8216;struct xa_node&#8217;
&#160; &#160; &#160; &#160; sizeof(struct xa_node), 0,
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; ^~~~~~
/home/openeuler/lustre-release/libcfs/libcfs/linux/linux-prim.c: At top level: &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="77601">LU-17052</key>
            <summary>inux-prim.c:129:25: error: dereferencing pointer to incomplete type &#8216;struct xa_node&#8217;</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="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="xinliang">Xinliang Liu</assignee>
                                    <reporter username="xinliang">Xinliang Liu</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Aug 2023 02:35:43 +0000</created>
                <updated>Wed, 6 Sep 2023 13:09:58 +0000</updated>
                            <resolved>Wed, 6 Sep 2023 13:09:58 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="383683" author="xinliang" created="Fri, 25 Aug 2023 03:09:50 +0000"  >&lt;p&gt;This break build might affect old kernel from v4.17 to v4.19. Because v4.17 adds &amp;lt;linux/xarray.h&amp;gt; and make fs.h #include&#160; &amp;lt;linux/xarray.h&amp;gt;, v4.20 introduces full xarray support.&lt;/p&gt;

&lt;p&gt;The cause is that fs.h(from kernel v4.17 commit b93b016313b3) is already included &amp;lt;linux/xarray.h&amp;gt;, so #include &amp;lt;libcfs/linux/xarray.h&amp;gt; which contains the definition of &apos;struct xa_node&apos;&#160; don&apos;t take effect.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
cat libcfs/libcfs/linux/linux-prim.c
...
#include &amp;lt;linux/fs.h&amp;gt;
...
#ifndef HAVE_XARRAY_SUPPORT
#include &amp;lt;libcfs/linux/xarray.h&amp;gt;
#endif &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="383684" author="gerrit" created="Fri, 25 Aug 2023 03:42:55 +0000"  >&lt;p&gt;&quot;xinliang &amp;lt;xinliang.liu@linaro.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52090&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52090&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17052&quot; title=&quot;inux-prim.c:129:25: error: dereferencing pointer to incomplete type &#8216;struct xa_node&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17052&quot;&gt;&lt;del&gt;LU-17052&lt;/del&gt;&lt;/a&gt; libcfs: fix build for old kernel&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: faab3d6bd3d898b6e849705476318e82210a7c09&lt;/p&gt;</comment>
                            <comment id="384891" author="gerrit" created="Wed, 6 Sep 2023 06:15:42 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52090/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52090/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17052&quot; title=&quot;inux-prim.c:129:25: error: dereferencing pointer to incomplete type &#8216;struct xa_node&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17052&quot;&gt;&lt;del&gt;LU-17052&lt;/del&gt;&lt;/a&gt; libcfs: fix build for old kernel&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 75dd69dd6ecac38267a8fbf475945b2a2f293ba9&lt;/p&gt;</comment>
                            <comment id="384969" author="pjones" created="Wed, 6 Sep 2023 13:09:58 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&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|i03twf:</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>