Skip to content

Commit

Permalink
[CR] Place empty statement to fix build with older compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring authored and CyrIng committed Mar 2, 2023
1 parent 2e293e5 commit 453b8b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -5195,6 +5195,7 @@ void Query_TGL_IMC(void __iomem *mchmap, unsigned short mc)
TGL_SA(mchmap);
}
EXIT_TGL_IMC:
EMPTY_STMT();
}

#define ADL_SA TGL_SA
Expand Down Expand Up @@ -5289,6 +5290,7 @@ void Query_ADL_IMC(void __iomem *mchmap, unsigned short mc)
ADL_SA(mchmap);
}
EXIT_ADL_IMC:
EMPTY_STMT();
}

void Query_GLK_IMC(void __iomem *mchmap, unsigned short mc)
Expand Down
4 changes: 3 additions & 1 deletion coretypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define COREFREQ_MAJOR 1
#define COREFREQ_MINOR 95
#define COREFREQ_REV 4
#define COREFREQ_REV 5

#if !defined(CORE_COUNT)
#define CORE_COUNT 256
Expand Down Expand Up @@ -2762,6 +2762,8 @@ typedef struct {

#define UNUSED(expr) do { (void)(expr); } while (0)

#define EMPTY_STMT() do { } while (0)

#ifndef fallthrough
#if defined __has_attribute
#if __has_attribute(fallthrough)
Expand Down

0 comments on commit 453b8b9

Please sign in to comment.