All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux merge -  remove typedefs
@ 2006-01-25  1:26 Mike D. Day
       [not found] ` <0fc1f500909ba845b48c8acf98b012e3@cl.cam.ac.uk>
  0 siblings, 1 reply; 3+ messages in thread
From: Mike D. Day @ 2006-01-25  1:26 UTC (permalink / raw)


While working on putting version info into sysfs I removed the typedefs in xen/

# HG changeset patch
# User mdday@dual.silverwood.home
# Node ID 8fdb718d6c9975bc8ff4a4d4ed1af43f599b3d1c
# Parent  a38c292e8390370ec9473a6444bd63be7e437afe


Linux merge: remove typedefs from /include/asm-xen/xen-public/version.h

signed-off-by: Mike D. Day <ncmike@us.ibm.com>

diff -r a38c292e8390 -r 8fdb718d6c99 xen/include/public/version.h
--- a/xen/include/public/version.h	Tue Jan 24 16:54:34 2006
+++ b/xen/include/public/version.h	Wed Jan 25 00:49:21 2006
	@@ -15,29 +15,29 @@
 /* arg == NULL; returns major:minor (16:16). */
 #define XENVER_version      0
 
-/* arg == xen_extraversion_t. */
+/* arg == char extraversion[16]; */
 #define XENVER_extraversion 1
-typedef char xen_extraversion_t[16];
 
-/* arg == xen_compile_info_t. */
+/* arg == struct xen_compile_info */
 #define XENVER_compile_info 2
-typedef struct xen_compile_info {
+struct xen_compile_info {
     char compiler[64];
     char compile_by[16];
     char compile_domain[32];
     char compile_date[32];
-} xen_compile_info_t;
+} ;
 
+/* arg == char capabilities_info [1024]; */
 #define XENVER_capabilities 3
-typedef char xen_capabilities_info_t[1024];
 
+/* arg == char changeset_info[64]; */
 #define XENVER_changeset 4
-typedef char xen_changeset_info_t[64];
 
+/* arg == struct xen_platform_parameters */
 #define XENVER_platform_parameters 5
-typedef struct xen_platform_parameters {
+struct xen_platform_parameters {
     unsigned long virt_start;
-} xen_platform_parameters_t;
+} ;
 
 #endif /* __XEN_PUBLIC_VERSION_H__ */
 
	

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: [PATCH] linux merge -  remove typedefs
@ 2006-01-25 10:54 Ian Pratt
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Pratt @ 2006-01-25 10:54 UTC (permalink / raw)
  To: ncmike; +Cc: xen-devel

> While working on putting version info into sysfs I removed 
> the typedefs in xen/

This impacts all the other OSes that use the xen public headers:
Although we usually put a copy of the headers in with the OS source, its
convenient to be able to overide these and link to the headers in a xen
source repo.

I'm not a huge fan of using typedefs for arrays, but I think these are
fairly harmless. 

If lkml folk go nuts then we could make this change specific to the
version of the headers checked into linux (and maybe have some #ifdef
LINUX directives in the headers in the xen tree).

Ian
 
> # HG changeset patch
> # User mdday@dual.silverwood.home
> # Node ID 8fdb718d6c9975bc8ff4a4d4ed1af43f599b3d1c
> # Parent  a38c292e8390370ec9473a6444bd63be7e437afe
> 
> 
> Linux merge: remove typedefs from 
> /include/asm-xen/xen-public/version.h
> 
> signed-off-by: Mike D. Day <ncmike@us.ibm.com>
> 
> diff -r a38c292e8390 -r 8fdb718d6c99 xen/include/public/version.h
> --- a/xen/include/public/version.h	Tue Jan 24 16:54:34 2006
> +++ b/xen/include/public/version.h	Wed Jan 25 00:49:21 2006
> 	@@ -15,29 +15,29 @@
>  /* arg == NULL; returns major:minor (16:16). */
>  #define XENVER_version      0
>  
> -/* arg == xen_extraversion_t. */
> +/* arg == char extraversion[16]; */
>  #define XENVER_extraversion 1
> -typedef char xen_extraversion_t[16];
>  
> -/* arg == xen_compile_info_t. */
> +/* arg == struct xen_compile_info */
>  #define XENVER_compile_info 2
> -typedef struct xen_compile_info {
> +struct xen_compile_info {
>      char compiler[64];
>      char compile_by[16];
>      char compile_domain[32];
>      char compile_date[32];
> -} xen_compile_info_t;
> +} ;
>  
> +/* arg == char capabilities_info [1024]; */
>  #define XENVER_capabilities 3
> -typedef char xen_capabilities_info_t[1024];
>  
> +/* arg == char changeset_info[64]; */
>  #define XENVER_changeset 4
> -typedef char xen_changeset_info_t[64];
>  
> +/* arg == struct xen_platform_parameters */
>  #define XENVER_platform_parameters 5
> -typedef struct xen_platform_parameters {
> +struct xen_platform_parameters {
>      unsigned long virt_start;
> -} xen_platform_parameters_t;
> +} ;
>  
>  #endif /* __XEN_PUBLIC_VERSION_H__ */
>  
> 	
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 

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

end of thread, other threads:[~2006-01-25 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25  1:26 [PATCH] linux merge - remove typedefs Mike D. Day
     [not found] ` <0fc1f500909ba845b48c8acf98b012e3@cl.cam.ac.uk>
2006-01-25 11:48   ` Mike D. Day
  -- strict thread matches above, loose matches on Subject: below --
2006-01-25 10:54 Ian Pratt

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.