From: Jan Vesely <jan.vesely@rutgers.edu>
To: Emil Velikov <emil.l.velikov@gmail.com>
Cc: ML dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH libdrm 1/8] Add static qualifier to local functions
Date: Fri, 13 Mar 2015 20:08:54 -0400 [thread overview]
Message-ID: <1426291734.3249.32.camel@rutgers.edu> (raw)
In-Reply-To: <CACvgo53JF_vQgfnm8vtuD67_Kx2mf21VYN+6SBfuFe9bgLAAfQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2916 bytes --]
On Fri, 2015-03-13 at 23:07 +0000, Emil Velikov wrote:
> On 27 February 2015 at 18:07, Jan Vesely <jan.vesely@rutgers.edu> wrote:
> > Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
> > ---
> > tests/drmstat.c | 8 ++++----
> > tests/kmstest/main.c | 2 +-
> > tests/modeprint/modeprint.c | 18 +++++++++---------
> > tests/proptest/proptest.c | 2 +-
> > tests/radeon/radeon_ttm.c | 4 ++--
> > xf86drm.c | 2 +-
> > xf86drmMode.c | 2 +-
> > 7 files changed, 19 insertions(+), 19 deletions(-)
> >
> > diff --git a/tests/drmstat.c b/tests/drmstat.c
> > index 5935d07..36cc70d 100644
> > --- a/tests/drmstat.c
> > +++ b/tests/drmstat.c
> > @@ -81,13 +81,13 @@ static void getversion(int fd)
> > printf( "No driver available\n" );
> > }
> > }
> > -
> > -void handler(int fd, void *oldctx, void *newctx)
> > +
> > +static void handler(int fd, void *oldctx, void *newctx)
> > {
> > printf("Got fd %d\n", fd);
> > }
> >
> It's only "user" was commented out as a transition to libdrm2 afaict.
> Should be safe to nuke alongside the commented out caller.
This one got commented out in 8/8 if you prefer I can nuke it, and apply
8/8 before this one.
>
> > -void process_sigio(char *device)
> > +static void process_sigio(char *device)
> > {
> > int fd;
> >
> > @@ -427,7 +427,7 @@ int main(int argc, char **argv)
> > return r;
> > }
> >
> > -void DRM_PRINTFLIKE(4, 0)
> > +static void DRM_PRINTFLIKE(4, 0)
> > xf86VDrvMsgVerb(int scrnIndex, int type, int verb, const char *format,
> > va_list args)
> Think don't need to bother making this static and just nuke it. It
> seems like it was added by mistake (commit c3092ead642) and never
> used.
same here. it is removed in 8/8 I can reorder the patches tog et rid of
this artifact
>
> ...
> > diff --git a/xf86drm.c b/xf86drm.c
> > index e117bc6..016247f 100644
> > --- a/xf86drm.c
> > +++ b/xf86drm.c
> > @@ -131,7 +131,7 @@ drmMsg(const char *format, ...)
> > }
> > }
> >
> > -void
> > +static void
> > drmSetDebugMsgFunction(debug_msg_func_t debug_msg_ptr)
> > {
> > drm_debug_print = debug_msg_ptr;
> > diff --git a/xf86drmMode.c b/xf86drmMode.c
> > index 9ea8fe7..1c06a19 100644
> > --- a/xf86drmMode.c
> > +++ b/xf86drmMode.c
> > @@ -76,7 +76,7 @@ static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg)
> > * Util functions
> > */
> >
> > -void* drmAllocCpy(void *array, int count, int entry_size)
> > +static void* drmAllocCpy(void *array, int count, int entry_size)
> Strictly speaking these could still be used, despite never being part
> of the API. Although my vote (fwiw) would be to that we're safe.
This one is heavily used in the same file.
>
> Cheers,
> Emil
--
Jan Vesely <jan.vesely@rutgers.edu>
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-03-14 0:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 18:07 [PATCH libdrm 0/8] Warnings fixes Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 1/8] Add static qualifier to local functions Jan Vesely
2015-03-13 23:07 ` Emil Velikov
2015-03-14 0:08 ` Jan Vesely [this message]
2015-03-14 13:12 ` Emil Velikov
2015-03-15 18:09 ` [PATCH libdrm v2 " Jan Vesely
2015-03-16 21:44 ` Emil Velikov
2015-02-27 18:07 ` [PATCH libdrm 2/8] tests: String literals are const char * Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 3/8] Fix type-limits, pointer-arith and sign-compare warnings Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 4/8] xf86drmSL: Fix neighbour printing Jan Vesely
2015-03-15 18:31 ` Jan Vesely
2015-03-20 17:38 ` Emil Velikov
2015-03-20 18:01 ` Jan Vesely
2015-03-20 22:00 ` Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 5/8] Fix aliasing and switch-enum warnings Jan Vesely
2015-03-13 23:15 ` Emil Velikov
2015-02-27 18:07 ` [PATCH libdrm 6/8] dristat: Handle DRM_CONSISTENT Jan Vesely
2015-02-27 18:07 ` [PATCH libdrm 7/8] Fix unused, and unused-but-set variables warnings Jan Vesely
2015-03-13 22:56 ` Emil Velikov
2015-03-13 23:37 ` Jan Vesely
2015-03-14 13:14 ` Emil Velikov
2015-02-27 18:07 ` [PATCH libdrm 8/8] Fix unused function warnings Jan Vesely
2015-03-18 18:37 ` [PATCH libdrm v2 " Jan Vesely
2015-03-18 18:37 ` [PATCH libdrm 9/8] Remove drmSetDebugMsgFunction and related infrastructure Jan Vesely
2015-03-20 21:06 ` Emil Velikov
2015-03-20 21:42 ` Jan Vesely
2015-03-20 17:33 ` [PATCH libdrm v2 8/8] Fix unused function warnings Emil Velikov
2015-02-27 22:27 ` [PATCH libdrm 0/8] Warnings fixes Emil Velikov
2015-03-13 23:20 ` Emil Velikov
2015-03-14 0:10 ` Jan Vesely
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=1426291734.3249.32.camel@rutgers.edu \
--to=jan.vesely@rutgers.edu \
--cc=dri-devel@lists.freedesktop.org \
--cc=emil.l.velikov@gmail.com \
/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