<div dir="ltr">Looks like it&#39;s better to clean it up :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 September 2016 at 01:59, James Simmons <span dir="ltr">&lt;<a href="mailto:jsimmons@infradead.org" target="_blank">jsimmons@infradead.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; We get 1 warning when building kernel with W=1:<br>
&gt; drivers/staging/lustre/lustre/<wbr>lov/lov_object.c:956:23: warning: no previous prototype for &#39;lov_lsm_get&#39; [-Wmissing-prototypes]<br>
&gt; drivers/staging/lustre/lustre/<wbr>lov/lov_object.c:972:6: warning: no previous prototype for &#39;lov_lsm_put&#39; [-Wmissing-prototypes]<br>
&gt; drivers/staging/lustre/lustre/<wbr>lov/lov_object.c:979:5: warning: no previous prototype for &#39;lov_read_and_clear_async_rc&#39; [-Wmissing-prototypes]<br>
&gt;<br>
&gt; In fact, these functions are declared in ../llite/vvp_internal.h,<br>
&gt; so this patch add missing header dependencies.<br>
&gt;<br>
&gt; Signed-off-by: Baoyou Xie &lt;<a href="mailto:baoyou.xie@linaro.org">baoyou.xie@linaro.org</a>&gt;<br>
<br>
</span>Nak. The header vvp_internal.h is meant to private to the llite layer.<br>
Looking at the coming patch updates I see lov_lsm_[put|get] will not be<br>
used in the lov later. Now lov_read_and_clear_async is still used in<br>
both layers. The header used for this case is cl_object.h. Might rename<br>
that function to be consistent with the rest of the header. I will look<br>
into a cleanup for this.<br>
<span class=""><br>
&gt; ---<br>
&gt;  drivers/staging/lustre/lustre/<wbr>lov/lov_object.c | 1 +<br>
&gt;  1 file changed, 1 insertion(+)<br>
&gt;<br>
&gt; diff --git a/drivers/staging/lustre/<wbr>lustre/lov/lov_object.c b/drivers/staging/lustre/<wbr>lustre/lov/lov_object.c<br>
&gt; index f9621b0..912c416 100644<br>
&gt; --- a/drivers/staging/lustre/<wbr>lustre/lov/lov_object.c<br>
&gt; +++ b/drivers/staging/lustre/<wbr>lustre/lov/lov_object.c<br>
&gt; @@ -38,6 +38,7 @@<br>
&gt;  #define DEBUG_SUBSYSTEM S_LOV<br>
&gt;<br>
&gt;  #include &quot;lov_cl_internal.h&quot;<br>
&gt; +#include &quot;../llite/vvp_internal.h&quot;<br>
&gt;<br>
&gt;  /** \addtogroup lov<br>
&gt;   *  @{<br>
&gt; --<br>
&gt; 2.7.4<br>
&gt;<br>
</span>&gt; ______________________________<wbr>_________________<br>
&gt; devel mailing list<br>
&gt; <a href="mailto:devel@linuxdriverproject.org">devel@linuxdriverproject.org</a><br>
&gt; <a href="http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel" rel="noreferrer" target="_blank">http://driverdev.<wbr>linuxdriverproject.org/<wbr>mailman/listinfo/driverdev-<wbr>devel</a><br>
&gt;<br>
</blockquote></div><br></div>