From: Khem Raj <raj.khem@gmail.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V3 04/23] Remove unused __BEGIN_DECLS and __END_DECLS
Date: Thu, 21 Jul 2016 21:26:37 -0700 [thread overview]
Message-ID: <20160722042656.22346-4-raj.khem@gmail.com> (raw)
In-Reply-To: <20160722042656.22346-1-raj.khem@gmail.com>
Replace __s32 definitions with int32_t
its not a generally available typedef
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
testcases/kernel/syscalls/epoll2/include/epoll.h | 5 -----
utils/sctp/include/netinet/sctp.h | 10 +++-------
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/testcases/kernel/syscalls/epoll2/include/epoll.h b/testcases/kernel/syscalls/epoll2/include/epoll.h
index be599c7..d6976d1 100644
--- a/testcases/kernel/syscalls/epoll2/include/epoll.h
+++ b/testcases/kernel/syscalls/epoll2/include/epoll.h
@@ -84,9 +84,6 @@ struct epoll_event
epoll_data_t data; /* User data variable */
} EPOLL_PACKED;
-
-__BEGIN_DECLS
-
/* Creates an epoll instance. Returns an fd for the new instance.
The "size" parameter is a hint specifying the number of file
descriptors to be associated with the new instance. The fd
@@ -114,6 +111,4 @@ extern int epoll_ctl (int __epfd, int __op, int __fd,
extern int epoll_wait (int __epfd, struct epoll_event *__events,
int __maxevents, int __timeout) __THROW;
-__END_DECLS
-
#endif /* sys/epoll.h */
diff --git a/utils/sctp/include/netinet/sctp.h b/utils/sctp/include/netinet/sctp.h
index 51f5bfb..c302cdb 100644
--- a/utils/sctp/include/netinet/sctp.h
+++ b/utils/sctp/include/netinet/sctp.h
@@ -37,9 +37,7 @@
#include <linux/types.h>
#include <sys/socket.h>
-__BEGIN_DECLS
-
-typedef __s32 sctp_assoc_t;
+typedef int32_t sctp_assoc_t;
/* Socket option layer for SCTP */
#ifndef SOL_SCTP
@@ -658,7 +656,7 @@ struct sctp_assoc_value {
struct sctp_paddrinfo {
sctp_assoc_t spinfo_assoc_id;
struct sockaddr_storage spinfo_address;
- __s32 spinfo_state;
+ int32_t spinfo_state;
__u32 spinfo_cwnd;
__u32 spinfo_srtt;
__u32 spinfo_rto;
@@ -693,7 +691,7 @@ enum sctp_spinfo_state {
*/
struct sctp_status {
sctp_assoc_t sstat_assoc_id;
- __s32 sstat_state;
+ int32_t sstat_state;
__u32 sstat_rwnd;
__u16 sstat_unackdata;
__u16 sstat_penddata;
@@ -862,6 +860,4 @@ int sctp_recvmsg(int s, void *msg, size_t len, struct sockaddr *from,
/* Return the address length for an address family. */
int sctp_getaddrlen(sa_family_t family);
-__END_DECLS
-
#endif /* __linux_sctp_h__ */
--
2.9.0
next prev parent reply other threads:[~2016-07-22 4:26 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-22 4:26 [LTP] [PATCH V3 01/23] Add knob to control whether numa support should be checked Khem Raj
2016-07-22 4:26 ` [LTP] [PATCH V3 02/23] Add knob to control tirpc support Khem Raj
2016-07-26 14:35 ` Cyril Hrubis
2016-07-26 14:56 ` Khem Raj
2016-07-22 4:26 ` [LTP] [PATCH V3 03/23] Remove including error.h, its unused Khem Raj
2016-07-26 15:05 ` Cyril Hrubis
2016-07-22 4:26 ` Khem Raj [this message]
2016-07-26 15:39 ` [LTP] [PATCH V3 04/23] Remove unused __BEGIN_DECLS and __END_DECLS Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 05/23] guard mallocopt() with __GLIBC__ Khem Raj
2016-07-26 15:44 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 06/23] Use unsigned int instead of uint Khem Raj
2016-07-26 15:51 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 07/23] ptrace: Use int instead of enum __ptrace_request Khem Raj
2016-07-26 16:03 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 08/23] rt_sigaction/rt_sigprocmark: Replace SA_NOMASK with SA_NODEFER Khem Raj
2016-07-27 10:14 ` Cyril Hrubis
2016-07-27 15:14 ` Khem Raj
2016-07-27 15:35 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 09/23] mc_gethost: Use unsigned char instead of u_char Khem Raj
2016-07-27 10:20 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 10/23] sysconf01: Use _SC_2_C_VERSION conditionally Khem Raj
2016-08-01 15:36 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 11/23] lapi: Use sig_t instead of sighandler_t Khem Raj
2016-07-27 10:22 ` Cyril Hrubis
2016-07-27 15:15 ` Khem Raj
2016-07-27 16:03 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 12/23] trace_shed: Adapt to glibc 2.24 removal of union wait type Khem Raj
2016-08-01 15:22 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 13/23] vma03: fix page size offset as per page size alignment Khem Raj
2016-07-27 13:45 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 14/23] shmat1: Cover GNU specific code under __USE_GNU Khem Raj
2016-07-27 14:17 ` Cyril Hrubis
2016-07-27 15:20 ` Khem Raj
2016-07-22 4:26 ` [LTP] [PATCH V3 15/23] Add periodic output for long time test Khem Raj
2016-07-27 14:37 ` Cyril Hrubis
2016-07-27 15:21 ` Tudor Florea
2016-07-27 15:33 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 16/23] Fix test_proc_kill hanging Khem Raj
2016-07-27 14:46 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 17/23] initialize recursive mutex in a portable way Khem Raj
2016-07-27 15:30 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 18/23] replace SIGCLD with SIGCHLD Khem Raj
2016-07-27 16:24 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 19/23] creat06: Include limits.h for PATH_MAX Khem Raj
2016-08-01 12:49 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 20/23] fcntl34: Replace pthread_yield() with sched_yield() Khem Raj
2016-08-01 12:57 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 21/23] rename 'sigset' var to avoid shadowing with libc symbol sigset Khem Raj
2016-08-01 14:19 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 22/23] pec: Replace obsoleted SA_ONESHOT with SA_RESETHAND Khem Raj
2016-08-01 14:30 ` Cyril Hrubis
2016-07-22 4:26 ` [LTP] [PATCH V3 23/23] shmem_test_04: Include sys/types.h for caddr_t Khem Raj
2016-08-01 14:34 ` Cyril Hrubis
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=20160722042656.22346-4-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox