Skip to contentSkip to conversation

Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size)

PATCH In review aybuke ozdemir 3 participants 3 messages Feb 19, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size)

This fixes the following checkpatch.pl warnings in emxx_udc.h file:
WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))

---
 drivers/staging/emxx_udc/emxx_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/emxx_udc/emxx_udc.h +1 -1
index ee1b80d..2ac216f 100644
@@ -535,7 +535,7 @@ typedef struct _T_FC_REGS {
 
 	u8 Reserved1200[0x1000-0x200];	/* Reserved */
 
-} __attribute__ ((aligned(32))) T_FC_REGS, *PT_FC_REGS;
+} __aligned(32) T_FC_REGS, *PT_FC_REGS;
 
 
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · aybuke ozdemir

This fixes the following checkpatch.pl warnings in emxx_udc.h file:
WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))

This was done already by Vatika Harlalka. You can see what has been done in the mailing list archives.

julia

Quoted 28 lines
---
 drivers/staging/emxx_udc/emxx_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/emxx_udc/emxx_udc.h +1 -2
index ee1b80d..2ac216f 100644
@@ -535,7 +535,7 @@ typedef struct _T_FC_REGS {
 
 	u8 Reserved1200[0x1000-0x200];	/* Reserved */
 
-} __attribute__ ((aligned(32))) T_FC_REGS, *PT_FC_REGS;
+} __aligned(32) T_FC_REGS, *PT_FC_REGS;
 
 
 
--

1.9.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424364343-3944-1-git-send-email-aybuke.147%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw

I too submitted a patch for it in the older mailing list last month. Navya

Quoted 47 lines · Julia Lawall
Quoted 2 lines · aybuke ozdemir

This fixes the following checkpatch.pl warnings in emxx_udc.h file:
WARNING: __aligned(size) is preferred over

__attribute__((aligned(size)))

This was done already by Vatika Harlalka. You can see what has been done in the mailing list archives.

julia

Review

Quoted 6 lines
Signed-off-by aybuke ozdemir <[email protected] <javascript:>>

---

 drivers/staging/emxx_udc/emxx_udc.h | 2 +- 
 1 file changed, 1 insertion(+), 1 deletion(-) 
(quoted diff) +0 -0

b/drivers/staging/emxx_udc/emxx_udc.h

Quoted 17 lines

index ee1b80d..2ac216f 100644

drivers/staging/emxx_udc/emxx_udc.h +1 -1
@@ -535,7 +535,7 @@ typedef struct _T_FC_REGS { 
 
         u8 Reserved1200[0x1000-0x200];        /* Reserved */ 
 
-} __attribute__ ((aligned(32))) T_FC_REGS, *PT_FC_REGS; 
+} __aligned(32) T_FC_REGS, *PT_FC_REGS; 
 
 
 
Signature · 4 lines
1.9.1 

-- 
You received this message because you are subscribed to the Google 

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected] <javascript:>.

Quoted 1 line

To post to this group, send email to [email protected]

<javascript:>.

Quoted 1 line

To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/1424364343-3944-1-git-send-email-aybuke.147%40gmail.com.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.