<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:58:01 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-13060] error: &#8216;ldiskfs_iget&#8217; undeclared here (not in a function)</title>
                <link>https://jira.whamcloud.com/browse/LU-13060</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While building Lustre server on RHEL 8.1 with kernel 4.18.0-147.0.3.el8_1, the build failed as follows:&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;make[3]: Entering directory &apos;/root/kernel/rpmbuild/BUILD/kernel-4.18.0-147.0.3.el8_1/linux-4.18.0-147.0.3.el8_lustre.x86_64&apos;
  CC [M]  /root/lustre-release/ldiskfs/inode.o
In file included from include/linux/linkage.h:7,
                 from include/linux/fs.h:6,
                 from /root/lustre-release/ldiskfs/inode.c:22:
/root/lustre-release/ldiskfs/inode.c:6294:15: error: &#8216;ldiskfs_iget&#8217; undeclared here (not in a function); did you mean &#8216;ldiskfs_ioctl&#8217;?
 EXPORT_SYMBOL(ldiskfs_iget);
               ^~~~~~~~~~~~
include/linux/export.h:59:16: note: in definition of macro &#8216;___EXPORT_SYMBOL&#8217;
  extern typeof(sym) sym;      \
                ^~~
/root/lustre-release/ldiskfs/inode.c:6294:1: note: in expansion of macro &#8216;EXPORT_SYMBOL&#8217;
 EXPORT_SYMBOL(ldiskfs_iget);
 ^~~~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:313: /root/lustre-release/ldiskfs/inode.o] Error 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In kernel 4.18.0-147.0.3.el8_1:&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;struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,
                          ext4_iget_flags flags, const char *function,
                          unsigned int line);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In previous kernel versions:&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;struct inode *ext4_iget(struct super_block *sb, unsigned long ino);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Distro/Arch: RHEL8.1/x86_64</environment>
        <key id="57586">LU-13060</key>
            <summary>error: &#8216;ldiskfs_iget&#8217; undeclared here (not in a function)</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="3">Duplicate</resolution>
                                        <assignee username="ys">Yang Sheng</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Dec 2019 10:13:32 +0000</created>
                <updated>Wed, 17 Feb 2021 22:19:56 +0000</updated>
                            <resolved>Thu, 12 Dec 2019 23:34:22 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="259543" author="pjones" created="Tue, 10 Dec 2019 19:22:11 +0000"  >&lt;p&gt;Yang Sheng&lt;/p&gt;

&lt;p&gt;What do you advise here?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="259572" author="ys" created="Wed, 11 Dec 2019 04:27:50 +0000"  >&lt;p&gt;Hi, Yujian,&lt;/p&gt;

&lt;p&gt;Could you please remove the EXPORT_SYMBOL(ext4_iget) line from ext4_misc.patch? Also please change ext4-large-eas.patch for ext4_iget to adopt 3 args as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;        ea_inode = ext4_iget(parent-&amp;gt;i_sb, ea_ino, EXT4_IGET_NORMAL);&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
YangSheng&lt;/p&gt;</comment>
                            <comment id="259575" author="yujian" created="Wed, 11 Dec 2019 04:44:36 +0000"  >&lt;p&gt;Sure, Yang Sheng. I&apos;ll try that.&lt;/p&gt;</comment>
                            <comment id="259616" author="ys" created="Wed, 11 Dec 2019 16:38:20 +0000"  >&lt;p&gt;Hi, Yujian,&lt;/p&gt;

&lt;p&gt;To fix my previous comment, I think we still need export the __ext4_iget for osd. &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Yangsheng&lt;/p&gt;</comment>
                            <comment id="259778" author="yujian" created="Thu, 12 Dec 2019 23:34:22 +0000"  >&lt;p&gt;It works. Thank you, Yang Sheng.&lt;br/&gt;
RHEL 8.1 server build passed on my local build node. I updated patch &lt;a href=&quot;https://review.whamcloud.com/36968&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36968&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                            <outwardlinks description="is blocking">
                                        <issuelink>
            <issuekey id="56588">LU-12637</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|i00qpb:</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>