<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:06: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-7120] [style][uselessAssignmentPtrArg] Assignment of function parameter has no effect outside the function.</title>
                <link>https://jira.whamcloud.com/browse/LU-7120</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;File:lustre-wc-rel/lustre/osd-ldiskfs/osd_scrub.c&lt;br/&gt;
Line:785&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;static void osd_scrub_post(struct osd_scrub *scrub, int result)
{
        struct scrub_file *sf = &amp;amp;scrub-&amp;gt;os_file;
        ENTRY;

        CDEBUG(D_LFSCK, &quot;%.16s: OI scrub post, result = %d\n&quot;,
               osd_scrub2name(scrub), result);
.
.
.
        sf-&amp;gt;sf_run_time += cfs_duration_sec(cfs_time_current() + HALF_SEC -
                                            scrub-&amp;gt;os_time_last_checkpoint);
        result = osd_scrub_file_store(scrub); &amp;lt;--- Assignment of function parameter has no effect outside the function.
        up_write(&amp;amp;scrub-&amp;gt;os_rwsem);

        EXIT;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Called from:&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;static int osd_scrub_main(void *args)
{
        struct lu_env         env;
        struct osd_device    *dev    = (struct osd_device *)args;
        struct osd_scrub     *scrub  = &amp;amp;dev-&amp;gt;od_scrub;
        struct ptlrpc_thread *thread = &amp;amp;scrub-&amp;gt;os_thread;
        int                   rc;
        ENTRY;
.
.
.
post:
        osd_scrub_post(scrub, rc); &amp;lt;--- Called from here
        CDEBUG(D_LFSCK, &quot;%.16s: OI scrub: stop, pos = %u: rc = %d\n&quot;,
               osd_scrub2name(scrub), scrub-&amp;gt;os_pos_current, rc);

out:
        while (!list_empty(&amp;amp;scrub-&amp;gt;os_inconsistent_items)) {
                struct osd_inconsistent_item *oii;

                oii = list_entry(scrub-&amp;gt;os_inconsistent_items.next,
                                     struct osd_inconsistent_item, oii_list);
                list_del_init(&amp;amp;oii-&amp;gt;oii_list);
                OBD_FREE_PTR(oii);
        }
        lu_env_fini(&amp;amp;env);

noenv:
        spin_lock(&amp;amp;scrub-&amp;gt;os_lock);
        thread_set_flags(thread, SVC_STOPPED);
        wake_up_all(&amp;amp;thread-&amp;gt;t_ctl_waitq);
        spin_unlock(&amp;amp;scrub-&amp;gt;os_lock);
        return rc;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

</description>
                <environment>any</environment>
        <key id="32004">LU-7120</key>
            <summary>[style][uselessAssignmentPtrArg] Assignment of function parameter has no effect outside the 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="1">Fixed</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="app">Ashish Purkar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Sep 2015 10:23:01 +0000</created>
                <updated>Mon, 16 Nov 2015 14:20:39 +0000</updated>
                            <resolved>Mon, 16 Nov 2015 14:20:39 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="126955" author="pjones" created="Thu, 10 Sep 2015 17:54:59 +0000"  >&lt;p&gt;Fan Yong&lt;/p&gt;

&lt;p&gt;Could you please look into this?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="127032" author="gerrit" created="Fri, 11 Sep 2015 02:18:08 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16368&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16368&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7120&quot; title=&quot;[style][uselessAssignmentPtrArg] Assignment of function parameter has no effect outside the function.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7120&quot;&gt;&lt;del&gt;LU-7120&lt;/del&gt;&lt;/a&gt; scrub: handle osd_scrub_post return value&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d1591a3ba47d6d873730faf85654f3ddfa5345ff&lt;/p&gt;</comment>
                            <comment id="133472" author="gerrit" created="Fri, 13 Nov 2015 18:25:25 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16368/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16368/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7120&quot; title=&quot;[style][uselessAssignmentPtrArg] Assignment of function parameter has no effect outside the function.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7120&quot;&gt;&lt;del&gt;LU-7120&lt;/del&gt;&lt;/a&gt; scrub: handle osd_scrub_post return value&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2057592b01a4751d3e6c25f5604a288d37981857&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|hzxmxz:</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>