Skip to contentSkip to conversation

tools: usb: ffs-test: Fix build failure

PATCH In review [email protected] 3 participants 5 messages Feb 20, 2013 – Feb 21, 2013 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: usb: ffs-test: Fix build failure

From: "Maxin B. John" <[email protected]>

Fixes this build failure:
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c In file included from ffs-test.c:41:0:
../../include/linux/usb/functionfs.h:4:39: fatal error:
uapi/linux/usb/functionfs.h: No such file or directory compilation terminated.
make: *** [ffs-test] Error 1

---
 tools/usb/ffs-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/usb/ffs-test.c +1 -1
index 8674b9e..fe1e66b 100644
@@ -38,7 +38,7 @@
 #include <unistd.h>
 #include <tools/le_byteshift.h>
 
-#include "../../include/linux/usb/functionfs.h"
+#include "../../include/uapi/linux/usb/functionfs.h"
 
 
 /******************** Little Endian Handling ********************************/
Signature · 1 line
1.7.7
maintainer
#1 lore raw
Quoted 10 lines · On Thu, Feb 21, 2013 at 01:57:51AM +0200, [email protected] wrote:

From: "Maxin B. John" <[email protected]>

Fixes this build failure:
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c In file included from ffs-test.c:41:0:
../../include/linux/usb/functionfs.h:4:39: fatal error:
uapi/linux/usb/functionfs.h: No such file or directory compilation terminated.
make: *** [ffs-test] Error 1

This is a build failure where, 3.8, or linux-next, or somewhere else?

thanks,

greg k-h

#2 lore raw

Hi,

Quoted 12 lines · Greg KH
Quoted 10 lines · On Thu, Feb 21, 2013 at 01:57:51AM +0200, [email protected] wrote:

From: "Maxin B. John" <[email protected]>

Fixes this build failure:
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c In file included from ffs-test.c:41:0:
../../include/linux/usb/functionfs.h:4:39: fatal error:
uapi/linux/usb/functionfs.h: No such file or directory compilation terminated.
make: *** [ffs-test] Error 1

Quoted 1 line

This is a build failure where, 3.8, or linux-next, or somewhere else?

It is in 3.8

Quoted 3 lines

thanks,

greg k-h

Best Regards,
Maxin

#3 lore raw
Quoted 15 lines · Maxin B. John

Hi,

Quoted 12 lines · Greg KH
Quoted 10 lines · On Thu, Feb 21, 2013 at 01:57:51AM +0200, [email protected] wrote:

From: "Maxin B. John" <[email protected]>

Fixes this build failure:
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c In file included from ffs-test.c:41:0:
../../include/linux/usb/functionfs.h:4:39: fatal error:
uapi/linux/usb/functionfs.h: No such file or directory compilation terminated.
make: *** [ffs-test] Error 1

Quoted 3 lines
Quoted 1 line

This is a build failure where, 3.8, or linux-next, or somewhere else?

It is in 3.8

This also happens in 3.7. [commit 5e1ddb481776a487b15b40579a000b279ce527c9: UAPI: (Scripted) Disintegrate include/linux/usb] is the culprit.

Signature · 4 lines
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: [email protected]>--------------ooO--(_)--Ooo--
Acked-by on v1 1/1
#4 lore raw
In reply to [email protected]
Quoted 11 lines · On Thu, Feb 21 2013, [email protected] wrote:

From: "Maxin B. John" <[email protected]>

Fixes this build failure:
gcc -Wall -Wextra -g -lpthread -I../include -o testusb testusb.c gcc -Wall -Wextra -g -lpthread -I../include -o ffs-test ffs-test.c In file included from ffs-test.c:41:0:
../../include/linux/usb/functionfs.h:4:39: fatal error:
uapi/linux/usb/functionfs.h: No such file or directory compilation terminated.
make: *** [ffs-test] Error 1

Quoted 1 line
Quoted 20 lines
---
 tools/usb/ffs-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/usb/ffs-test.c +1 -1
index 8674b9e..fe1e66b 100644
@@ -38,7 +38,7 @@
 #include <unistd.h>
 #include <tools/le_byteshift.h>
 
-#include "../../include/linux/usb/functionfs.h"
+#include "../../include/uapi/linux/usb/functionfs.h"
 
 
 /******************** Little Endian Handling ********************************/
Signature · 1 line
1.7.7
Signature · 4 lines
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: [email protected]>--------------ooO--(_)--Ooo--