Ticket #12822: 0010-Increase-fScratchpadCount-size.patch

File 0010-Increase-fScratchpadCount-size.patch, 860 bytes (added by mt, 8 years ago)
  • src/add-ons/kernel/busses/usb/xhci.h

    From f743dbbe091717ddef9b82465a0c2c23e21a9e16 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sun, 19 Jun 2016 11:04:50 +0900
    Subject: [PATCH 10/10] Increase fScratchpadCount size
    
    To fix clang's '-Wtautological-constant-out-of-range-compare' warnings in xhci.cpp.
    ---
     src/add-ons/kernel/busses/usb/xhci.h | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/busses/usb/xhci.h b/src/add-ons/kernel/busses/usb/xhci.h
    index fc2d028..3657c0c 100644
    a b private:  
    242242            uint8               fPortSlots[XHCI_MAX_PORTS];
    243243
    244244            // Scratchpad
    245             uint8               fScratchpadCount;
     245            uint32              fScratchpadCount;
    246246            area_id             fScratchpadArea[XHCI_MAX_SCRATCHPADS];
    247247            void *              fScratchpad[XHCI_MAX_SCRATCHPADS];
    248248