linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the usb-gadget tree
@ 2013-12-16  4:40 Stephen Rothwell
  2013-12-16 19:41 ` Felipe Balbi
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Rothwell @ 2013-12-16  4:40 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-next, linux-kernel, WingMan Kwok, Roger Quadros

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

Hi Felipe,

After merging the usb-gadget tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/usb/phy/phy-keystone.c: In function 'keystone_usbphy_probe':
drivers/usb/phy/phy-keystone.c:96:4: warning: passing argument 3 of 'usb_phy_gen_create_phy' makes pointer from integer without a cast [enabled by default]
    USB_PHY_TYPE_USB2, 0, false);
    ^
In file included from drivers/usb/phy/phy-keystone.c:25:0:
drivers/usb/phy/phy-generic.h:18:5: note: expected 'struct usb_phy_gen_xceiv_platform_data *' but argument is of type 'int'
 int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop,
     ^
drivers/usb/phy/phy-keystone.c:96:4: error: too many arguments to function 'usb_phy_gen_create_phy'
    USB_PHY_TYPE_USB2, 0, false);
    ^
In file included from drivers/usb/phy/phy-keystone.c:25:0:
drivers/usb/phy/phy-generic.h:18:5: note: declared here
 int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop,
     ^

Caused by commit 25acdd08fd71 ("usb: phy: add Keystone usb phy driver")
interacting with commit bd27fa44e138 ("usb: phy: add Keystone usb phy
driver") which was merged before v3.13-rc1 and is included in the
usb-gadget tree.

I have used the usb-gadget tree from next-20131206 again for today.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread
* linux-next: build failure after merge of the usb-gadget tree
@ 2020-03-16  3:37 Stephen Rothwell
  2020-03-16 17:42 ` John Stultz
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Rothwell @ 2020-03-16  3:37 UTC (permalink / raw)
  To: Felipe Balbi, Greg KH
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Heikki Krogerus, Yu Chen, John Stultz

[-- Attachment #1: Type: text/plain, Size: 2951 bytes --]

Hi all,

After merging the usb-gadget tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

drivers/usb/dwc3/drd.c: In function 'dwc3_setup_role_switch':
drivers/usb/dwc3/drd.c:551:23: error: assignment to 'usb_role_switch_set_t' {aka 'int (*)(struct usb_role_switch *, enum usb_role)'} from incompatible pointer type 'int (*)(struct device *, enum usb_role)' [-Werror=incompatible-pointer-types]
  551 |  dwc3_role_switch.set = dwc3_usb_role_switch_set;
      |                       ^
drivers/usb/dwc3/drd.c:552:23: error: assignment to 'usb_role_switch_get_t' {aka 'enum usb_role (*)(struct usb_role_switch *)'} from incompatible pointer type 'enum usb_role (*)(struct device *)' [-Werror=incompatible-pointer-types]
  552 |  dwc3_role_switch.get = dwc3_usb_role_switch_get;
      |                       ^

Caused by commit

  8a0a13799744 ("usb: dwc3: Registering a role switch in the DRD code.")

interacting with commit

  bce3052f0c16 ("usb: roles: Provide the switch drivers handle to the switch in the API")

from the usb tree.

I have added the following merge fix patch (which may need more work):

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 16 Mar 2020 14:34:31 +1100
Subject: [PATCH] usb: dwc3: fix up for role switch API change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/usb/dwc3/drd.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c
index db68d48c2267..7db1ffc92bbd 100644
--- a/drivers/usb/dwc3/drd.c
+++ b/drivers/usb/dwc3/drd.c
@@ -478,9 +478,10 @@ static struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc)
 
 #if IS_ENABLED(CONFIG_USB_ROLE_SWITCH)
 #define ROLE_SWITCH 1
-static int dwc3_usb_role_switch_set(struct device *dev, enum usb_role role)
+static int dwc3_usb_role_switch_set(struct usb_role_switch *sw,
+				    enum usb_role role)
 {
-	struct dwc3 *dwc = dev_get_drvdata(dev);
+	struct dwc3 *dwc = usb_role_switch_get_drvdata(sw);
 	u32 mode;
 
 	switch (role) {
@@ -502,9 +503,9 @@ static int dwc3_usb_role_switch_set(struct device *dev, enum usb_role role)
 	return 0;
 }
 
-static enum usb_role dwc3_usb_role_switch_get(struct device *dev)
+static enum usb_role dwc3_usb_role_switch_get(struct usb_role_switch *sw)
 {
-	struct dwc3 *dwc = dev_get_drvdata(dev);
+	struct dwc3 *dwc = usb_role_switch_get_drvdata(sw);
 	unsigned long flags;
 	enum usb_role role;
 
@@ -550,6 +551,7 @@ static int dwc3_setup_role_switch(struct dwc3 *dwc)
 	dwc3_role_switch.fwnode = dev_fwnode(dwc->dev);
 	dwc3_role_switch.set = dwc3_usb_role_switch_set;
 	dwc3_role_switch.get = dwc3_usb_role_switch_get;
+	dwc3_role_switch.driver_data = dwc;
 	dwc->role_sw = usb_role_switch_register(dwc->dev, &dwc3_role_switch);
 	if (IS_ERR(dwc->role_sw))
 		return PTR_ERR(dwc->role_sw);
-- 
2.25.0

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply related	[flat|nested] 22+ messages in thread
* linux-next: build failure after merge of the usb-gadget tree
@ 2015-05-29  8:32 Stephen Rothwell
  2015-05-29 15:19 ` Felipe Balbi
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Rothwell @ 2015-05-29  8:32 UTC (permalink / raw)
  To: Felipe Balbi, Pali Rohár; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3279 bytes --]

Hi Felipe,

After merging the usb-gadget tree, today's linux-next build (x86_64
allmodconfig) failed like this:

In file included from include/linux/module.h:17:0,
                 from drivers/usb/gadget/legacy/nokia.c:19:
drivers/usb/gadget/legacy/nokia.c: In function '__check_num_buffers':
drivers/usb/gadget/function/f_mass_storage.h:51:34: error: 'fsg_num_buffers' undeclared (first use in this function)
  module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
                                  ^
include/linux/moduleparam.h:387:68: note: in definition of macro '__param_check'
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                    ^
include/linux/moduleparam.h:145:2: note: in expansion of macro 'param_check_uint'
  param_check_##type(name, &(value));       \
  ^
drivers/usb/gadget/function/f_mass_storage.h:51:2: note: in expansion of macro 'module_param_named'
  module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
  ^
drivers/usb/gadget/legacy/nokia.c:45:1: note: in expansion of macro 'FSG_MODULE_PARAMETERS'
 FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data);
 ^
drivers/usb/gadget/function/f_mass_storage.h:51:34: note: each undeclared identifier is reported only once for each function it appears in
  module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
                                  ^
include/linux/moduleparam.h:387:68: note: in definition of macro '__param_check'
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                    ^
include/linux/moduleparam.h:145:2: note: in expansion of macro 'param_check_uint'
  param_check_##type(name, &(value));       \
  ^
drivers/usb/gadget/function/f_mass_storage.h:51:2: note: in expansion of macro 'module_param_named'
  module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
  ^
drivers/usb/gadget/legacy/nokia.c:45:1: note: in expansion of macro 'FSG_MODULE_PARAMETERS'
 FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data);
 ^
drivers/usb/gadget/legacy/nokia.c: At top level:
drivers/usb/gadget/function/f_mass_storage.h:51:34: error: 'fsg_num_buffers' undeclared here (not in a function)
  module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
                                  ^
include/linux/moduleparam.h:224:22: note: in definition of macro '__module_param_call'
      level, flags, { arg } }
                      ^
include/linux/moduleparam.h:146:2: note: in expansion of macro 'module_param_cb'
  module_param_cb(name, &param_ops_##type, &value, perm);     \
  ^
drivers/usb/gadget/function/f_mass_storage.h:51:2: note: in expansion of macro 'module_param_named'
  module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
  ^
drivers/usb/gadget/legacy/nokia.c:45:1: note: in expansion of macro 'FSG_MODULE_PARAMETERS'
 FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data);
 ^

Caused by commit e4f8ef7b0770 ("usb: gadget: nokia: Add mass storage
driver to g_nokia").

I have used the usb-gadget tree from next-20150528 for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread
* linux-next: build failure after merge of the usb-gadget tree
@ 2013-12-09  3:58 Stephen Rothwell
  2013-12-09  4:11 ` Felipe Balbi
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Rothwell @ 2013-12-09  3:58 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-next, linux-kernel, Anton Tikhomirov

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

Hi Felipe,

After merging the usb-gadget tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/built-in.o: In function `otg_set_state':
(.text+0x14f7de): undefined reference to `usb_bus_start_enum'

CONFIG_USB is 'm' in this build.

I am not sure what changed to cause this, maybe e1d2e31975e1 ("usb: phy:
Add OTG FSM configuration option")?

I have used the usb-gadget tree from next-20131206 for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread
* linux-next: build failure after merge of the usb-gadget tree
@ 2013-07-30  4:34 Stephen Rothwell
  2013-07-30  5:49 ` Felipe Balbi
  0 siblings, 1 reply; 22+ messages in thread
From: Stephen Rothwell @ 2013-07-30  4:34 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-next, linux-kernel, Roger Quadros

[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]

Hi Felipe,

After merging the usb-gadget tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

drivers/usb/phy/of.c:32:24: error: redefinition of 'of_usb_get_phy_mode'
 enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np)
                        ^
In file included from drivers/usb/phy/of.c:13:0:
include/linux/usb/of.h:33:38: note: previous definition of 'of_usb_get_phy_mode' was here
 static inline enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np)
                                      ^

Caused by commit 052a11d13bde ("usb: phy: make PHY driver selection
possible by controller drivers").  The static inline declaration in
include/linux/usb/of.h is exposed if at least one of CONFIG_OF or
CONFIG_USB_PHY is not set, but drivers/usb/phy/of.c is now built if
CONFIG_OF and CONFIG_USB_SUPPORT is set (it used to require
CONFIG_USB_PHY to be set - see drivers/usb/Makefile).  This build has
CONFIG_OF set but CONFIG_USB_PHY not set.

I have used the usb-gadget tree from next-20130729 for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-03-16 19:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-16  4:40 linux-next: build failure after merge of the usb-gadget tree Stephen Rothwell
2013-12-16 19:41 ` Felipe Balbi
2013-12-16 23:10   ` Stephen Rothwell
2013-12-16 23:38     ` Felipe Balbi
2013-12-17  4:27       ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2020-03-16  3:37 Stephen Rothwell
2020-03-16 17:42 ` John Stultz
2020-03-16 18:11   ` John Stultz
2020-03-16 19:46     ` Greg KH
2015-05-29  8:32 Stephen Rothwell
2015-05-29 15:19 ` Felipe Balbi
2013-12-09  3:58 Stephen Rothwell
2013-12-09  4:11 ` Felipe Balbi
2013-12-09 19:40   ` Felipe Balbi
2013-12-09 20:43     ` Stephen Rothwell
2013-12-09 21:01       ` Felipe Balbi
2013-12-09 21:42         ` Felipe Balbi
2013-12-17  4:36   ` Stephen Rothwell
2013-12-17  5:08     ` Felipe Balbi
2013-12-17  5:13       ` Felipe Balbi
2013-07-30  4:34 Stephen Rothwell
2013-07-30  5:49 ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).