All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size).
@ 2015-02-17 13:10 Vatika Harlalka
  2015-02-17 13:24 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 5+ messages in thread
From: Vatika Harlalka @ 2015-02-17 13:10 UTC (permalink / raw)
  To: outreachy-kernel

This patch addresses the checkpatch.pl warning

WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))

Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
---
 drivers/staging/emxx_udc/emxx_udc.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h
index ee1b80d..90c5d1d 100644
--- a/drivers/staging/emxx_udc/emxx_udc.h
+++ b/drivers/staging/emxx_udc/emxx_udc.h
@@ -535,8 +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



^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size)
@ 2015-02-19 16:45 aybuke ozdemir
  0 siblings, 0 replies; 5+ messages in thread
From: aybuke ozdemir @ 2015-02-19 16:45 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

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

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/emxx_udc/emxx_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h
index ee1b80d..2ac216f 100644
--- a/drivers/staging/emxx_udc/emxx_udc.h
+++ b/drivers/staging/emxx_udc/emxx_udc.h
@@ -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



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

end of thread, other threads:[~2015-02-19 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-17 13:10 [Patch] Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size) Vatika Harlalka
2015-02-17 13:24 ` [Outreachy kernel] " Julia Lawall
2015-02-17 14:05   ` Vatika Harlalka
2015-02-17 14:11     ` Julia Lawall
2015-02-19 16:45 [PATCH] " aybuke ozdemir

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.