<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - src/backlight.c only defines __backlight_exists one branch of #ifdef HAVE_DEV_WSCONS_WSCONSIO_H"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99833">99833</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>src/backlight.c only defines __backlight_exists one branch of #ifdef HAVE_DEV_WSCONS_WSCONSIO_H
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>NetBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>davshao@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=129660" name="attach_129660" title="Patch to restore previous use of backlight_exists">attachment 129660</a> <a href="attachment.cgi?id=129660&action=edit" title="Patch to restore previous use of backlight_exists">[details]</a></span>
Patch to restore previous use of backlight_exists

commit  b24e7581bd1e5a0215cb73ec87093ebf03c20278
"backlight: Factor known names into preferred interfaces"
from 2015-06-17
defines in project xf86-video-intel, file src/backlight.c,

static int __backlight_exists(const char *iface)

only in one half, the #else branch, of
#ifdef HAVE_DEV_WSCONS_WSCONSIO_H
Then function __backlight_exists() is used after the #endif in

char *backlight_find_for_device(struct pci_device *pci)

This problem was detected using pkgsrc-wip xf86-video-intel
on current NetBSD amd64, which uses a git snapshot of xf86-video-intel.

Attached is a patch that replaces the use of __backlight_exists
with the previously used function backlight_exists().</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>