<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9587</bug_id>
          
          <creation_ts>2016-05-04 19:24:49 +0000</creation_ts>
          <short_desc>4.1.x: gpio-pca953x.c fails to compile without CONFIG_ACPI</short_desc>
          <delta_ts>2016-10-04 23:33:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>linux-yocto</component>
          <version>2.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="George McCollister">george.mccollister</reporter>
          <assigned_to name="California Sullivan">california.l.sullivan</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61953</commentid>
    <comment_count>0</comment_count>
    <who name="George McCollister">george.mccollister</who>
    <bug_when>2016-05-04 19:24:49 +0000</bug_when>
    <thetext>Due to the following commit the driver doesn&apos;t compile without CONFIG_ACPI:
http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.1/commit/drivers/gpio/gpio-pca953x.c?h=standard/base&amp;id=94bfb66b8887ec17a46163ad02af60ff02ab2d73

| /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/gpio/gpio-pca953x.c: In function &apos;pca953x_setup_int3491&apos;:
| /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/gpio/gpio-pca953x.c:118:17: error: implicit declaration of function &apos;acpi_device_uid&apos; [-Werror=implicit-function-declaration]
|   if (kstrtouint(acpi_device_uid(adev), 0, &amp;uid) || !uid--)
|                  ^
| /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/gpio/gpio-pca953x.c:118:17: warning: passing argument 1 of &apos;kstrtouint&apos; makes pointer from integer without a cast [-Wint-conversion]
| In file included from /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/include/linux/list.h:8:0,
|                  from /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/include/linux/module.h:9,
|                  from /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/gpio/gpio-pca953x.c:14:
| /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/include/linux/kernel.h:331:18: note: expected &apos;const char *&apos; but argument is of type &apos;int&apos;
|  int __must_check kstrtouint(const char *s, unsigned int base, unsigned int *res);
|                   ^
| cc1: some warnings being treated as errors
| /home/georgem/buildbot/slave/ntel_krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/scripts/Makefile.build:258: recipe for target &apos;drivers/gpio/gpio-pca953x.o&apos; failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64541</commentid>
    <comment_count>1</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-07-27 17:17:19 +0000</bug_when>
    <thetext>Some inappropriate Galileo-specific patches were merged into the standard/base kernel causing this bug. They will be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66916</commentid>
    <comment_count>2</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-10-04 23:33:21 +0000</bug_when>
    <thetext>These patches have been removed from standard/base in both the 4.4 and 4.1 kernels.

See here: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8c5ac488f1e243617d9a09b7686329e0e89f8242</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>