* [bvanassche:block-for-next 4/10] drivers/scsi/scsi_error_test.c:63: undefined reference to `scsi_call_prepare_resubmit'
@ 2023-08-12 7:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-12 7:49 UTC (permalink / raw)
To: Bart Van Assche; +Cc: oe-kbuild-all
tree: https://github.com/bvanassche/linux block-for-next
head: 5653a8e09e21af68dbe7f5add0e7fb042cbee645
commit: a034ed36f6462d88aeb8738931398a34a0ecf5f8 [4/10] scsi: core: Call .eh_prepare_resubmit() before resubmitting
config: arm-randconfig-r024-20230812 (https://download.01.org/0day-ci/archive/20230812/202308121507.91Q4OWCW-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308121507.91Q4OWCW-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308121507.91Q4OWCW-lkp@intel.com/
All errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: drivers/scsi/scsi_error_test.o: in function `test_prepare_resubmit':
>> drivers/scsi/scsi_error_test.c:63: undefined reference to `scsi_call_prepare_resubmit'
vim +63 drivers/scsi/scsi_error_test.c
31
32 static void test_prepare_resubmit(struct kunit *test)
33 {
34 static struct scsi_cmnd cmd1, cmd2, cmd3, cmd4, cmd5, cmd6;
35 static struct scsi_device dev1, dev2, dev3;
36 struct scsi_driver *uld;
37 LIST_HEAD(cmd_list);
38
39 uld = kzalloc(3 * sizeof(uld), GFP_KERNEL);
40 uld1 = &uld[0];
41 uld1->eh_prepare_resubmit = uld1_prepare_resubmit;
42 uld2 = &uld[1];
43 uld2->eh_prepare_resubmit = uld2_prepare_resubmit;
44 uld3 = &uld[2];
45 dev1.sdev_gendev.driver = &uld1->gendrv;
46 dev2.sdev_gendev.driver = &uld2->gendrv;
47 dev3.sdev_gendev.driver = &uld3->gendrv;
48 cmd1.device = &dev1;
49 cmd2.device = &dev1;
50 cmd3.device = &dev2;
51 cmd4.device = &dev2;
52 cmd5.device = &dev3;
53 cmd6.device = &dev3;
54 list_add_tail(&cmd1.eh_entry, &cmd_list);
55 list_add_tail(&cmd3.eh_entry, &cmd_list);
56 list_add_tail(&cmd5.eh_entry, &cmd_list);
57 list_add_tail(&cmd2.eh_entry, &cmd_list);
58 list_add_tail(&cmd4.eh_entry, &cmd_list);
59 list_add_tail(&cmd6.eh_entry, &cmd_list);
60
61 KUNIT_EXPECT_EQ(test, list_count_nodes(&cmd_list), 6);
62 kunit_test = test;
> 63 scsi_call_prepare_resubmit(&cmd_list);
64 kunit_test = NULL;
65 KUNIT_EXPECT_EQ(test, list_count_nodes(&cmd_list), 6);
66 KUNIT_EXPECT_TRUE(test, uld1 < uld2);
67 KUNIT_EXPECT_TRUE(test, uld2 < uld3);
68 KUNIT_EXPECT_PTR_EQ(test, cmd_list.next, &cmd1.eh_entry);
69 KUNIT_EXPECT_PTR_EQ(test, cmd_list.next->next, &cmd2.eh_entry);
70 KUNIT_EXPECT_PTR_EQ(test, cmd_list.next->next->next, &cmd3.eh_entry);
71 KUNIT_EXPECT_PTR_EQ(test, cmd_list.next->next->next->next,
72 &cmd4.eh_entry);
73 KUNIT_EXPECT_PTR_EQ(test, cmd_list.next->next->next->next->next,
74 &cmd5.eh_entry);
75 KUNIT_EXPECT_PTR_EQ(test, cmd_list.next->next->next->next->next->next,
76 &cmd6.eh_entry);
77 kfree(uld);
78 }
79
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-12 7:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-12 7:49 [bvanassche:block-for-next 4/10] drivers/scsi/scsi_error_test.c:63: undefined reference to `scsi_call_prepare_resubmit' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).