Skip to contentSkip to conversation

staging: media: atomisp: prefer __aligned over __attribute__((aligned))

PATCH New Igor Putko 1 participant 1 message Jun 18

Subsystems (4)
lore
Share & tools
lore

Igor Putko

author
#0 lore raw

PATCH 2/2 staging: media: atomisp: prefer __aligned over __attribute__((aligned))

Replace the GCC-specific __attribute__((aligned(a))) with the standard __aligned(a) macro to match the kernel coding style.

The checkpatch.pl error about complex macro values is a false positive here, as enclosing the macro expansion in parentheses breaks declaration syntax.

---
 .../media/atomisp/pci/hive_isp_css_include/platform_support.h   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/hive_isp_css_include/platform_support.h +1 -1
index 473d8d4fb9ba..9aa445c45e9f 100644
@@ -20,6 +20,6 @@
 #define UINT32_MAX UINT_MAX
 #define UCHAR_MAX  (255)
 
-#define CSS_ALIGN(d, a) d __attribute__((aligned(a)))
+#define CSS_ALIGN(d, a) d __aligned(a)
 
 #endif /* __PLATFORM_SUPPORT_H_INCLUDED__ */
Signature · 1 line
2.34.1