<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:10 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-6548] build errors building against recent 4.1-rc1 kernel on Ubuntu 15.04 building llibcfs/libcfs/linux/linux-cpu.c</title>
                <link>https://jira.whamcloud.com/browse/LU-6548</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Kernel API changes cause libcfs/libcfs/linux/linux-cpu.c build errors:&lt;/p&gt;

&lt;p&gt;/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpu_core_nsiblings&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:99:2: error: implicit declaration of function &#8216;cpus_weight&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
  num = cpus_weight(*cpt_data.cpt_cpumask);&lt;br/&gt;
  ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_table_print&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:248:3: error: implicit declaration of function &#8216;for_each_cpu_mask&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
   for_each_cpu_mask(j, *cptab-&amp;gt;ctb_parts&lt;span class=&quot;error&quot;&gt;&amp;#91;i&amp;#93;&lt;/span&gt;.cpt_cpumask) {&lt;br/&gt;
   ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:248:58: error: expected &#8216;;&#8217; before &#8216;{&#8217; token&lt;br/&gt;
   for_each_cpu_mask(j, *cptab-&amp;gt;ctb_parts&lt;span class=&quot;error&quot;&gt;&amp;#91;i&amp;#93;&lt;/span&gt;.cpt_cpumask) {&lt;br/&gt;
                                                          ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_online&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:295:9: error: implicit declaration of function &#8216;any_online_cpu&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
         any_online_cpu(*cptab-&amp;gt;ctb_cpumask) != NR_CPUS :&lt;br/&gt;
         ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_set_cpu&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:340:2: error: implicit declaration of function &#8216;cpu_isset&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
  LASSERT(!cpu_isset(cpu, *cptab-&amp;gt;ctb_cpumask));&lt;br/&gt;
  ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:343:2: error: implicit declaration of function &#8216;cpu_set&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
  cpu_set(cpu, *cptab-&amp;gt;ctb_cpumask);&lt;br/&gt;
  ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_unset_cpu&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:391:2: error: implicit declaration of function &#8216;cpu_clear&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
  cpu_clear(cpu, *cptab-&amp;gt;ctb_parts&lt;span class=&quot;error&quot;&gt;&amp;#91;cpt&amp;#93;&lt;/span&gt;.cpt_cpumask);&lt;br/&gt;
  ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:400:59: error: expected &#8216;;&#8217; before &#8216;{&#8217; token&lt;br/&gt;
  for_each_cpu_mask(i, *cptab-&amp;gt;ctb_parts&lt;span class=&quot;error&quot;&gt;&amp;#91;cpt&amp;#93;&lt;/span&gt;.cpt_cpumask) {&lt;br/&gt;
                                                           ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:409:44: error: expected &#8216;;&#8217; before &#8216;{&#8217; token&lt;br/&gt;
  for_each_cpu_mask(i, *cptab-&amp;gt;ctb_cpumask) {&lt;br/&gt;
                                            ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_set_cpumask&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:433:30: error: expected &#8216;;&#8217; before &#8216;{&#8217; token&lt;br/&gt;
  for_each_cpu_mask(i, *mask) {&lt;br/&gt;
                              ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_unset_cpumask&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:448:3: error: expected &#8216;;&#8217; before &#8216;cfs_cpt_unset_cpu&#8217;&lt;br/&gt;
   cfs_cpt_unset_cpu(cptab, cpt, i);&lt;br/&gt;
   ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_clear&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:538:4: error: expected &#8216;;&#8217; before &#8216;cfs_cpt_unset_cpu&#8217;&lt;br/&gt;
    cfs_cpt_unset_cpu(cptab, cpt, i);&lt;br/&gt;
    ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_choose_ncpus&#8217;:&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:662:3: error: implicit declaration of function &#8216;cpus_empty&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
   while (!cpus_empty(*node)) {&lt;br/&gt;
   ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:663:4: error: implicit declaration of function &#8216;first_cpu&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
    cpu = first_cpu(*node);&lt;br/&gt;
    ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:686:3: error: implicit declaration of function &#8216;cpus_and&#8217; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=implicit-function-declaration&amp;#93;&lt;/span&gt;&lt;br/&gt;
   cpus_and(*socket, *socket, *node);&lt;br/&gt;
   ^&lt;br/&gt;
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:699:32: error: expected &#8216;;&#8217; before &#8216;{&#8217; token&lt;br/&gt;
    for_each_cpu_mask(i, *core) &lt;/p&gt;
{
                                ^
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c: In function &#8216;cfs_cpt_set_cpumask&#8217;:
/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-cpu.c:439:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
&lt;p&gt; ^&lt;br/&gt;
cc1: some warnings being treated as errors&lt;/p&gt;</description>
                <environment>Ubuntu 13.04, with recent 4.1-rc1 kernel</environment>
        <key id="29797">LU-6548</key>
            <summary>build errors building against recent 4.1-rc1 kernel on Ubuntu 15.04 building llibcfs/libcfs/linux/linux-cpu.c</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="wc-triage">WC Triage</assignee>
                                    <reporter username="colinianking">Colin Ian King</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Apr 2015 13:29:30 +0000</created>
                <updated>Thu, 30 Apr 2015 17:25:40 +0000</updated>
                            <resolved>Thu, 30 Apr 2015 17:25:40 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="113861" author="colinianking" created="Thu, 30 Apr 2015 13:36:15 +0000"  >&lt;p&gt;The build errors are due to the following commit that removed the deprecated cpumask functions.  So I guess the new API should be used now.&lt;/p&gt;

&lt;p&gt;commit 2f0f267ea0720ec6adbe9cf7386450425fac8258&lt;br/&gt;
Author: Rusty Russell &amp;lt;rusty@rustcorp.com.au&amp;gt;&lt;br/&gt;
Date:   Thu Mar 5 10:49:19 2015 +1030&lt;/p&gt;

&lt;p&gt;    cpumask: remove deprecated functions.&lt;/p&gt;

&lt;p&gt;    Using these functions with offstack cpus is unsafe.  They use all NR_CPUS&lt;br/&gt;
    bits, unstead of nr_cpumask_bits.&lt;/p&gt;

&lt;p&gt;    In particular, lustre (in staging) used cpus_ and that caused a bug.&lt;/p&gt;

&lt;p&gt;    Reported-by: Oleg Drokin &amp;lt;green@linuxhacker.ru&amp;gt;&lt;br/&gt;
    Signed-off-by: Rusty Russell &amp;lt;rusty@rustcorp.com.au&amp;gt;&lt;/p&gt;</comment>
                            <comment id="113902" author="green" created="Thu, 30 Apr 2015 17:25:40 +0000"  >&lt;p&gt;This is a dup of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6285&quot; title=&quot;Assert fails in staging client module crashes kernel if CPUMASK_OFFSTACK set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6285&quot;&gt;&lt;del&gt;LU-6285&lt;/del&gt;&lt;/a&gt;, and the remaining patch for this ticket is in &lt;a href=&quot;http://review.whamcloud.com/#/c/13926/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/13926/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;should land into our master tree soon.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="28577">LU-6215</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|hzxc87:</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>