gpu: nvgpu: clk: pass u32 for event number

Change the type of the event_number parameter of
nvgpu_clk_notification_queue_alloc() from size_t to u32 since it's
used everywhere as a u32.

JIRA NVGPU-1008

Change-Id: I4305a3816a55a9f5c91439e141d0811bd1b422e8
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2001229
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Abdul Salam <absalam@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-01-22 15:44:57 -05:00
committed by mobile promotions
parent b502e5405a
commit 65c20fe411
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
int nvgpu_clk_notification_queue_alloc(struct gk20a *g,
struct nvgpu_clk_notification_queue *queue,
size_t events_number) {
u32 events_number) {
queue->notifications = nvgpu_kcalloc(g, events_number,
sizeof(struct nvgpu_clk_notification));
if (!queue->notifications)

View File

@@ -40,7 +40,7 @@ struct gk20a;
#include <nvgpu/pmu/lpwr.h>
#define MAX_F_POINTS 256
#define DEFAULT_EVENT_NUMBER 32
#define DEFAULT_EVENT_NUMBER 32U
struct nvgpu_clk_dev;
struct nvgpu_clk_arb_target;
@@ -360,7 +360,7 @@ u32 nvgpu_clk_arb_notify(struct nvgpu_clk_dev *dev,
int nvgpu_clk_notification_queue_alloc(struct gk20a *g,
struct nvgpu_clk_notification_queue *queue,
size_t events_number);
u32 events_number);
void nvgpu_clk_notification_queue_free(struct gk20a *g,
struct nvgpu_clk_notification_queue *queue);