Skip to content

Commit 453b8b9

Browse files
cyringCyrIng
authored andcommitted
[CR] Place empty statement to fix build with older compiler
1 parent 2e293e5 commit 453b8b9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

corefreqk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5195,6 +5195,7 @@ void Query_TGL_IMC(void __iomem *mchmap, unsigned short mc)
51955195
TGL_SA(mchmap);
51965196
}
51975197
EXIT_TGL_IMC:
5198+
EMPTY_STMT();
51985199
}
51995200

52005201
#define ADL_SA TGL_SA
@@ -5289,6 +5290,7 @@ void Query_ADL_IMC(void __iomem *mchmap, unsigned short mc)
52895290
ADL_SA(mchmap);
52905291
}
52915292
EXIT_ADL_IMC:
5293+
EMPTY_STMT();
52925294
}
52935295

52945296
void Query_GLK_IMC(void __iomem *mchmap, unsigned short mc)

coretypes.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#define COREFREQ_MAJOR 1
88
#define COREFREQ_MINOR 95
9-
#define COREFREQ_REV 4
9+
#define COREFREQ_REV 5
1010

1111
#if !defined(CORE_COUNT)
1212
#define CORE_COUNT 256
@@ -2762,6 +2762,8 @@ typedef struct {
27622762

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

2765+
#define EMPTY_STMT() do { } while (0)
2766+
27652767
#ifndef fallthrough
27662768
#if defined __has_attribute
27672769
#if __has_attribute(fallthrough)

0 commit comments

Comments
 (0)