gpu: nvgpu: fix channel include guards

The common channel header was missing include guards, so add them. Also
rename the Linux channel header guard that was in conflict.

Jira NVGPU-967

Change-Id: If782407ef1497202196a362893ef9c1b2330977a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1807372
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2018-08-27 14:17:08 +03:00
committed by mobile promotions
parent 16ef96d4de
commit 79b10cbcf7
2 changed files with 8 additions and 3 deletions

View File

@@ -20,6 +20,9 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef NVGPU_CHANNEL_H
#define NVGPU_CHANNEL_H
#include <nvgpu/types.h>
#include "gk20a/gk20a.h"
@@ -50,3 +53,5 @@ static inline void trace_write_pushbuffers(struct channel_gk20a *c, int count)
{
}
#endif
#endif

View File

@@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __NVGPU_CHANNEL_H__
#define __NVGPU_CHANNEL_H__
#ifndef NVGPU_LINUX_CHANNEL_H
#define NVGPU_LINUX_CHANNEL_H
#include <linux/workqueue.h>
#include <linux/dma-buf.h>
@@ -84,4 +84,4 @@ struct channel_gk20a *gk20a_open_new_channel_with_cb(struct gk20a *g,
int runlist_id,
bool is_privileged_channel);
#endif /* __NVGPU_CHANNEL_H__ */
#endif