drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c:124:: possible unintended fallthrough ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c:124:18: warning: this statement may fall through [-Wimplicit-fallthrough=]

Source code is

    switch (dmaobj->base.access) {
    case NV_MEM_ACCESS_RO:
        dmaobj->flags0 |= 0x00004000;
        break;
    case NV_MEM_ACCESS_WO:
        dmaobj->flags0 |= 0x00008000;
    case NV_MEM_ACCESS_RW:
        dmaobj->flags2 |= 0x00000002;
        break;
    default:
        return -EINVAL;
    }

Suggest either document the fallthrough or add the missing break.

Regards

David Binderman

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux