Skip to contentSkip to conversation

add unsigned to unused bit field in a.out.h

PATCH Applied Robert Reif 2 participants 4 messages Mar 21, 2007 – Mar 28, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add unsigned to unused bit field in a.out.h

Add unsigned to unused bit field in a.out.h to make sparse happy.

include/asm-sparc/a.out.h +0 -0
index e4e83eb..9090060 100644
@@ -80,7 +80,7 @@ struct relocation_info /* used when header.a_machtype

= M_SPARC */

         unsigned long   r_address;  /* relocation addr */
         unsigned int    r_index:24; /* segment index or symbol index */
         unsigned int    r_extern:1; /* if F, r_index=SEG#; if T, SYM
idx */
-        int             r_pad:2;    /* <unused> */
+        unsigned int    r_pad:2;    /* <unused> */
         enum reloc_type r_type:5;   /* type of relocation to perform */
         long            r_addend;   /* addend for relocation value */

};

#1 lore raw

From: Robert Reif <[email protected]>
Date: 21 Mar 2007 07:26:56 -0400

Quoted 1 line

Add unsigned to unused bit field in a.out.h to make sparse happy.

Same problems here as the cg3 patch.

Please resubmit these patches with a proper Signed-off-by:
line and fix your mail client not to corrupt the patch. Test this by emailing the patch to yourself and trying to apply it.

Thanks.

#2 lore raw
In reply to Robert Reif

Add unsigned to unused bit field in a.out.h to make sparse happy.

include/asm-sparc/a.out.h +1 -1
index e4e83eb..9090060 100644
@@ -80,7 +80,7 @@ struct relocation_info /* used when header.a_machtype == M_SPARC */
         unsigned long   r_address;  /* relocation addr */
         unsigned int    r_index:24; /* segment index or symbol index */
         unsigned int    r_extern:1; /* if F, r_index==SEG#; if T, SYM idx */
-        int             r_pad:2;    /* <unused> */
+        unsigned int    r_pad:2;    /* <unused> */
         enum reloc_type r_type:5;   /* type of relocation to perform */
         long            r_addend;   /* addend for relocation value */
 };