<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:42:52 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-4453] Have prepare-commit-msg or checkpatch.pl to warn about deprecated cfs_* uses</title>
                <link>https://jira.whamcloud.com/browse/LU-4453</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It would be useful for prepare-commit-msg and/or checkpatch.pl warn about cfs_list_&lt;b&gt;() and cfs_atomic_&lt;/b&gt;() and other deprecated wrappers in new patches.&lt;/p&gt;

&lt;p&gt;I think checkpatch.pl has a feature for reporting on deprecated function usage, or we could call the sed script to report on any changes that it finds.&lt;/p&gt;

&lt;p&gt;Now that we are close to finishing the cfs_* wrapper removal we don&apos;t want to introduce new users in patches that are landing. &lt;/p&gt;</description>
                <environment></environment>
        <key id="22661">LU-4453</key>
            <summary>Have prepare-commit-msg or checkpatch.pl to warn about deprecated cfs_* uses</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="jhammond">John Hammond</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>RoDC</label>
                            <label>checkpatch</label>
                    </labels>
                <created>Tue, 7 Jan 2014 23:59:25 +0000</created>
                <updated>Tue, 3 Jun 2014 15:09:04 +0000</updated>
                            <resolved>Tue, 3 Jun 2014 15:09:04 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="74532" author="jhammond" created="Wed, 8 Jan 2014 00:14:40 +0000"  >&lt;p&gt;For checkpatch.pl to warn on cfs_xxx() identifiers we would need to modify Documentation/feature-removal-schedule.txt in the kernel source. Or we could modify checkpatch.pl. Or we could use sed.&lt;/p&gt;</comment>
                            <comment id="76892" author="jhammond" created="Wed, 12 Feb 2014 21:20:51 +0000"  >&lt;p&gt;What exactly should we warn about:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;each function defined in libcfs/include/libcfs/list.h with a cfs_ prefix&lt;/li&gt;
	&lt;li&gt;any function matching cfs_list_*&lt;/li&gt;
	&lt;li&gt;... cfs_hlist_*&lt;/li&gt;
	&lt;li&gt;... cfs_atomic_*&lt;/li&gt;
	&lt;li&gt;... cfs_timer_*&lt;/li&gt;
	&lt;li&gt;... cfs_time_*&lt;/li&gt;
	&lt;li&gt;... cfs_proc_*&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Other?&lt;/p&gt;

&lt;p&gt;We should also update the coding guidelines to say what&apos;s deprecated.&lt;/p&gt;</comment>
                            <comment id="76907" author="jhammond" created="Wed, 12 Feb 2014 22:33:27 +0000"  >&lt;ol&gt;
	&lt;li&gt;cfs_bitmap_*&lt;/li&gt;
	&lt;li&gt;cfs_capable&lt;/li&gt;
	&lt;li&gt;cfs_cap_*&lt;/li&gt;
	&lt;li&gt;cfs_duration_sec&lt;/li&gt;
	&lt;li&gt;cfs_duration_t&lt;/li&gt;
	&lt;li&gt;cfs_duration_usec&lt;/li&gt;
	&lt;li&gt;cfs_fs_time_current&lt;/li&gt;
	&lt;li&gt;cfs_fs_time_t&lt;/li&gt;
	&lt;li&gt;cfs_init_timer&lt;/li&gt;
	&lt;li&gt;cfs_module()&lt;/li&gt;
	&lt;li&gt;CFS_MODULE_PARM&lt;/li&gt;
	&lt;li&gt;CFS_O_* (CFS_O_ACCMODE, CFS_O_APPEND, ...)&lt;/li&gt;
	&lt;li&gt;CFS_PAGE_MASK&lt;/li&gt;
	&lt;li&gt;CFS_PAGE_SIZE&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="76908" author="jhammond" created="Wed, 12 Feb 2014 22:44:49 +0000"  >&lt;p&gt;Bad functions:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;sprintf&lt;/li&gt;
	&lt;li&gt;strcat&lt;/li&gt;
	&lt;li&gt;strcpy&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Including asm headers.&lt;/p&gt;</comment>
                            <comment id="79034" author="jhammond" created="Tue, 11 Mar 2014 20:17:42 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/#/c/9585/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9585/&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="79088" author="lixi" created="Wed, 12 Mar 2014 02:28:50 +0000"  >&lt;p&gt;Do we really need to remove the checking of Documentation/feature-removal-schedule.txt? I think it might be better if we both check Documentation/feature-removal-schedule.txt and keep a special list of Lustre (e.g. cfs_*). Otherwise, it is easy to miss some deprecated functions/include files in Documentation/feature-removal-schedule.txt.&lt;/p&gt;</comment>
                            <comment id="79090" author="jhammond" created="Wed, 12 Mar 2014 02:43:07 +0000"  >&lt;p&gt;Hi Li Xi, I see your point, but when I looked at checkpatch.pl from the 3.12 tree I saw that the deprecated function logic had been removed entirely.&lt;/p&gt;</comment>
                            <comment id="79091" author="lixi" created="Wed, 12 Mar 2014 03:00:41 +0000"  >&lt;p&gt;Ah, I see. That file has been removed since 9c0ece069b3. Thanks for pointing that out.&lt;/p&gt;</comment>
                            <comment id="85594" author="jlevi" created="Tue, 3 Jun 2014 15:09:04 +0000"  >&lt;p&gt;Patch landed to Master.&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|hzwcdj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>12208</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>