[LU-5326] conflicting types for ‘umode_t’ on powerpc64 Created: 10/Jul/14 Updated: 14/Jun/18 Resolved: 14/Jul/14 |
|
| Status: | Closed |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.6.0 |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | powerpc64 | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 14865 | ||||||||
| Description |
|
On powerpc64, lustre/lustre_user.h cannot be used unless config.h from the lustre tree has been included. # uname -r
2.6.32-431.20.3.el6.ppc64
# cat test.c
#include <lustre/lustre_user.h>
void test(void)
{
}
# gcc -Wall test.c -I$PWD/lustre/include -I$PWD/libcfs/include -c
In file included from /tmp/lustre-release/lustre/include/lustre/lustre_user.h:52,
from test.c:3:
/tmp/lustre-release/libcfs/include/libcfs/posix/posix-types.h:50: error: conflicting types for ‘umode_t’
/usr/include/asm/types.h:31: note: previous declaration of ‘umode_t’ was here
This is because on ppc64 umode_t is defined to be unsigned int in asm/types.h. There is no longer any reason for posix-types.h to define umode_t so let's remove it. |
| Comments |
| Comment by John Hammond [ 10/Jul/14 ] |
|
Please see http://review.whamcloud.com/#/c/11055/. |
| Comment by Jodi Levi (Inactive) [ 14/Jul/14 ] |
|
Patch landed to b2_6. |
| Comment by Gerrit Updater [ 16/Jan/15 ] |
|
Christopher J. Morrone (chris.morrone.llnl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13446 |