mirror of https://gitee.com/openkylin/linux.git
habanalabs: fix up absolute include instructions
There's no need to try to be cute with the include file locations in the Makefile, so just specify exactly where the files are. Bonus is this fixes the problem of building with O= as well as trying to just build the subdirectory alone. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Oded Gabbay <oded.gabbay@gmail.com> Cc: Omer Shpigelman <oshpigelman@habana.ai> Cc: Tomer Tayar <ttayar@habana.ai> Cc: Moti Haimovski <mhaimovski@habana.ai> Cc: Ofir Bitton <obitton@habana.ai> Cc: Ben Segal <bpsegal20@gmail.com> Cc: Christine Gharzuzi <cgharzuzi@habana.ai> Cc: Pawel Piskorski <ppiskorski@habana.ai> Link: https://lore.kernel.org/r/20200728171851.55842-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
65a9bde6ed
commit
7b16a15524
|
@ -1,6 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
subdir-ccflags-y += -I$(src)/common
|
||||
|
||||
HL_COMMON_FILES := common/habanalabs_drv.o common/device.o common/context.o \
|
||||
common/asid.o common/habanalabs_ioctl.o \
|
||||
common/command_buffer.o common/hw_queue.o common/irq.o \
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "habanalabs.h"
|
||||
#include "include/hw_ip/mmu/mmu_general.h"
|
||||
#include "../include/hw_ip/mmu/mmu_general.h"
|
||||
|
||||
#include <linux/pci.h>
|
||||
#include <linux/debugfs.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "habanalabs.h"
|
||||
#include "include/common/hl_boot_if.h"
|
||||
#include "../include/common/hl_boot_if.h"
|
||||
|
||||
#include <linux/firmware.h>
|
||||
#include <linux/genalloc.h>
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
#ifndef HABANALABSP_H_
|
||||
#define HABANALABSP_H_
|
||||
|
||||
#include "include/common/armcp_if.h"
|
||||
#include "include/common/qman_if.h"
|
||||
#include "../include/common/armcp_if.h"
|
||||
#include "../include/common/qman_if.h"
|
||||
#include <uapi/misc/habanalabs.h>
|
||||
|
||||
#include <linux/cdev.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <uapi/misc/habanalabs.h>
|
||||
#include "habanalabs.h"
|
||||
#include "include/hw_ip/mmu/mmu_general.h"
|
||||
#include "../include/hw_ip/mmu/mmu_general.h"
|
||||
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "habanalabs.h"
|
||||
#include "include/hw_ip/mmu/mmu_general.h"
|
||||
#include "../include/hw_ip/mmu/mmu_general.h"
|
||||
|
||||
#include <linux/genalloc.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "habanalabs.h"
|
||||
#include "include/hw_ip/pci/pci_general.h"
|
||||
#include "../include/hw_ip/pci/pci_general.h"
|
||||
|
||||
#include <linux/pci.h>
|
||||
#include <linux/bitfield.h>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
subdir-ccflags-y += -I$(src)/common
|
||||
|
||||
HL_GAUDI_FILES := gaudi/gaudi.o gaudi/gaudi_hwmgr.o gaudi/gaudi_security.o \
|
||||
gaudi/gaudi_coresight.o
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
*/
|
||||
|
||||
#include "gaudiP.h"
|
||||
#include "include/hw_ip/mmu/mmu_general.h"
|
||||
#include "include/hw_ip/mmu/mmu_v1_1.h"
|
||||
#include "include/gaudi/gaudi_masks.h"
|
||||
#include "include/gaudi/gaudi_fw_if.h"
|
||||
#include "include/gaudi/gaudi_reg_map.h"
|
||||
#include "include/gaudi/gaudi_async_ids_map_extended.h"
|
||||
#include "../include/hw_ip/mmu/mmu_general.h"
|
||||
#include "../include/hw_ip/mmu/mmu_v1_1.h"
|
||||
#include "../include/gaudi/gaudi_masks.h"
|
||||
#include "../include/gaudi/gaudi_fw_if.h"
|
||||
#include "../include/gaudi/gaudi_reg_map.h"
|
||||
#include "../include/gaudi/gaudi_async_ids_map_extended.h"
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
#define GAUDIP_H_
|
||||
|
||||
#include <uapi/misc/habanalabs.h>
|
||||
#include "habanalabs.h"
|
||||
#include "include/common/hl_boot_if.h"
|
||||
#include "include/gaudi/gaudi_packets.h"
|
||||
#include "include/gaudi/gaudi.h"
|
||||
#include "include/gaudi/gaudi_async_events.h"
|
||||
#include "../common/habanalabs.h"
|
||||
#include "../include/common/hl_boot_if.h"
|
||||
#include "../include/gaudi/gaudi_packets.h"
|
||||
#include "../include/gaudi/gaudi.h"
|
||||
#include "../include/gaudi/gaudi_async_events.h"
|
||||
|
||||
#define NUMBER_OF_EXT_HW_QUEUES 12
|
||||
#define NUMBER_OF_CMPLT_QUEUES NUMBER_OF_EXT_HW_QUEUES
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include "gaudiP.h"
|
||||
#include "include/gaudi/gaudi_coresight.h"
|
||||
#include "include/gaudi/asic_reg/gaudi_regs.h"
|
||||
#include "include/gaudi/gaudi_masks.h"
|
||||
#include "../include/gaudi/gaudi_coresight.h"
|
||||
#include "../include/gaudi/asic_reg/gaudi_regs.h"
|
||||
#include "../include/gaudi/gaudi_masks.h"
|
||||
|
||||
#include <uapi/misc/habanalabs.h>
|
||||
#include <linux/coresight.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "gaudiP.h"
|
||||
#include "include/gaudi/gaudi_fw_if.h"
|
||||
#include "../include/gaudi/gaudi_fw_if.h"
|
||||
|
||||
void gaudi_set_pll_profile(struct hl_device *hdev, enum hl_pll_frequency freq)
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "gaudiP.h"
|
||||
#include "include/gaudi/asic_reg/gaudi_regs.h"
|
||||
#include "../include/gaudi/asic_reg/gaudi_regs.h"
|
||||
|
||||
#define GAUDI_NUMBER_OF_RR_REGS 24
|
||||
#define GAUDI_NUMBER_OF_LBW_RANGES 12
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
subdir-ccflags-y += -I$(src)
|
||||
|
||||
HL_GOYA_FILES := goya/goya.o goya/goya_security.o goya/goya_hwmgr.o \
|
||||
goya/goya_coresight.o
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
*/
|
||||
|
||||
#include "goyaP.h"
|
||||
#include "include/hw_ip/mmu/mmu_general.h"
|
||||
#include "include/hw_ip/mmu/mmu_v1_0.h"
|
||||
#include "include/goya/asic_reg/goya_masks.h"
|
||||
#include "include/goya/goya_reg_map.h"
|
||||
#include "../include/hw_ip/mmu/mmu_general.h"
|
||||
#include "../include/hw_ip/mmu/mmu_v1_0.h"
|
||||
#include "../include/goya/asic_reg/goya_masks.h"
|
||||
#include "../include/goya/goya_reg_map.h"
|
||||
|
||||
#include <linux/pci.h>
|
||||
#include <linux/genalloc.h>
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
#define GOYAP_H_
|
||||
|
||||
#include <uapi/misc/habanalabs.h>
|
||||
#include "habanalabs.h"
|
||||
#include "include/common/hl_boot_if.h"
|
||||
#include "include/goya/goya_packets.h"
|
||||
#include "include/goya/goya.h"
|
||||
#include "include/goya/goya_async_events.h"
|
||||
#include "include/goya/goya_fw_if.h"
|
||||
#include "../common/habanalabs.h"
|
||||
#include "../include/common/hl_boot_if.h"
|
||||
#include "../include/goya/goya_packets.h"
|
||||
#include "../include/goya/goya.h"
|
||||
#include "../include/goya/goya_async_events.h"
|
||||
#include "../include/goya/goya_fw_if.h"
|
||||
|
||||
#define NUMBER_OF_CMPLT_QUEUES 5
|
||||
#define NUMBER_OF_EXT_HW_QUEUES 5
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include "goyaP.h"
|
||||
#include "include/goya/goya_coresight.h"
|
||||
#include "include/goya/asic_reg/goya_regs.h"
|
||||
#include "include/goya/asic_reg/goya_masks.h"
|
||||
#include "../include/goya/goya_coresight.h"
|
||||
#include "../include/goya/asic_reg/goya_regs.h"
|
||||
#include "../include/goya/asic_reg/goya_masks.h"
|
||||
|
||||
#include <uapi/misc/habanalabs.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "goyaP.h"
|
||||
#include "include/goya/asic_reg/goya_regs.h"
|
||||
#include "../include/goya/asic_reg/goya_regs.h"
|
||||
|
||||
/*
|
||||
* goya_set_block_as_protected - set the given block as protected
|
||||
|
|
Loading…
Reference in New Issue