public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Build system revamp, part 1
@ 2012-05-25  7:18 Jan Engelhardt
  2012-05-25  7:18 ` [PATCH 1/6] build: rename to configure.ac Jan Engelhardt
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Jan Engelhardt @ 2012-05-25  7:18 UTC (permalink / raw)
  To: xfs; +Cc: jengelh


The following changes since commit a8decaf0cf49d3db099e8dc419390c353e2b19ad:

  3.1.8 release (2012-03-20 13:52:15 -0500)

are available in the git repository at:
  git://inai.de/xfsprogs master

Jan Engelhardt (6):
      build: rename to configure.ac
      build: use new autoconf constructs
      build: remove home-baked long/ptr size detection
      build: use standard type intptr_t
      build: use standard type uintptr_t
      Update .gitignore

 .gitignore                   |   82 +++++++++++++++++++++---------------------
 configure.in => configure.ac |   17 ++++++---
 db/bit.c                     |    8 ++--
 db/check.c                   |    8 ++--
 db/field.c                   |    8 ++--
 db/field.h                   |    6 ++--
 include/platform_defs.h.in   |   52 +++------------------------
 include/xfs_btree.h          |   12 +++---
 libxfs/xfs_alloc_btree.c     |   24 ++++++------
 libxfs/xfs_bmap_btree.c      |   24 ++++++------
 libxfs/xfs_ialloc_btree.c    |   24 ++++++------
 logprint/log_misc.c          |    2 +-
 m4/package_types.m4          |   51 --------------------------
 repair/agheader.c            |   26 +++++++-------
 repair/attr_repair.c         |    6 ++--
 repair/avl.c                 |   36 +++++++++---------
 repair/avl.h                 |   18 +++++-----
 repair/dir.c                 |   54 ++++++++++++++--------------
 repair/dir2.c                |   24 ++++++------
 repair/incore_ext.c          |   27 +++++++-------
 repair/incore_ino.c          |   10 +++---
 repair/phase5.c              |    5 ++-
 repair/phase6.c              |   64 ++++++++++++++++----------------
 23 files changed, 251 insertions(+), 337 deletions(-)
 rename configure.in => configure.ac (90%)

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCH 1/2] types.h: implement intptr_t and uintptr_t
@ 2012-05-31 18:05 Jan Engelhardt
  2012-06-20  7:52 ` Christoph Hellwig
  0 siblings, 1 reply; 28+ messages in thread
From: Jan Engelhardt @ 2012-05-31 18:05 UTC (permalink / raw)
  To: xfs; +Cc: hch, joe, bpm, linux-kernel

intptr_t and uintptr_t designate an (un)signed integer type capable of
holding void* pointers.
(http://pubs.opengroup.org/onlinepubs/000095399/basedefs/stdint.h.html )

Notes: In linux/types.h, there are a handful of guards like "#ifdef
_PTRDIFF_T", but a git grep reveals that this is never ever defined
anywhere, so I omitted a corresponding "#ifdef _INTPTR_T" guard.
Same goes for "#define __kernel_ptrdiff_t" in
arch/sh/include/asm/posix_types_64.h.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
---
 arch/avr32/include/asm/posix_types.h    |    2 ++
 arch/blackfin/include/asm/posix_types.h |    2 ++
 arch/cris/include/asm/posix_types.h     |    2 ++
 arch/mn10300/include/asm/posix_types.h  |    2 ++
 arch/powerpc/include/asm/posix_types.h  |    2 ++
 arch/s390/include/asm/posix_types.h     |    4 ++++
 arch/sh/include/asm/posix_types_64.h    |    2 ++
 arch/sparc/include/asm/posix_types.h    |    2 ++
 arch/xtensa/include/asm/posix_types.h   |    2 ++
 include/asm-generic/posix_types.h       |    4 ++++
 include/linux/types.h                   |    5 +++--
 11 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/arch/avr32/include/asm/posix_types.h b/arch/avr32/include/asm/posix_types.h
index 74667bf..9670c32 100644
--- a/arch/avr32/include/asm/posix_types.h
+++ b/arch/avr32/include/asm/posix_types.h
@@ -26,6 +26,8 @@ typedef unsigned short  __kernel_ipc_pid_t;
 typedef unsigned long	__kernel_size_t;
 typedef long		__kernel_ssize_t;
 typedef int             __kernel_ptrdiff_t;
+typedef int             __kernel_intptr_t;
+typedef unsigned int    __kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short  __kernel_old_uid_t;
diff --git a/arch/blackfin/include/asm/posix_types.h b/arch/blackfin/include/asm/posix_types.h
index 41bc187..b4da8fa 100644
--- a/arch/blackfin/include/asm/posix_types.h
+++ b/arch/blackfin/include/asm/posix_types.h
@@ -19,6 +19,8 @@ typedef unsigned int __kernel_ipc_pid_t;
 typedef unsigned long __kernel_size_t;
 typedef long __kernel_ssize_t;
 typedef int __kernel_ptrdiff_t;
+typedef int __kernel_intptr_t;
+typedef unsigned int __kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short __kernel_old_uid_t;
diff --git a/arch/cris/include/asm/posix_types.h b/arch/cris/include/asm/posix_types.h
index 72b3cd6..241d188 100644
--- a/arch/cris/include/asm/posix_types.h
+++ b/arch/cris/include/asm/posix_types.h
@@ -28,6 +28,8 @@ typedef unsigned short	__kernel_gid_t;
 typedef __SIZE_TYPE__	__kernel_size_t;
 typedef long		__kernel_ssize_t;
 typedef int		__kernel_ptrdiff_t;
+typedef int		__kernel_intptr_t;
+typedef unsigned int	__kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short	__kernel_old_dev_t;
diff --git a/arch/mn10300/include/asm/posix_types.h b/arch/mn10300/include/asm/posix_types.h
index ab50618..5f43928 100644
--- a/arch/mn10300/include/asm/posix_types.h
+++ b/arch/mn10300/include/asm/posix_types.h
@@ -38,6 +38,8 @@ typedef unsigned long	__kernel_size_t;
 typedef signed long	__kernel_ssize_t;
 #endif
 typedef int		__kernel_ptrdiff_t;
+typedef int		__kernel_intptr_t;
+typedef unsigned int	__kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short	__kernel_old_dev_t;
diff --git a/arch/powerpc/include/asm/posix_types.h b/arch/powerpc/include/asm/posix_types.h
index f139325..6f8d25c 100644
--- a/arch/powerpc/include/asm/posix_types.h
+++ b/arch/powerpc/include/asm/posix_types.h
@@ -14,6 +14,8 @@ typedef unsigned long	__kernel_old_dev_t;
 typedef unsigned int	__kernel_size_t;
 typedef int		__kernel_ssize_t;
 typedef long		__kernel_ptrdiff_t;
+typedef long		__kernel_intptr_t;
+typedef unsigned long	__kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short	__kernel_nlink_t;
diff --git a/arch/s390/include/asm/posix_types.h b/arch/s390/include/asm/posix_types.h
index edf8527..8c89e7a 100644
--- a/arch/s390/include/asm/posix_types.h
+++ b/arch/s390/include/asm/posix_types.h
@@ -30,6 +30,8 @@ typedef unsigned short  __kernel_uid_t;
 typedef unsigned short  __kernel_gid_t;
 typedef int             __kernel_ssize_t;
 typedef int             __kernel_ptrdiff_t;
+typedef int             __kernel_intptr_t;
+typedef unsigned int    __kernel_uintptr_t;
 
 #else /* __s390x__ */
 
@@ -41,6 +43,8 @@ typedef unsigned int    __kernel_uid_t;
 typedef unsigned int    __kernel_gid_t;
 typedef long            __kernel_ssize_t;
 typedef long            __kernel_ptrdiff_t;
+typedef long            __kernel_intptr_t;
+typedef unsigned long   __kernel_uintptr_t;
 typedef unsigned long   __kernel_sigset_t;      /* at least 32 bits */
 
 #endif /* __s390x__ */
diff --git a/arch/sh/include/asm/posix_types_64.h b/arch/sh/include/asm/posix_types_64.h
index fcda07b..0224785 100644
--- a/arch/sh/include/asm/posix_types_64.h
+++ b/arch/sh/include/asm/posix_types_64.h
@@ -17,6 +17,8 @@ typedef int		__kernel_ssize_t;
 #define __kernel_ssize_t __kernel_ssize_t
 typedef int		__kernel_ptrdiff_t;
 #define __kernel_ptrdiff_t __kernel_ptrdiff_t
+typedef int		__kernel_intptr_t;
+typedef unsigned int	__kernel_uintptr_t;
 
 typedef unsigned short	__kernel_old_uid_t;
 #define __kernel_old_uid_t __kernel_old_uid_t
diff --git a/arch/sparc/include/asm/posix_types.h b/arch/sparc/include/asm/posix_types.h
index 3070f25..2f2c90d 100644
--- a/arch/sparc/include/asm/posix_types.h
+++ b/arch/sparc/include/asm/posix_types.h
@@ -26,6 +26,8 @@ typedef int		       __kernel_suseconds_t;
 typedef unsigned int           __kernel_size_t;
 typedef int                    __kernel_ssize_t;
 typedef long int               __kernel_ptrdiff_t;
+typedef int                    __kernel_intptr_t;
+typedef unsigned int           __kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short         __kernel_ipc_pid_t;
diff --git a/arch/xtensa/include/asm/posix_types.h b/arch/xtensa/include/asm/posix_types.h
index 6e96be0..d35f53e 100644
--- a/arch/xtensa/include/asm/posix_types.h
+++ b/arch/xtensa/include/asm/posix_types.h
@@ -25,6 +25,8 @@ typedef unsigned short	__kernel_ipc_pid_t;
 typedef unsigned int	__kernel_size_t;
 typedef int		__kernel_ssize_t;
 typedef long		__kernel_ptrdiff_t;
+typedef long		__kernel_intptr_t;
+typedef unsigned long	__kernel_uintptr_t;
 #define __kernel_size_t __kernel_size_t
 
 typedef unsigned short	__kernel_old_uid_t;
diff --git a/include/asm-generic/posix_types.h b/include/asm-generic/posix_types.h
index 91d44bd..c0b9107 100644
--- a/include/asm-generic/posix_types.h
+++ b/include/asm-generic/posix_types.h
@@ -71,10 +71,14 @@ typedef unsigned int	__kernel_old_dev_t;
 typedef unsigned int	__kernel_size_t;
 typedef int		__kernel_ssize_t;
 typedef int		__kernel_ptrdiff_t;
+typedef int		__kernel_intptr_t;
+typedef unsigned int	__kernel_uintptr_t;
 #else
 typedef __kernel_ulong_t __kernel_size_t;
 typedef __kernel_long_t	__kernel_ssize_t;
 typedef __kernel_long_t	__kernel_ptrdiff_t;
+typedef __kernel_long_t __kernel_intptr_t;
+typedef __kernel_ulong_t __kernel_uintptr_t;
 #endif
 #endif
 
diff --git a/include/linux/types.h b/include/linux/types.h
index e5fa503..03c355f 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -42,8 +42,6 @@ typedef __kernel_gid32_t	gid_t;
 typedef __kernel_uid16_t        uid16_t;
 typedef __kernel_gid16_t        gid16_t;
 
-typedef unsigned long		uintptr_t;
-
 #ifdef CONFIG_UID16
 /* This is defined by include/asm-{arch}/posix_types.h */
 typedef __kernel_old_uid_t	old_uid_t;
@@ -73,6 +71,9 @@ typedef __kernel_ssize_t	ssize_t;
 typedef __kernel_ptrdiff_t	ptrdiff_t;
 #endif
 
+typedef __kernel_intptr_t	intptr_t;
+typedef __kernel_uintptr_t	uintptr_t;
+
 #ifndef _TIME_T
 #define _TIME_T
 typedef __kernel_time_t		time_t;
-- 
1.7.7

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2012-10-31 18:26 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-25  7:18 Build system revamp, part 1 Jan Engelhardt
2012-05-25  7:18 ` [PATCH 1/6] build: rename to configure.ac Jan Engelhardt
2012-05-25 10:36   ` Christoph Hellwig
2012-05-25 14:43     ` Jan Engelhardt
2012-05-25 14:46       ` [PATCH] " Jan Engelhardt
2012-05-25  7:18 ` [PATCH 2/6] build: use new autoconf constructs Jan Engelhardt
2012-05-25 10:36   ` Christoph Hellwig
2012-05-25  7:18 ` [PATCH 3/6] build: remove home-baked long/ptr size detection Jan Engelhardt
2012-05-25 10:37   ` Christoph Hellwig
2012-05-25  7:18 ` [PATCH 4/6] build: use standard type intptr_t Jan Engelhardt
2012-05-25 10:37   ` Christoph Hellwig
2012-05-25 15:52     ` xfsprogs/build: " Jan Engelhardt
2012-05-25 15:52       ` [PATCH 1/2] types.h: implement intptr_t and uintptr_t Jan Engelhardt
2012-05-31 17:59         ` Ben Myers
2012-05-31 18:05           ` Jan Engelhardt
2012-05-25 15:52       ` [PATCH 2/2] xfs: use standard (u)intptr_t types Jan Engelhardt
2012-05-25  7:18 ` [PATCH 5/6] build: use standard type uintptr_t Jan Engelhardt
2012-05-25 10:38   ` Christoph Hellwig
2012-05-25  7:18 ` [PATCH 6/6] Update .gitignore Jan Engelhardt
2012-05-25 10:39   ` Christoph Hellwig
2012-05-25 10:39 ` Build system revamp, part 1 Christoph Hellwig
2012-10-26  8:42 ` Christoph Hellwig
2012-10-31 18:28 ` Ben Myers
  -- strict thread matches above, loose matches on Subject: below --
2012-05-31 18:05 [PATCH 1/2] types.h: implement intptr_t and uintptr_t Jan Engelhardt
2012-06-20  7:52 ` Christoph Hellwig
2012-06-20 16:36   ` Ben Myers
2012-06-20 23:02   ` Dave Chinner
2012-06-21  7:13     ` Christoph Hellwig

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