Skip to content

Commit

Permalink
[POWERPC] Use __attribute__ in asm-powerpc
Browse files Browse the repository at this point in the history
Pretty much everyone uses "__attribute__" or "attribute", no one uses
"__attribute".  This tweaks the three places in asm-powerpc where this
comes up.  While only asm-powerpc/types.h is interesting (for
userspace), I did asm-powerpc/processor.h as well for consistency.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Mike Frysinger authored and Paul Mackerras committed Sep 22, 2007
1 parent 9b41fcb commit fc624ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/asm-powerpc/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ struct thread_struct {
unsigned long dabr; /* Data address breakpoint register */
#ifdef CONFIG_ALTIVEC
/* Complete AltiVec register set */
vector128 vr[32] __attribute((aligned(16)));
vector128 vr[32] __attribute__((aligned(16)));
/* AltiVec status */
vector128 vscr __attribute((aligned(16)));
vector128 vscr __attribute__((aligned(16)));
unsigned long vrsave;
int used_vr; /* set if process has used altivec */
#endif /* CONFIG_ALTIVEC */
Expand Down
2 changes: 1 addition & 1 deletion include/asm-powerpc/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ typedef unsigned long long __u64;

typedef struct {
__u32 u[4];
} __attribute((aligned(16))) __vector128;
} __attribute__((aligned(16))) __vector128;

#endif /* __ASSEMBLY__ */

Expand Down

0 comments on commit fc624ea

Please sign in to comment.