Commit 522ef61
dmaengine: cppi41: mark PM functions as __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get a build error in
the cppi41 dmaengine driver, since the runtime-pm functions
are hidden within the wrong #ifdef:
drivers/dma/cppi41.c:1158:21: error: 'cppi41_runtime_suspend' undeclared here (not in a function)
This removes the #ifdef and instead uses __maybe_unused
annotations that cannot have this problem.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: fdea2d0 ("dmaengine: cppi41: Add basic PM runtime support")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>1 parent fdea2d0 commit 522ef61
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | | - | |
| 1093 | + | |
1095 | 1094 | | |
1096 | 1095 | | |
1097 | 1096 | | |
| |||
1102 | 1101 | | |
1103 | 1102 | | |
1104 | 1103 | | |
1105 | | - | |
| 1104 | + | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | 1107 | | |
| |||
1127 | 1126 | | |
1128 | 1127 | | |
1129 | 1128 | | |
1130 | | - | |
| 1129 | + | |
1131 | 1130 | | |
1132 | 1131 | | |
1133 | 1132 | | |
| |||
1136 | 1135 | | |
1137 | 1136 | | |
1138 | 1137 | | |
1139 | | - | |
| 1138 | + | |
1140 | 1139 | | |
1141 | 1140 | | |
1142 | 1141 | | |
| |||
1151 | 1150 | | |
1152 | 1151 | | |
1153 | 1152 | | |
1154 | | - | |
1155 | 1153 | | |
1156 | 1154 | | |
1157 | 1155 | | |
| |||
0 commit comments