Changeset 39101 in vbox for trunk/src/VBox/Devices/Network/slirp/bsd/kern
- Timestamp:
- Oct 25, 2011 2:44:01 AM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp/bsd/kern
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c
r36608 r39101 131 131 SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_MIDDLE, tunable_mbinit, NULL); 132 132 133 #ifndef VBOX 133 134 /* XXX: These should be tuneables. Can't change UMA limits on the fly. */ 134 135 static int … … 222 223 * Zones from which we allocate. 223 224 */ 224 #ifndef VBOX225 225 uma_zone_t zone_mbuf; 226 226 uma_zone_t zone_clust; … … 470 470 int flags; 471 471 short type; 472 #ifdef VBOX 473 NOREF(pData); 474 #endif 472 475 473 476 #ifdef INVARIANTS 474 477 trash_ctor(mem, size, arg, how); 478 #elif defined(VBOX) 479 NOREF(size); 480 NOREF(how); 475 481 #endif 476 482 m = (struct mbuf *)mem; … … 524 530 struct mbuf *m; 525 531 unsigned long flags; 532 #ifdef VBOX 533 NOREF(pData); 534 #endif 526 535 527 536 m = (struct mbuf *)mem; … … 534 543 #ifdef INVARIANTS 535 544 trash_dtor(mem, size, arg); 545 #elif defined(VBOX) 546 NOREF(size); 547 NOREF(arg); 536 548 #endif 537 549 } … … 563 575 #ifdef INVARIANTS 564 576 trash_dtor(m->m_ext.ext_buf, MCLBYTES, arg); 577 #elif defined(VBOX) 578 NOREF(size); 579 NOREF(arg); 565 580 #endif 566 581 /* … … 593 608 int type; 594 609 uma_zone_t zone; 610 #ifdef VBOX 611 NOREF(how); 612 #endif 595 613 596 614 #ifdef INVARIANTS 597 615 trash_ctor(mem, size, arg, how); 616 #elif defined(VBOX) 617 NOREF(how); 598 618 #endif 599 619 switch (size) { … … 657 677 658 678 trash_dtor(mem, size, arg); 679 #elif defined(VBOX) 680 NOREF(pData); 681 NOREF(mem); 682 NOREF(size); 683 NOREF(arg); 659 684 #endif 660 685 } … … 680 705 #ifdef INVARIANTS 681 706 trash_init(m->m_ext.ext_buf, MCLBYTES, how); 707 #elif defined(VBOX) 708 NOREF(size); 682 709 #endif 683 710 return (0); … … 704 731 #ifdef INVARIANTS 705 732 trash_dtor(mem, size, NULL); 733 #elif defined(VBOX) 734 NOREF(size); 706 735 #endif 707 736 } … … 724 753 int flags; 725 754 short type; 755 #ifdef VBOX 756 NOREF(pData); 757 NOREF(size); 758 #endif 726 759 727 760 m = (struct mbuf *)mem; … … 732 765 #ifdef INVARIANTS 733 766 trash_ctor(m->m_ext.ext_buf, MCLBYTES, arg, how); 767 #elif defined(VBOX) 768 NOREF(how); 734 769 #endif 735 770 m->m_next = NULL; … … 782 817 if (pr->pr_drain != NULL) 783 818 (*pr->pr_drain)(); 784 #endif 785 } 819 #else 820 NOREF(junk); 821 #endif 822 } -
trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf2.c
r28188 r39101 406 406 t = malloc(len + sizeof(struct m_tag), M_PACKET_TAGS, fWait); 407 407 #else 408 NOREF(fWait); 408 409 t = RTMemAllocZ(len + sizeof(struct m_tag)); 409 410 #endif
Note:
See TracChangeset
for help on using the changeset viewer.