Skip to content

Commit

Permalink
firewire: ohci: use helper macro for compiler aligned attribute
Browse files Browse the repository at this point in the history
The __aligned() macro has been available since v4.19 kernel by a commit
815f0dd ("include/linux/compiler*.h: make compiler-*.h mutually
exclusive").

This commit replaces with the macro.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Sakamoto <[email protected]>
  • Loading branch information
takaswie committed Aug 14, 2024
1 parent d9f6c64 commit 56a4832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct descriptor {
__le32 branch_address;
__le16 res_count;
__le16 transfer_status;
} __attribute__((aligned(16)));
} __aligned(16);

#define CONTROL_SET(regs) (regs)
#define CONTROL_CLEAR(regs) ((regs) + 4)
Expand Down

0 comments on commit 56a4832

Please sign in to comment.