alpine 3.7
obsolete weakness #37


Weakness Breakdown


An obsolete weakness occurs when someone uses deprecated or obsolete functions when building a system. As a programming language evolves, some functions occasionally become obsolete.

Warning code(s):

This C routine is considered obsolete.

File Name:



The highlighted line of code below is the trigger point of this particular Alpine 3.7 obsolete weakness.

         ViaLVDSHardwarePowerFirstSequence(pScrn, Power_On);
        ViaLVDSHardwarePowerSecondSequence(pScrn, Power_On);

    ViaLVDSPowerChannel(pScrn, Power_On);

    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                "Integrated LVDS Flat Panel Power: %s\n",
                Power_On ? "On" : "Off");

    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                        "Exiting ViaLVDSPower.\n"));

static void
ViaLCDPowerSequence(vgaHWPtr hwp, VIALCDPowerSeqRec Sequence)
    int i;

    for (i = 0; i < Sequence.numEntry; i++) {
        ViaVgahwMask(hwp, 0x300 + Sequence.port[i], Sequence.offset[i],
                     0x301 + Sequence.port[i],[i],

static void
ViaLCDPower(xf86OutputPtr output, Bool Power_On)
    ViaPanelInfoPtr Panel = output->driver_private;
    ScrnInfoPtr pScrn = output->scrn;
    vgaHWPtr hwp = VGAHWPTR(pScrn);
    VIAPtr pVia = VIAPTR(pScrn);
    VIABIOSInfoPtr pBIOSInfo = pVia->pBIOSInfo;
    int i;

    DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                        "Entered ViaLCDPower.\n"));

    /* Enable LCD */
    if (Power_On)
        ViaCrtcMask(hwp, 0x6A, 0x08, 0x08);
        ViaCrtcMask(hwp, 0x6A, 0x00, 0x08);

    if (pBIOSInfo->LCDPower)
        pBIOSInfo->LCDPower(pScrn, Power_On);

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.