Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1742320
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Alex Deucher <alexdeucher@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH][drm-next] drm/radeon: make functions alloc_pasid and free_pasid static |
| Date | Fri, 29 Sep 2017 22:20:02 +0200 |
| Message-ID | <uv9Vo-2wp-9@gated-at.bofh.it> (permalink) |
| References | <uuHmq-1aC-19@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Zt5UZkzYXY3P/yMFV05594x0a8DSRvPWJ8fQ6MFtYIY=; b=C3zYfMBXpagR90lq5EkrVunLcRN9i+NaIGXGUB9BA5sKBZynfz3YUuax8vzngCK+SS qO2VweBJVkVsRXE5psNigdUeLsD6csNd9WO2be2gOKE12ebWYT7kfZsUjbNqscfmA0mK m/NuvkLNDP2NHhy4SJ1L5qhrU8VnWnjZE+R8gO3cpU5sSZa6iKUL0fIxvSFgY9z5DmZf rjEtC6anogLZdsmu4T4qAUzPCSchP9j7oYMoWT2X+C1ZcccIncI4Td7PFguA50TdPslX VE0O2/F4S40/MIIqRWa1MMS+v7RGEtGopVkXB0B9dkofDYvVfxidaNkHOmYA7ZDq9whg /WYw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Zt5UZkzYXY3P/yMFV05594x0a8DSRvPWJ8fQ6MFtYIY=; b=ce5dcueoYgR+0DyVhIyanheEWzYfcdNUPAmj4gbeEmY9JcaIuZi8VuxYYLuaWhfODK nfAie20KO0dyZNmPr0JhXLWUeECdjAEjiE4ukiZ30NVAqyBkJ+vqagKPAfOEXrtVMkjs 9JtPYqJF7kpSVzgFwU+9Lkb8TO0jR2f5LFrsYxz0J6GQe3exBBVmM9sVKynqueHqEl29 8/aE/DSZ+ErGTedN5c6xEXMFxuMe2eTlUCYSNBSyj4JL5E6iGz75XDIHk7/ToMOgfnqW M/H8bq30/i/run259uugF0YBYFhBQr36Y8t3RhQVzAuqCGKtRrwO6+eFZlrgv5BQk/6j VJBQ== |
| X-Gm-Message-State | AHPjjUjplrhCQHvhdbyOL+YiyVWlYVMS1ElgRtSf9dL3PqVAzrYohyuQ 90n65D5gQ57D+Y3v2dZYpIwxCupiyDLfeoZAnes= |
| X-Google-SMTP-Source | AOwi7QAycNCKm2khcvOy1rLFszqRDhWXFOStoH7OdCJWVz1xtfkAR0+kRKPxxK2YVSXep26LVOLBglP1C+ZZhRva4zE= |
| X-Received | by 10.129.159.73 with SMTP id w70mr7116832ywg.479.1506716030986; Fri, 29 Sep 2017 13:13:50 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 50 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Oded Gabbay <oded.gabbay@gmail.com>, Alex Deucher <alexander.deucher@amd.com>, Christian König <christian.koenig@amd.com>, David Airlie <airlied@linux.ie>, Maling list - DRI developers <dri-devel@lists.freedesktop.org>, amd-gfx list <amd-gfx@lists.freedesktop.org>, kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org> |
| X-Original-Date | Fri, 29 Sep 2017 16:13:49 -0400 |
| X-Original-Message-ID | <CADnq5_OGJ-_59XJ_aQ8C6VR3TRbDAhMYqc=nkv2CncBZnunrBQ@mail.gmail.com> |
| X-Original-References | <20170928134617.8168-1-colin.king@canonical.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1742320 |
Show key headers only | View raw
On Thu, Sep 28, 2017 at 9:46 AM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The functions alloc_pasid and free_pasid are local to the
> source and do not need to be in global scope, so make them static.
>
> Cleans up sparse warnings:
> warning: symbol 'alloc_pasid' was not declared. Should it be static?
> warning: symbol 'free_pasid' was not declared. Should it be static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied. thanks!
Alex
> ---
> drivers/gpu/drm/radeon/radeon_kfd.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_kfd.c b/drivers/gpu/drm/radeon/radeon_kfd.c
> index a2ac8ac0930d..385b4d76956d 100644
> --- a/drivers/gpu/drm/radeon/radeon_kfd.c
> +++ b/drivers/gpu/drm/radeon/radeon_kfd.c
> @@ -352,7 +352,7 @@ static uint32_t get_max_engine_clock_in_mhz(struct kgd_dev *kgd)
> */
> static DEFINE_IDA(pasid_ida);
>
> -int alloc_pasid(unsigned int bits)
> +static int alloc_pasid(unsigned int bits)
> {
> int pasid = -EINVAL;
>
> @@ -367,7 +367,7 @@ int alloc_pasid(unsigned int bits)
> return pasid;
> }
>
> -void free_pasid(unsigned int pasid)
> +static void free_pasid(unsigned int pasid)
> {
> ida_simple_remove(&pasid_ida, pasid);
> }
> --
> 2.14.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH][drm-next] drm/radeon: make functions alloc_pasid and free_pasid static Colin King <colin.king@canonical.com> - 2017-09-28 15:50 +0200 Re: [PATCH][drm-next] drm/radeon: make functions alloc_pasid and free_pasid static Alex Deucher <alexdeucher@gmail.com> - 2017-09-29 22:20 +0200
csiph-web