On Tue, Oct 15, 2024 at 04:55:38PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the staging tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > ld: warning: discarding dynamic section .glink > ld: warning: discarding dynamic section .plt > ld: linkage table error against `nec7210_board_online' > ld: stubs don't match calculated size > ld: can not build stubs: bad value > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_t1_delay': > fmh_gpib.c:(.text+0x5e8): undefined reference to `nec7210_t1_delay' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_serial_poll_status': > fmh_gpib.c:(.text+0x70c): undefined reference to `nec7210_serial_poll_status' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_secondary_address': > fmh_gpib.c:(.text+0x7e4): undefined reference to `nec7210_secondary_address' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_primary_address': > fmh_gpib.c:(.text+0x898): undefined reference to `nec7210_primary_address' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_update_status': > fmh_gpib.c:(.text+0x958): undefined reference to `nec7210_update_status' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll_response': > fmh_gpib.c:(.text+0xa18): undefined reference to `nec7210_parallel_poll_response' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll': > fmh_gpib.c:(.text+0xad8): undefined reference to `nec7210_parallel_poll' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll_configure': > fmh_gpib.c:(.text+0xb98): undefined reference to `nec7210_parallel_poll_configure' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_disable_eos': > fmh_gpib.c:(.text+0xc4c): undefined reference to `nec7210_disable_eos' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_enable_eos': > fmh_gpib.c:(.text+0xce4): undefined reference to `nec7210_enable_eos' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_remote_enable': > fmh_gpib.c:(.text+0xd98): undefined reference to `nec7210_remote_enable' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_interface_clear': > fmh_gpib.c:(.text+0xe58): undefined reference to `nec7210_interface_clear' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_request_system_control': > fmh_gpib.c:(.text+0xf18): undefined reference to `nec7210_request_system_control' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_go_to_standby': > fmh_gpib.c:(.text+0xfcc): undefined reference to `nec7210_go_to_standby' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_take_control': > fmh_gpib.c:(.text+0x1098): undefined reference to `nec7210_take_control' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_command': > fmh_gpib.c:(.text+0x1170): undefined reference to `nec7210_command' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_write': > fmh_gpib.c:(.text+0x123c): undefined reference to `nec7210_write' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_read': > fmh_gpib.c:(.text+0x133c): undefined reference to `nec7210_read' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_device_match': > fmh_gpib.c:(.text+0x15d0): undefined reference to `gpib_match_device_path' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_init.isra.0': > fmh_gpib.c:(.text+0x3164): undefined reference to `nec7210_board_reset' > ld: fmh_gpib.c:(.text+0x31a4): undefined reference to `nec7210_set_handshake_mode' > ld: fmh_gpib.c:(.text+0x335c): undefined reference to `nec7210_board_online' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_pci_attach_impl': > fmh_gpib.c:(.text+0x35a0): undefined reference to `gpib_pci_get_device' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_pci_detach': > fmh_gpib.c:(.text+0x5018): undefined reference to `nec7210_board_reset' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_detach': > fmh_gpib.c:(.text+0x5508): undefined reference to `nec7210_board_reset' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_read_countable': > fmh_gpib.c:(.text+0x6168): undefined reference to `nec7210_set_reg_bits' > ld: fmh_gpib.c:(.text+0x6180): undefined reference to `nec7210_set_reg_bits' > ld: fmh_gpib.c:(.text+0x6634): undefined reference to `nec7210_set_reg_bits' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_write_countable': > fmh_gpib.c:(.text+0x6f1c): undefined reference to `nec7210_set_reg_bits' > ld: fmh_gpib.c:(.text+0x6f34): undefined reference to `nec7210_set_reg_bits' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o:fmh_gpib.c:(.text+0x6f98): more undefined references to `nec7210_set_reg_bits' follow > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_internal_interrupt': > fmh_gpib.c:(.text+0x80a4): undefined reference to `push_gpib_event' > ld: fmh_gpib.c:(.text+0x80c4): undefined reference to `nec7210_interrupt_have_status' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_dma_callback': > fmh_gpib.c:(.text+0x887c): undefined reference to `nec7210_set_reg_bits' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_read': > fmh_gpib.c:(.text+0x8a84): undefined reference to `nec7210_set_reg_bits' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_dma_write': > fmh_gpib.c:(.text+0x95d8): undefined reference to `nec7210_set_reg_bits' > ld: fmh_gpib.c:(.text+0x95f0): undefined reference to `nec7210_set_reg_bits' > ld: fmh_gpib.c:(.text+0x9a88): undefined reference to `nec7210_set_reg_bits' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o:fmh_gpib.c:(.text+0xac38): more undefined references to `nec7210_set_reg_bits' follow > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_exit_module': > fmh_gpib.c:(.exit.text+0x38): undefined reference to `gpib_unregister_driver' > ld: fmh_gpib.c:(.exit.text+0x44): undefined reference to `gpib_unregister_driver' > ld: fmh_gpib.c:(.exit.text+0x50): undefined reference to `gpib_unregister_driver' > ld: fmh_gpib.c:(.exit.text+0x5c): undefined reference to `gpib_unregister_driver' > ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_init_module': > fmh_gpib.c:(.init.text+0x100): undefined reference to `gpib_register_driver' > ld: fmh_gpib.c:(.init.text+0x110): undefined reference to `gpib_register_driver' > ld: fmh_gpib.c:(.init.text+0x120): undefined reference to `gpib_register_driver' > ld: fmh_gpib.c:(.init.text+0x130): undefined reference to `gpib_register_driver' > > Caused by commit > > 8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver") > > I have marked that driver as BROKEN for today. Thanks, I'll go take your patch from next and add it to my tree for this, sorry about the build issues. greg k-h