Hi Christoph, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git misc head: 9167f0dcc523735d5df7c6e27b58c05740433657 commit: 1794ef2b150dd502bc31cb50ad36c901337b4d0e [108/132] scsi: aha1542: convert to DMA mapping API config: i386-randconfig-c0-11300951 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 1794ef2b150dd502bc31cb50ad36c901337b4d0e # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type without #include <linux/types.h> drivers/scsi/aha1542.o: In function `aha1542_interrupt': >> drivers/scsi/aha1542.c:328: undefined reference to `__udivdi3' make[1]: *** [vmlinux] Error 1 make[1]: Target '_all' not remade because of errors. vim +328 drivers/scsi/aha1542.c 257 258 static irqreturn_t aha1542_interrupt(int irq, void *dev_id) 259 { 260 struct Scsi_Host *sh = dev_id; 261 struct aha1542_hostdata *aha1542 = shost_priv(sh); 262 void (*my_done)(struct scsi_cmnd *) = NULL; 263 int errstatus, mbi, mbo, mbistatus; 264 int number_serviced; 265 unsigned long flags; 266 struct scsi_cmnd *tmp_cmd; 267 int flag; 268 struct mailbox *mb = aha1542->mb; 269 struct ccb *ccb = aha1542->ccb; 270 271 #ifdef DEBUG 272 { 273 flag = inb(INTRFLAGS(sh->io_port)); 274 shost_printk(KERN_DEBUG, sh, "aha1542_intr_handle: "); 275 if (!(flag & ANYINTR)) 276 printk("no interrupt?"); 277 if (flag & MBIF) 278 printk("MBIF "); 279 if (flag & MBOA) 280 printk("MBOF "); 281 if (flag & HACC) 282 printk("HACC "); 283 if (flag & SCRD) 284 printk("SCRD "); 285 printk("status %02x\n", inb(STATUS(sh->io_port))); 286 }; 287 #endif 288 number_serviced = 0; 289 290 spin_lock_irqsave(sh->host_lock, flags); 291 while (1) { 292 flag = inb(INTRFLAGS(sh->io_port)); 293 294 /* Check for unusual interrupts. If any of these happen, we should 295 probably do something special, but for now just printing a message 296 is sufficient. A SCSI reset detected is something that we really 297 need to deal with in some way. */ 298 if (flag & ~MBIF) { 299 if (flag & MBOA) 300 printk("MBOF "); 301 if (flag & HACC) 302 printk("HACC "); 303 if (flag & SCRD) 304 printk("SCRD "); 305 } 306 aha1542_intr_reset(sh->io_port); 307 308 mbi = aha1542->aha1542_last_mbi_used + 1; 309 if (mbi >= 2 * AHA1542_MAILBOXES) 310 mbi = AHA1542_MAILBOXES; 311 312 do { 313 if (mb[mbi].status != 0) 314 break; 315 mbi++; 316 if (mbi >= 2 * AHA1542_MAILBOXES) 317 mbi = AHA1542_MAILBOXES; 318 } while (mbi != aha1542->aha1542_last_mbi_used); 319 320 if (mb[mbi].status == 0) { 321 spin_unlock_irqrestore(sh->host_lock, flags); 322 /* Hmm, no mail. Must have read it the last time around */ 323 if (!number_serviced) 324 shost_printk(KERN_WARNING, sh, "interrupt received, but no mail.\n"); 325 return IRQ_HANDLED; 326 }; 327 > 328 mbo = (scsi2int(mb[mbi].ccbptr) - aha1542->ccb_handle) / sizeof(struct ccb); 329 mbistatus = mb[mbi].status; 330 mb[mbi].status = 0; 331 aha1542->aha1542_last_mbi_used = mbi; 332 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip