<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:03:05 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-6769] Mellanox backport header (kthread.h) conflicts with newer kernels</title>
                <link>https://jira.whamcloud.com/browse/LU-6769</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This is very similar to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5140&quot; title=&quot;Mellanox backport header conflicts with newer kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5140&quot;&gt;&lt;del&gt;LU-5140&lt;/del&gt;&lt;/a&gt;, except the conflict is in kthread.h&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;[  224s] In file included from /usr/src/packages/BUILD/cray-lustre/lnet/klnds/o2iblnd/o2iblnd.h:44,
[  224s]                  from /usr/src/packages/BUILD/cray-lustre/lnet/klnds/o2iblnd/o2iblnd.c:42:
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:21: error: redefinition of typedef &apos;kthread_work_func_t&apos;
[  224s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:55: error: previous declaration of &apos;kthread_work_func_t&apos; was here
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:23: error: redefinition of &apos;struct kthread_worker&apos;
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:29: error: redefinition of &apos;struct kthread_work&apos;
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:75: error: conflicting types for &apos;__init_kthread_worker&apos;
[  224s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:109: error: previous declaration of &apos;__init_kthread_worker&apos; was here
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:94: error: conflicting types for &apos;queue_kthread_work&apos;
[  224s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:128: error: previous declaration of &apos;queue_kthread_work&apos; was here
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:96: error: conflicting types for &apos;flush_kthread_work&apos;
[  224s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:130: error: previous declaration of &apos;flush_kthread_work&apos; was here
[  224s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:97: error: conflicting types for &apos;flush_kthread_worker&apos;
[  224s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:131: error: previous declaration of &apos;flush_kthread_worker&apos; was here
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think we just to test for the kthread code and define CONFIG_COMPAT_IS_KTHREAD as appropriate. I have a patch but might not get around to pushing until Monday.&lt;/p&gt;</description>
                <environment></environment>
        <key id="30839">LU-6769</key>
            <summary>Mellanox backport header (kthread.h) conflicts with newer kernels</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="ashehata">Amir Shehata</assignee>
                                    <reporter username="hornc">Chris Horn</reporter>
                        <labels>
                            <label>RTS</label>
                            <label>patch</label>
                    </labels>
                <created>Fri, 26 Jun 2015 22:06:57 +0000</created>
                <updated>Thu, 14 Jun 2018 21:41:35 +0000</updated>
                            <resolved>Wed, 29 Jul 2015 15:57:20 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="119761" author="simmonsja" created="Sat, 27 Jun 2015 13:10:28 +0000"  >&lt;p&gt;Ugh. Does moving compact-2.6.h to be the first file  fix the issue?&lt;/p&gt;</comment>
                            <comment id="119838" author="hornc" created="Mon, 29 Jun 2015 17:52:54 +0000"  >&lt;p&gt;It does, but if I include your change from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6763&quot; title=&quot;redefinition of sk_sleep when using external OFED and CentOS 6.5&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6763&quot;&gt;&lt;del&gt;LU-6763&lt;/del&gt;&lt;/a&gt; then the error shows up elsewhere:&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;[  139s] In file included from /usr/src/packages/BUILD/cray-lustre/lnet/include/lnet/lib-types.h:49,
[  139s]                  from /usr/src/packages/BUILD/cray-lustre/lnet/include/lnet/lib-lnet.h:51,
[  139s]                  from /usr/src/packages/BUILD/cray-lustre/lnet/lnet/api-ni.c:39:
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:21: error: redefinition of typedef &apos;kthread_work_func_t&apos;
[  139s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:55: error: previous declaration of &apos;kthread_work_func_t&apos; was here
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:23: error: redefinition of &apos;struct kthread_worker&apos;
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:29: error: redefinition of &apos;struct kthread_work&apos;
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:75: error: conflicting types for &apos;__init_kthread_worker&apos;
[  139s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:109: error: previous declaration of &apos;__init_kthread_worker&apos; was here
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:94: error: conflicting types for &apos;queue_kthread_work&apos;
[  139s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:128: error: previous declaration of &apos;queue_kthread_work&apos; was here
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:96: error: conflicting types for &apos;flush_kthread_work&apos;
[  139s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:130: error: previous declaration of &apos;flush_kthread_work&apos; was here
[  139s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s/include/linux/kthread.h:97: error: conflicting types for &apos;flush_kthread_worker&apos;
[  139s] /usr/src/linux-3.0.101-0.46.1_1.0000.8764/include/linux/kthread.h:131: error: previous declaration of &apos;flush_kthread_worker&apos; was here
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If I add a test for this in lustre-lnet.m4, and set:&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;EXTRA_OFED_INCLUDE=&quot;$EXTRA_OFED_INCLUDE -DCONFIG_COMPAT_IS_KTHREAD&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;appropriately then things seem to work.&lt;/p&gt;</comment>
                            <comment id="119845" author="gerrit" created="Mon, 29 Jun 2015 18:16:37 +0000"  >&lt;p&gt;Chris Horn (hornc@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15428&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15428&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6769&quot; title=&quot;Mellanox backport header (kthread.h) conflicts with newer kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6769&quot;&gt;&lt;del&gt;LU-6769&lt;/del&gt;&lt;/a&gt; build: Test for kthread_worker support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d3fd0a93347070422f1c02095d86030e2473d7de&lt;/p&gt;</comment>
                            <comment id="120297" author="pjones" created="Fri, 3 Jul 2015 17:54:31 +0000"  >&lt;p&gt;Amir&lt;/p&gt;

&lt;p&gt;Could you please take care of this patch?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="122554" author="gerrit" created="Wed, 29 Jul 2015 15:39:23 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/15428/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15428/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6769&quot; title=&quot;Mellanox backport header (kthread.h) conflicts with newer kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6769&quot;&gt;&lt;del&gt;LU-6769&lt;/del&gt;&lt;/a&gt; build: Test for kthread_worker support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b984a7bed4afec88677c89840d85f40b48d14c23&lt;/p&gt;</comment>
                            <comment id="122561" author="pjones" created="Wed, 29 Jul 2015 15:57:20 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="30807">LU-6763</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hzxgq7:</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>