public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] Remove unneeded time() declaration.
@ 2017-02-28 21:35 Steve Ellcey
  2017-03-01 12:46 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Ellcey @ 2017-02-28 21:35 UTC (permalink / raw)
  To: ltp

The 'extern long time()' declaration conflicts with time.h which
declares time() to be of type time_t which may or may not be long.
This declaration causes a build failure on x86_64 if the file is
compiled with the -mx32 flag.  The time() function does not appear
to be used anywhere in fcntl14 so I am not sure why the declaration
is there anyway.
---
 testcases/kernel/syscalls/fcntl/fcntl14.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/testcases/kernel/syscalls/fcntl/fcntl14.c b/testcases/kernel/syscalls/fcntl/fcntl14.c
index c61eb24..1799084 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl14.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl14.c
@@ -775,8 +775,6 @@ void dochild(void)
 
 void run_test(int file_flag, int file_mode, int seek, int start, int end)
 {
-	extern long time();
-
 	fail = 0;
 
 	for (test = start; test < end; test++) {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Remove unneeded time() declaration.
  2017-02-28 21:35 [LTP] [PATCH] Remove unneeded time() declaration Steve Ellcey
@ 2017-03-01 12:46 ` Cyril Hrubis
  2017-03-01 17:26   ` Steve Ellcey
  0 siblings, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2017-03-01 12:46 UTC (permalink / raw)
  To: ltp

Hi!
> The 'extern long time()' declaration conflicts with time.h which
> declares time() to be of type time_t which may or may not be long.
> This declaration causes a build failure on x86_64 if the file is
> compiled with the -mx32 flag.  The time() function does not appear
> to be used anywhere in fcntl14 so I am not sure why the declaration
> is there anyway.

This is obviously correct, but the patch misses the Signed-of-by: line.

Also usually the first line of the patch describes what testcase it
fixes so it should have been something like:

syscalls/fcntl14: Remove unneeded time() declaration.

Can you please resend with fixed commit description?

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Remove unneeded time() declaration.
  2017-03-01 12:46 ` Cyril Hrubis
@ 2017-03-01 17:26   ` Steve Ellcey
  2017-03-02 12:41     ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Ellcey @ 2017-03-01 17:26 UTC (permalink / raw)
  To: ltp

On Wed, 2017-03-01 at 13:46 +0100, Cyril Hrubis wrote:
> Hi!
> > 
> > The 'extern long time()' declaration conflicts with time.h which
> > declares time() to be of type time_t which may or may not be long.
> > This declaration causes a build failure on x86_64 if the file is
> > compiled with the -mx32 flag.  The time() function does not appear
> > to be used anywhere in fcntl14 so I am not sure why the declaration
> > is there anyway.
> This is obviously correct, but the patch misses the Signed-of-by:
> line.
> 
> Also usually the first line of the patch describes what testcase it
> fixes so it should have been something like:
> 
> syscalls/fcntl14: Remove unneeded time() declaration.
> 
> Can you please resend with fixed commit description?

I updated the comments and resent the patch using format-patch and
send-email.  I am not sure if that is the right way to do it but I
don't see any way to use format-patch/send-email to resend the patch as
a response to your email so I sent it as a new email/thread.  The
inability (as far as I know) to update the patch and send it as a
response to an existing email thread is one of the reasons I am not a
huge fan of those tools but if that is how you want it done, I will do
it that way.

Steve Ellcey

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Remove unneeded time() declaration.
  2017-03-01 17:26   ` Steve Ellcey
@ 2017-03-02 12:41     ` Cyril Hrubis
  0 siblings, 0 replies; 4+ messages in thread
From: Cyril Hrubis @ 2017-03-02 12:41 UTC (permalink / raw)
  To: ltp

Hi!
> I updated the comments and resent the patch using format-patch and
> send-email. ??I am not sure if that is the right way to do it but I
> don't see any way to use format-patch/send-email to resend the patch as
> a response to your email so I sent it as a new email/thread. ??The
> inability (as far as I know) to update the patch and send it as a
> response to an existing email thread is one of the reasons I am not a
> huge fan of those tools but if that is how you want it done, I will do
> it that way.

The usuall way is to send new version of a patchset as new thread,
ideally adding vN to the subject where N is number that increases with
each iteration.

And yes, the git-send-email is tailored to specific workflow so as far
as the workflow works for particular project, everything works great.

But the same goes for GitHub, I do not like the workflow their tools are
tailored for, but I still use them when needed. And quite possibly I do
not like it since I'm still much more used to sending patches by
email...

Anyway all that matters in the end is that patches gets applied :-).

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-02 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 21:35 [LTP] [PATCH] Remove unneeded time() declaration Steve Ellcey
2017-03-01 12:46 ` Cyril Hrubis
2017-03-01 17:26   ` Steve Ellcey
2017-03-02 12:41     ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox