On 03/25/2014 02:49 PM, Becky Ligon wrote:
That structure is used just for the kernel module.  Did you configure
OrangeFS with-kernel?  If so, this may be why you are getting this error?

Which version of OrangeFS are you using?

OrangeFS trunk (old habits, I guess), configured like this:

/home/robl/work/pvfs2-orangefs/configure \
    --prefix=/home/robl/work/soft/orangefs-trunk \
    --disable-server --enable-shared


then to be precise, the

I've configured MPICH to build PVFS2.  Warnings look like this:
In file included from /home/robl/work/mpich/src/mpi/romio/mpi-io/close.c:8:
In file included from /home/robl/work/mpich/src/mpi/romio/mpi-io/mpioimpl.h:15: In file included from /home/robl/work/mpich/src/mpi/romio/adio/include/adio.h:442: In file included from /home/robl/work/mpich/src/mpi/romio/adio/include/adioi.h:114: In file included from /home/robl/work/soft/orangefs-trunk/include/pvfs2.h:23: /home/robl/work/soft/orangefs-trunk/include/pvfs2-debug.h:129:25: warning: variable 's_keyword_mask_map' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static __keyword_mask_t s_keyword_mask_map[] =
                        ^
/home/robl/work/soft/orangefs-trunk/include/pvfs2-debug.h:249:25: warning: variable 's_kmod_keyword_mask_map' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static __keyword_mask_t s_kmod_keyword_mask_map[] =
                        ^
2 warnings generated.

pvfs2.h picks up pvfs2-debug.h, and pvfs2-debug.h declares a data structure that, as you point out, no userspace code uses.

==rob


Becky


On Tue, Mar 25, 2014 at 3:45 PM, Rob Latham <r...@mcs.anl.gov
<mailto:r...@mcs.anl.gov>> wrote:

    When I build ROMIO with pvfs2 support, i get lots of warnings about
    warning: variable 's_kmod_keyword_mask_map' is not needed and will
    not be emitted.  The attached patch making that structure 'const'
    appears to make clang happier, and seems apropriate for this
    read-only data structure.

    ==robb

    --
    Rob Latham
    Mathematics and Computer Science Division
    Argonne National Lab, IL USA

    _______________________________________________
    Pvfs2-developers mailing list
    Pvfs2-developers@beowulf-underground.org
    <mailto:Pvfs2-developers@beowulf-underground.org>
    http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers



--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA
_______________________________________________
Pvfs2-developers mailing list
Pvfs2-developers@beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to