<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:52:03 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-5504] Missing &quot;const&quot; qualifier in changelog record accessors</title>
                <link>https://jira.whamcloud.com/browse/LU-5504</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The following function prototypes in &quot;lustre_user.h&quot; require read/write access to their &quot;rec&quot; argument but they don&apos;t need to modify it:&lt;/p&gt;

&lt;p&gt;static inline int changelog_rec_size(struct changelog_rec *rec);&lt;br/&gt;
static inline char *changelog_rec_name(struct changelog_rec *rec);&lt;br/&gt;
static inline int changelog_rec_snamelen(struct changelog_ext_rec *rec);&lt;br/&gt;
static inline char *changelog_rec_sname(struct changelog_ext_rec *rec);&lt;/p&gt;

&lt;p&gt;Qualifying the &quot;rec&quot; argument as &quot;const&quot; would be more rigourous, and would avoid such messages when using them:&lt;br/&gt;
warning: passing argument 1 of &apos;changelog_rec_snamelen&apos; discards qualifiers from pointer target type&lt;br/&gt;
/usr/include/lustre/lustre_user.h:844: note: expected &apos;struct changelog_ext_rec *&apos; but argument is of type &apos;const struct changelog_ext_rec *&apos;&lt;br/&gt;
warning: passing argument 1 of &apos;changelog_rec_sname&apos; discards qualifiers from pointer target type&lt;br/&gt;
/usr/include/lustre/lustre_user.h:849: note: expected &apos;struct changelog_ext_rec *&apos; but argument is of type &apos;const struct changelog_ext_rec *&apos;&lt;/p&gt;

&lt;p&gt;I will submit a patch to make these prototypes more strict.&lt;/p&gt;</description>
                <environment></environment>
        <key id="26062">LU-5504</key>
            <summary>Missing &quot;const&quot; qualifier in changelog record accessors</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="jamesanunez">James Nunez</assignee>
                                    <reporter username="leibovici-cea">Thomas LEIBOVICI - CEA</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 19 Aug 2014 11:37:57 +0000</created>
                <updated>Wed, 25 Mar 2015 13:25:54 +0000</updated>
                            <resolved>Wed, 25 Mar 2015 13:25:54 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                    <version>Lustre 2.5.2</version>
                    <version>Lustre 2.4.3</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="91928" author="leibovici-cea" created="Tue, 19 Aug 2014 11:55:18 +0000"  >&lt;p&gt;Change submitted as: &lt;a href=&quot;http://review.whamcloud.com/#/c/11517/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/11517/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="91970" author="pjones" created="Tue, 19 Aug 2014 18:53:57 +0000"  >&lt;p&gt;James&lt;/p&gt;

&lt;p&gt;Can 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="94107" author="jamesanunez" created="Mon, 15 Sep 2014 23:05:21 +0000"  >&lt;p&gt;Landed to master&lt;/p&gt;</comment>
                            <comment id="107174" author="fzago" created="Tue, 17 Feb 2015 21:19:16 +0000"  >&lt;p&gt;This was accidentally reverted in 0f22e4.&lt;/p&gt;

&lt;p&gt;Can this bug be re-opened?&lt;/p&gt;</comment>
                            <comment id="107175" author="gerrit" created="Tue, 17 Feb 2015 21:19:26 +0000"  >&lt;p&gt;frank zago (fzago@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13787&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13787&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5504&quot; title=&quot;Missing &amp;quot;const&amp;quot; qualifier in changelog record accessors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5504&quot;&gt;&lt;del&gt;LU-5504&lt;/del&gt;&lt;/a&gt; utils: add const qualifier to changelog accessors.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4456a3e7815594337b4f6996bf1cfcc0e7f24572&lt;/p&gt;</comment>
                            <comment id="110600" author="gerrit" created="Wed, 25 Mar 2015 13:06:53 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13787/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13787/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5504&quot; title=&quot;Missing &amp;quot;const&amp;quot; qualifier in changelog record accessors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5504&quot;&gt;&lt;del&gt;LU-5504&lt;/del&gt;&lt;/a&gt; utils: add const qualifier to changelog accessors.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7505b4e4f99af589ce09ef97d21f0abc00ae79a8&lt;/p&gt;</comment>
                            <comment id="110604" author="pjones" created="Wed, 25 Mar 2015 13:25:54 +0000"  >&lt;p&gt;Landed for 2.8&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|hzwu0n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15354</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>