public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Baoyou Xie <baoyou.xie@linaro.org>
Cc: "Deucher, Alexander" <alexander.deucher@amd.com>,
	"Dave Airlie" <airlied@linux.ie>, "Zhu, Rex" <Rex.Zhu@amd.com>,
	"Zhou, Jammy" <Jammy.Zhou@amd.com>,
	"Huang, JinHuiEric" <JinHuiEric.Huang@amd.com>,
	"StDenis, Tom" <tom.stdenis@amd.com>,
	"Edward O'Callaghan" <funfunctor@folklore1984.net>,
	"Prosyak, Vitaly" <vitaly.prosyak@amd.com>,
	"Yang, Eric" <eric.yang2@amd.com>,
	"Yang, Young" <Young.Yang@amd.com>,
	"Huang Rui" <ray.huang@amd.com>,
	"Dan Carpenter" <dan.carpenter@oracle.com>,
	"Cui, Flora" <Flora.Cui@amd.com>,
	"Nils Wallménius" <nils.wallmenius@gmail.com>,
	"Liu, Monk" <Monk.Liu@amd.com>,
	Qingqing.Wang@amd.com, "Min, Frank" <Frank.Min@amd.com>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	xie.baoyou@zte.com.cn, han.fei@zte.com.cn,
	tang.qiang007@zte.com.cn
Subject: Re: [PATCH] drm/amd/powerplay: mark symbols static where possible
Date: Tue, 25 Oct 2016 10:15:06 +0200	[thread overview]
Message-ID: <10254575.qBa8RMPyZ5@wuerfel> (raw)
In-Reply-To: <CA+DQWkxdO72H4ZbUkYyJwPOe2JGRv_Tz1eUkZ5=FJoOonoWp=Q@mail.gmail.com>

On Tuesday, October 25, 2016 10:31:21 AM CEST Baoyou Xie wrote:
> On 25 October 2016 at 04:51, Arnd Bergmann <arnd@arndb.de> wrote:
> > On Saturday, October 22, 2016 4:56:22 PM CEST Baoyou Xie wrote:
> > The function has no callers, so the easiest way would be to remove it
> > entirely, but it's possible that there are plans to add users soon.
> >
> > It was assumed that this function will be used soon, so this patch remains
> it.
> if it still not be used in 4.10, then we can remove it.
> is it right?

There is no such rule in general, it's up to the maintainer and
it depends on the specific reason for why the function ended up
being unused in the first place.

However, we can expect the maintainer to come up with some solution
to address the warning. Possible options include:

- calling the function from where it was meant to be used
- removing the function
- adding __maybe_unused
- adding an #if 0

I have not looked at this specific example and do not know
which of them would be appropriate here. If you look at the
output of 'git log -p drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/smu7_hwmgr.c'
you might find it out yourself.

	Arnd

  parent reply	other threads:[~2016-10-25  8:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-22  8:56 [PATCH] drm/amd/powerplay: mark symbols static where possible Baoyou Xie
2016-10-22  9:28 ` Edward O'Callaghan
2016-10-24 16:36 ` Alex Deucher
2016-10-24 19:49   ` Arnd Bergmann
2016-10-24 20:07     ` Deucher, Alexander
2016-10-24 20:41       ` Arnd Bergmann
2016-10-25  6:41         ` Daniel Vetter
2016-10-25  7:09           ` Christian König
2016-10-25  8:11             ` Daniel Vetter
2016-10-24 20:51 ` Arnd Bergmann
     [not found]   ` <CA+DQWkxdO72H4ZbUkYyJwPOe2JGRv_Tz1eUkZ5=FJoOonoWp=Q@mail.gmail.com>
2016-10-25  8:15     ` Arnd Bergmann [this message]
2016-10-25 20:07       ` Deucher, Alexander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10254575.qBa8RMPyZ5@wuerfel \
    --to=arnd@arndb.de \
    --cc=Flora.Cui@amd.com \
    --cc=Frank.Min@amd.com \
    --cc=Jammy.Zhou@amd.com \
    --cc=JinHuiEric.Huang@amd.com \
    --cc=Monk.Liu@amd.com \
    --cc=Qingqing.Wang@amd.com \
    --cc=Rex.Zhu@amd.com \
    --cc=Young.Yang@amd.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=baoyou.xie@linaro.org \
    --cc=dan.carpenter@oracle.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eric.yang2@amd.com \
    --cc=funfunctor@folklore1984.net \
    --cc=han.fei@zte.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nils.wallmenius@gmail.com \
    --cc=ray.huang@amd.com \
    --cc=tang.qiang007@zte.com.cn \
    --cc=tom.stdenis@amd.com \
    --cc=vitaly.prosyak@amd.com \
    --cc=xie.baoyou@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox