mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: add more compile flags to posix iGPU
Added bellow CFLAGS:
-Werror -Wall -Wextra \
-Wmissing-braces -Wpointer-arith -Wundef \
-Wconversion -Wsign-conversion \
-Wformat-security \
-Wmissing-declarations -Wredundant-decls -Wimplicit-fallthrough
Also fixed all of compile errors for posix.
It's preparing for porting gpu server.
Jira GVSCI-11640
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Change-Id: I30b09a62a57396abd642922e22f2e550a96f42c2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2555059
Reviewed-by: Shashank Singh <shashsingh@nvidia.com>
Reviewed-by: Aparna Das <aparnad@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
9e5c88c1ef
commit
09cf3642ef
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
int nvgpu_current_pid(struct gk20a *g)
|
||||
{
|
||||
(void)g;
|
||||
/*
|
||||
* In the kernel this gets us the PID of the calling process for IOCTLs.
|
||||
* But since we are in userspace this doesn't quite mean the same thing.
|
||||
@@ -39,6 +40,7 @@ int nvgpu_current_pid(struct gk20a *g)
|
||||
|
||||
int nvgpu_current_tid(struct gk20a *g)
|
||||
{
|
||||
(void)g;
|
||||
/*
|
||||
* In POSIX thread ID is not the same as a process ID. In Linux threads
|
||||
* and processes are represented by the same thing, but userspace can't
|
||||
@@ -54,6 +56,9 @@ int nvgpu_current_tid(struct gk20a *g)
|
||||
void nvgpu_print_current_impl(struct gk20a *g, const char *func_name, int line,
|
||||
void *ctx, enum nvgpu_log_type type)
|
||||
{
|
||||
(void)func_name;
|
||||
(void)line;
|
||||
(void)ctx;
|
||||
const char *log_message = "(unknown process)";
|
||||
|
||||
#if defined(__NVGPU_POSIX__)
|
||||
|
||||
Reference in New Issue
Block a user