All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V3 1/2] tst_timer: Add support for kernel's 64 bit timespec
Date: Wed, 22 Apr 2020 15:18:01 +0200	[thread overview]
Message-ID: <20200422131801.GA9146@dell5510> (raw)
In-Reply-To: <20200421154006.GA14036@yuki.lan>

Hi,

> I've cleaned up and simplified these changes + wrote a simple test and
> pushed the result, thanks a lot for your effors.

> Can you please rebase the test changes on the top of these changes? It
> should be merely cosmetical, function names have changes etc.

include/tst_timer.h is broken on gcc 4, which we have in Travis (CentOS 6).
I don't know how to fix this, but maybe fix is trivial.
Or is it time to finally drop this oldest distro? If it's easy to fix, I'd
postpone dropping CentOS 6 after release (some embedded distros/projects might
still use old compilers).

gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -W -Wall -D_FORTIFY_SOURCE=2 -I../../include -I../../include -I../../include/old/   -L../../lib  test_timer.c   -lltp -o test_timer
In file included from test_timer.c:11:
../../include/tst_timer.h: In function ?tst_ts_from_timespec?:
../../include/tst_timer.h:214: error: unknown field ?libc_ts? specified in initializer
../../include/tst_timer.h:214: warning: missing braces around initializer
../../include/tst_timer.h:214: warning: (near initialization for ?t.<anonymous>?)
../../include/tst_timer.h:215: warning: missing initializer
../../include/tst_timer.h:215: warning: (near initialization for ?t.<anonymous>.libc_ts.tv_nsec?)
../../include/tst_timer.h:215: error: unknown field ?libc_ts? specified in initializer
../../include/tst_timer.h:215: warning: excess elements in struct initializer
../../include/tst_timer.h:215: warning: (near initialization for ?t?)
make: *** [test_timer] Error 1

$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)

Kind regards,
Petr

  parent reply	other threads:[~2020-04-22 13:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 10:42 [LTP] [PATCH V3 0/2] syscalls/clock_gettime: Add support for time64 tests Viresh Kumar
2020-04-16 10:42 ` [LTP] [PATCH V3 1/2] tst_timer: Add support for kernel's 64 bit timespec Viresh Kumar
2020-04-21 15:40   ` Cyril Hrubis
2020-04-22  4:07     ` Viresh Kumar
2020-04-22 13:18     ` Petr Vorel [this message]
2020-04-22 13:26       ` Cyril Hrubis
2020-04-22 14:29         ` Cyril Hrubis
2020-04-16 10:42 ` [LTP] [PATCH V3 2/2] syscalls/clock_gettime: Add support for time64 tests Viresh Kumar

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=20200422131801.GA9146@dell5510 \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.