[PATCH 2/2] staging: media: atomisp: prefer __aligned over __attribute__((aligned))
From: Igor Putko
Date: Thu Jun 18 2026 - 08:10:05 EST
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.
Signed-off-by: Igor Putko <igorpetindev@xxxxxxxxx>
---
.../media/atomisp/pci/hive_isp_css_include/platform_support.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_include/platform_support.h b/drivers/staging/media/atomisp/pci/hive_isp_css_include/platform_support.h
index 473d8d4fb9ba..9aa445c45e9f 100644
--- a/drivers/staging/media/atomisp/pci/hive_isp_css_include/platform_support.h
+++ b/drivers/staging/media/atomisp/pci/hive_isp_css_include/platform_support.h
@@ -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__ */
--
2.34.1