Commit 2bad742388d23c15f2cb355bb992046e30065a11
Committed by
Benjamin Herrenschmidt
1 parent
4966bfa1b3
Exists in
master
and in
13 other branches
powerpc/powernv: Use uint64_t instead of size_t in OPAL APIs
Using size_t in our APIs is asking for trouble, especially when some OPAL calls use size_t pointers. Signed-off-by: Anton Blanchard <anton@samba.org> Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing 2 changed files with 7 additions and 7 deletions Side-by-side Diff
arch/powerpc/include/asm/opal.h
... | ... | @@ -858,8 +858,8 @@ |
858 | 858 | int64_t opal_lpc_read(uint32_t chip_id, enum OpalLPCAddressType addr_type, |
859 | 859 | uint32_t addr, __be32 *data, uint32_t sz); |
860 | 860 | |
861 | -int64_t opal_read_elog(uint64_t buffer, size_t size, uint64_t log_id); | |
862 | -int64_t opal_get_elog_size(uint64_t *log_id, size_t *size, uint64_t *elog_type); | |
861 | +int64_t opal_read_elog(uint64_t buffer, uint64_t size, uint64_t log_id); | |
862 | +int64_t opal_get_elog_size(uint64_t *log_id, uint64_t *size, uint64_t *elog_type); | |
863 | 863 | int64_t opal_write_elog(uint64_t buffer, uint64_t size, uint64_t offset); |
864 | 864 | int64_t opal_send_ack_elog(uint64_t log_id); |
865 | 865 | void opal_resend_pending_logs(void); |
866 | 866 | |
867 | 867 | |
... | ... | @@ -874,13 +874,13 @@ |
874 | 874 | int64_t opal_dump_ack(uint32_t dump_id); |
875 | 875 | int64_t opal_dump_resend_notification(void); |
876 | 876 | |
877 | -int64_t opal_get_msg(uint64_t buffer, size_t size); | |
878 | -int64_t opal_check_completion(uint64_t buffer, size_t size, uint64_t token); | |
877 | +int64_t opal_get_msg(uint64_t buffer, uint64_t size); | |
878 | +int64_t opal_check_completion(uint64_t buffer, uint64_t size, uint64_t token); | |
879 | 879 | int64_t opal_sync_host_reboot(void); |
880 | 880 | int64_t opal_get_param(uint64_t token, uint32_t param_id, uint64_t buffer, |
881 | - size_t length); | |
881 | + uint64_t length); | |
882 | 882 | int64_t opal_set_param(uint64_t token, uint32_t param_id, uint64_t buffer, |
883 | - size_t length); | |
883 | + uint64_t length); | |
884 | 884 | int64_t opal_sensor_read(uint32_t sensor_hndl, int token, __be32 *sensor_data); |
885 | 885 | |
886 | 886 | /* Internal functions */ |
arch/powerpc/platforms/powernv/opal-elog.c