<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 25 October 2016 at 16:15, Arnd Bergmann <span dir="ltr"><<a href="mailto:arnd@arndb.de" target="_blank">arnd@arndb.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tuesday, October 25, 2016 10:31:21 AM CEST Baoyou Xie wrote:<br>
> On 25 October 2016 at 04:51, Arnd Bergmann <<a href="mailto:arnd@arndb.de">arnd@arndb.de</a>> wrote:<br>
> > On Saturday, October 22, 2016 4:56:22 PM CEST Baoyou Xie wrote:<br>
</span><span class="">> > The function has no callers, so the easiest way would be to remove it<br>
> > entirely, but it's possible that there are plans to add users soon.<br>
> ><br>
> > It was assumed that this function will be used soon, so this patch remains<br>
> it.<br>
> if it still not be used in 4.10, then we can remove it.<br>
> is it right?<br>
<br>
</span>There is no such rule in general, it's up to the maintainer and<br>
it depends on the specific reason for why the function ended up<br>
being unused in the first place.<br>
<br>
However, we can expect the maintainer to come up with some solution<br>
to address the warning. Possible options include:<br>
<br>
- calling the function from where it was meant to be used<br>
- removing the function<br>
- adding __maybe_unused<br>
- adding an #if 0<br>
<br>
I have not looked at this specific example and do not know<br>
which of them would be appropriate here. If you look at the<br>
output of 'git log -p drivers/gpu/drm/amd/amdgpu/../<wbr>powerplay/hwmgr/smu7_hwmgr.c'<br>
you might find it out yourself.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br>Good idea :)<br><br></div><div>hi, Daniel:<br>    could you tell me the git tree that you use? it's better to work on your git tree.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
        Arnd<br>
</font></span></blockquote></div><br></div></div>