Skip to contentSkip to conversation

drm/amd: open brace '{' following struct go on the same line

PATCH In review [email protected] 2 participants 2 messages Jul 14, 2023 – Jul 18, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 drm/amd: open brace '{' following struct go on the same line

Fix the checkpatch error as open brace '{' following struct should go on the same line.

---
 drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/include/yellow_carp_offset.h +2 -4
index 0fea6a746611..a2c8dca2425e 100644
@@ -7,13 +7,11 @@
 #define MAX_SEGMENT                                         6
 
-struct IP_BASE_INSTANCE
-{
+struct IP_BASE_INSTANCE {
     unsigned int segment[MAX_SEGMENT];
 } __maybe_unused;
 
-struct IP_BASE
-{
+struct IP_BASE {
     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
 } __maybe_unused;
#2 lore raw

I'm happy to apply these patches, but please check your mailer. The formatting is messed up and they don't apply cleanly. Please use git-format-patch and git-send-email to generate and send the patches.

Thanks!

Alex

Quoted 28 lines · On Fri, Jul 14, 2023 at 2:04 AM <[email protected]> wrote:

Fix the checkpatch error as open brace '{' following struct should go on the same line.

---
  drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++----
  1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/include/yellow_carp_offset.h +2 -4
index 0fea6a746611..a2c8dca2425e 100644
@@ -7,13 +7,11 @@
  #define MAX_SEGMENT                                         6
 
-struct IP_BASE_INSTANCE
-{
+struct IP_BASE_INSTANCE {
      unsigned int segment[MAX_SEGMENT];
  } __maybe_unused;
 
-struct IP_BASE
-{
+struct IP_BASE {
      struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
  } __maybe_unused;