aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPratik R. Sampat <psampat@linux.ibm.com>2021-07-08 14:49:11 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-07-19 20:34:09 +0530
commit1daaf0ee564e3edb5964fbd2877a293088656820 (patch)
tree808476d964bbf9860286d83576afe5e258f3730b /hw
parent54634c4e6f556b19c1bed024ccf0acf2e6346300 (diff)
downloadskiboot-1daaf0ee564e3edb5964fbd2877a293088656820.zip
skiboot-1daaf0ee564e3edb5964fbd2877a293088656820.tar.gz
skiboot-1daaf0ee564e3edb5964fbd2877a293088656820.tar.bz2
powercap: occ: Set occ_set_powercap as const attribute
The commit fixes the compile time warning suggestion of setting occ_set_powercap as a candiate for the attribute 'const'. Fixes: c6aabe3f2eb5 (powercap: occ: Add a generic powercap framework) Signed-off-by: Pratik R. Sampat <psampat@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/occ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/occ.c b/hw/occ.c
index a1e4982..b09b76d 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -1512,7 +1512,7 @@ static struct opal_occ_cmd_data pcap_data = {
.cmd = OCC_CMD_SET_POWER_CAP,
};
-int occ_set_powercap(u32 handle, int token, u32 pcap)
+int __attribute__((__const__)) occ_set_powercap(u32 handle, int token, u32 pcap)
{
struct occ_dynamic_data *ddata;
struct proc_chip *chip;