<?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>11961</bug_id>
          
          <creation_ts>2017-08-21 13:10:15 +0000</creation_ts>
          <short_desc>[linux-yocto] Build error with aufs</short_desc>
          <delta_ts>2017-09-19 16:22:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>2.3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</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.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="skumarbdc11">s.kumar.bdc11</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>akuster</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76028</commentid>
    <comment_count>0</comment_count>
    <who name="skumarbdc11">s.kumar.bdc11</who>
    <bug_when>2017-08-21 13:10:15 +0000</bug_when>
    <thetext>I am using poky pyro (2.3) and wanted to enable aufs in linux-yocto, for genericx86, by adding

    KERNEL_FEATURES_append = &quot; features/aufs/aufs-enable.scc&quot;

but unable to build the kernel and modules successfully.

The error started with undefined symbol &quot;generic_readlink&quot; (no EXPORT_SYMBOL found) in i_op.c and incompatible pointer type in few places.

As per the aufs github for the branch aufs4.10 there is no reference to generic_readlink. With this observation I am assuming that linux-yocto4.10 does not point to correct branch of aufs which is resulting in this build error.

Switching to linux-yocto4.9 also giving build errors so could not able to enabled aufs.

I tried the same on master branch and could not able to compile the kernel and modules successfully.

Need your help in finding perfect patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76029</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-08-21 13:17:26 +0000</bug_when>
    <thetext>aufs is no longer carried forward by me, but is supported by the users of it in linux-yocto.

I carry forward the core support, and patches are sent to deal with the changing kernel vfs layer.

i.e. my last touch on it was:

commit 79a6af59f8a4f06d2791f607dbfd558aaa2b1a66
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Tue Nov 22 11:20:29 2016 -0500

    aufs: refresh for 4.9-rc6
    
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;

And the following fix:

    aufs: fix compile warning
    
    1/1 [
    Author: &quot;Kexin(Casey) Chen&quot;
    Email: Casey.Chen@windriver.com
    Subject: aufs: fix compile warning
    Date: Tue, 29 Nov 2016 14:14:07 -0800
    
    fs/aufs/debug.h:95:19: warning: comparison of constant &apos;0&apos;
    with boolean expression is always false [-Wbool-compare]
       if (unlikely((e) &lt; 0)) \
                        ^
    
    fs/aufs/vdir.c:852:2: note: in expansion of macro &apos;AuTraceErr&apos;
       AuTraceErr(!valid);
       ^~~~~~~~~~
    
    In expansion of AuTraceErr(!valid), comparison of (!valid)
    and constant &apos;0&apos; always passes unlikely(x) false. function
    &apos;static int seek_vdir(struct file *file, struct dir_context *ctx)&apos;
    is to find whether there is a valid vd_deblk following ctx-&gt;pos.
    return 1 means valid, 0 for not. Change to AuTraceErr(valid - 1)
    makes more sense.
    
    Signed-off-by: Kexin(Casey) Chen &lt;Casey.Chen@windriver.com&gt;
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
    ]

-------------

I can take patches to fix the issues, but it will be several weeks since I&apos;m currently working on 4.12 and -stable updates for all the kernels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76157</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-08-25 14:28:13 +0000</bug_when>
    <thetext>4.10 is fixed for this now. changes will be out in a few days. onto 4.12 now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76971</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-09-19 16:22:15 +0000</bug_when>
    <thetext>this is merged with the latest kernel SRCREVs, and is also fixed in 4.12.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>