Skip to contentSkip to conversation

adf_vf_isr.c:undefined reference to `adf_enable_pf2vf_interrupts'

PATCH Tadeusz Struk 2 participants 2 messages Dec 23, 2015 – Dec 25, 2015 1 message not in the archive Crypto API

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 9 lines · kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9379b045413ee30c88965e81d376af989ec32cf3
commit: 1a72d3a6d1d9a08705546eba14f0390c565ccd24 [4796/5585] crypto: qat - move isr files to qat common so that they can be reused
config: x86_64-randconfig-s4-12200710 (attached as .config)
reproduce:
        git checkout 1a72d3a6d1d9a08705546eba14f0390c565ccd24
        # save the attached .config to linux build tree
        make ARCH=x86_64 
Quoted 7 lines

All errors (new ones prefixed by >>):

drivers/built-in.o: In function `adf_pf2vf_bh_handler':

Quoted 1 line
Quoted 1 line

adf_vf_isr.c:(.text+0xdfb30b): undefined reference to `adf_enable_pf2vf_interrupts'

drivers/built-in.o: In function `adf_isr':

Quoted 1 line
Quoted 1 line

adf_vf_isr.c:(.text+0xdfb38b): undefined reference to `adf_disable_pf2vf_interrupts'

Thanks for reporting and sorry for delay. I'm on Holidays. This should fix it.

---8<---

Fix random config build issue.

---

drivers/crypto/qat/qat_common/adf_common_drv.h +10 -2
index c03e286..0e82ce3 100644
@@ -106,8 +106,6 @@ int adf_dev_start(struct adf_accel_dev *accel_dev);
 int adf_dev_stop(struct adf_accel_dev *accel_dev);
 void adf_dev_shutdown(struct adf_accel_dev *accel_dev);
 
-void adf_enable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
-void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
 int adf_iov_putmsg(struct adf_accel_dev *accel_dev, u32 msg, u8 vf_nr);
 void adf_pf2vf_notify_restarting(struct adf_accel_dev *accel_dev);
 int adf_enable_vf2pf_comms(struct adf_accel_dev *accel_dev);
@@ -236,6 +234,8 @@ void adf_disable_vf2pf_interrupts(struct adf_accel_dev *accel_dev,
 				  uint32_t vf_mask);
 void adf_enable_vf2pf_interrupts(struct adf_accel_dev *accel_dev,
 				 uint32_t vf_mask);
+void adf_enable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
+void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
 #else
 static inline int adf_sriov_configure(struct pci_dev *pdev, int numvfs)
 {
@@ -245,5 +245,13 @@ static inline int adf_sriov_configure(struct pci_dev *pdev, int numvfs)
 static inline void adf_disable_sriov(struct adf_accel_dev *accel_dev)
 {
 }
+
+static inline void adf_enable_pf2vf_interrupts(struct adf_accel_dev *accel_dev)
+{
+}
+
+static inline void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev)
+{
+}
 #endif
 #endif