Opened 2 years ago

Closed 2 years ago

#21438 closed defect (fixed)

Can't build bcma-hdc.c

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Chaos Calmer 15.05
Keywords: build Cc:



contain data structure from linux kernel 4.x where fwnode introduced and should be removed from kernel patches-3.18 chaos_calmer branch

select bcm53xx and try to build openwrd/gargoyle


drivers/usb/host/bcma-hcd.c:566:32: error: 'struct device_node' has no member named 'fwnode'


make[5]: Entering directory '/home/u/g/openwrt/build_dir/target-arm_cortex-a9_uClibc-'
scripts/kconfig/conf --silentoldconfig Kconfig
net/sched/Kconfig:43: warning: menuconfig statement without prompt
.config:957:warning: override: DEBUG_LL_UART_NONE changes choice state
.config:4468:warning: override: TREE_RCU changes choice state
# configuration written to .config
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[6]: 'include/generated/mach-types.h' is up to date.
  CALL    scripts/
  CC [M]  lib/crc-ccitt.o
  CC [M]  drivers/usb/host/bcma-hcd.o
drivers/usb/host/bcma-hcd.c: In function 'bcma_hcd_probe':
drivers/usb/host/bcma-hcd.c:565:3: error: implicit declaration of function 'devm_get_gpiod_from_child' [-Werror=implicit-function-declaration]
   usb_dev->gpio_desc = devm_get_gpiod_from_child(&dev->dev, "vcc",
drivers/usb/host/bcma-hcd.c:566:32: error: 'struct device_node' has no member named 'fwnode'
cc1: some warnings being treated as errors
scripts/ recipe for target 'drivers/usb/host/bcma-hcd.o' failed
make[8]: *** [drivers/usb/host/bcma-hcd.o] Error 1
scripts/ recipe for target 'drivers/usb/host' failed
make[7]: *** [drivers/usb/host] Error 2
scripts/ recipe for target 'drivers/usb' failed
make[6]: *** [drivers/usb] Error 2
Makefile:937: recipe for target 'drivers' failed
make[5]: *** [drivers] Error 2
make[5]: Leaving directory '/home/u/g/openwrt/build_dir/target-arm_cortex-a9_uClibc-'
Makefile:30: recipe for target '/home/u/g/openwrt/build_dir/target-arm_cortex-a9_uClibc-' failed
make[4]: *** [/home/u/g/openwrt/build_dir/target-arm_cortex-a9_uClibc-] Error 2
make[4]: Leaving directory '/home/u/g/openwrt/target/linux/bcm53xx'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/u/g/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/u/g/openwrt'
target/Makefile:16: recipe for target '/home/u/g/openwrt/staging_dir/target-arm_cortex-a9_uClibc-' failed
make[1]: *** [/home/u/g/openwrt/staging_dir/target-arm_cortex-a9_uClibc-] Error 2
make[1]: Leaving directory '/home/u/g/openwrt'
Build failed - please re-run with -j1 to see the real error message
/home/u/g/openwrt/include/ recipe for target 'world' failed
make: *** [world] Error 1

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by anonymous

Successful build after remove commit 'git revert da3997fc2dc9e2c88323b60cff1b30dc087867de' for chaos_calmer branch.

git clone -b chaos_calmer
cd openwrt && \
git stash && \

git revert da3997fc2dc9e2c88323b60cff1b30dc087867de 

 ./scripts/feeds update -a && ./scripts/feeds install -a &&  make defconfig && make menuconfig && make -j 2

P.S. configuration with usb2 support

comment:2 Changed 2 years ago by rmilecki

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r48063, thanks for the report.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.