* Re: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype [not found] <20231108125843.3806765-18-arnd@kernel.org> @ 2023-11-09 0:44 ` kernel test robot 2023-11-10 3:40 ` Michael Ellerman 0 siblings, 1 reply; 4+ messages in thread From: kernel test robot @ 2023-11-09 0:44 UTC (permalink / raw) To: Arnd Bergmann, Andrew Morton, linux-kernel, Masahiro Yamada, linux-kbuild Cc: oe-kbuild-all, Linux Memory Management List, Arnd Bergmann, Matt Turner, Vineet Gupta, Russell King, Catalin Marinas, Will Deacon, Steven Rostedt, Masami Hiramatsu, Mark Rutland, Guo Ren, Peter Zijlstra, Ard Biesheuvel, Huacai Chen, Greg Ungerer, Michal Simek, Thomas Bogendoerfer, Dinh Nguyen, Michael Ellerman, Nicholas Piggin, Christophe Leroy, Geoff Levand, Palmer Dabbelt, Heiko Carstens, John Paul Adrian Glaubitz, Andy Lutomirski Hi Arnd, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on next-20231108] [cannot apply to v6.6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Arnd-Bergmann/ida-make-ida_dump-static/20231109-005742 base: linus/master patch link: https://lore.kernel.org/r/20231108125843.3806765-18-arnd%40kernel.org patch subject: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype config: powerpc64-randconfig-001-20231109 (https://download.01.org/0day-ci/archive/20231109/202311090843.b8ISrsV1-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/202311090843.b8ISrsV1-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202311090843.b8ISrsV1-lkp@intel.com/ All errors (new ones prefixed by >>): arch/powerpc/platforms/ps3/gelic_udbg.c:59:1: warning: alignment 1 of 'struct debug_block' is less than 32 [-Wpacked-not-aligned] 59 | } __packed; | ^ >> arch/powerpc/platforms/ps3/gelic_udbg.c:240:6: error: redefinition of 'udbg_shutdown_ps3gelic' 240 | void udbg_shutdown_ps3gelic(void) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/platforms/ps3/gelic_udbg.c:17: arch/powerpc/include/asm/ps3.h:520:20: note: previous definition of 'udbg_shutdown_ps3gelic' with type 'void(void)' 520 | static inline void udbg_shutdown_ps3gelic(void) {} | ^~~~~~~~~~~~~~~~~~~~~~ vim +/udbg_shutdown_ps3gelic +240 arch/powerpc/platforms/ps3/gelic_udbg.c c26afe9e8591f3 Hector Martin 2011-08-31 239 c26afe9e8591f3 Hector Martin 2011-08-31 @240 void udbg_shutdown_ps3gelic(void) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype 2023-11-09 0:44 ` [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype kernel test robot @ 2023-11-10 3:40 ` Michael Ellerman 2023-11-10 6:30 ` Arnd Bergmann 2023-11-13 9:46 ` Geert Uytterhoeven 0 siblings, 2 replies; 4+ messages in thread From: Michael Ellerman @ 2023-11-10 3:40 UTC (permalink / raw) To: kernel test robot, Arnd Bergmann, Andrew Morton, linux-kernel, Masahiro Yamada, linux-kbuild Cc: oe-kbuild-all, Linux Memory Management List, Arnd Bergmann, Matt Turner, Vineet Gupta, Russell King, Catalin Marinas, Will Deacon, Steven Rostedt, Masami Hiramatsu, Mark Rutland, Guo Ren, Peter Zijlstra, Ard Biesheuvel, Huacai Chen, Greg Ungerer, Michal Simek, Thomas Bogendoerfer, Dinh Nguyen, Nicholas Piggin, Christophe Leroy, Geoff Levand, Palmer Dabbelt, Heiko Carstens, John Paul Adrian Glaubitz, Andy Lutomirski kernel test robot <lkp@intel.com> writes: > Hi Arnd, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on linus/master] > [also build test ERROR on next-20231108] > [cannot apply to v6.6] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Arnd-Bergmann/ida-make-ida_dump-static/20231109-005742 > base: linus/master > patch link: https://lore.kernel.org/r/20231108125843.3806765-18-arnd%40kernel.org > patch subject: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype > config: powerpc64-randconfig-001-20231109 (https://download.01.org/0day-ci/archive/20231109/202311090843.b8ISrsV1-lkp@intel.com/config) > compiler: powerpc64-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/202311090843.b8ISrsV1-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: https://lore.kernel.org/oe-kbuild-all/202311090843.b8ISrsV1-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > arch/powerpc/platforms/ps3/gelic_udbg.c:59:1: warning: alignment 1 of 'struct debug_block' is less than 32 [-Wpacked-not-aligned] > 59 | } __packed; > | ^ >>> arch/powerpc/platforms/ps3/gelic_udbg.c:240:6: error: redefinition of 'udbg_shutdown_ps3gelic' > 240 | void udbg_shutdown_ps3gelic(void) > | ^~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/powerpc/platforms/ps3/gelic_udbg.c:17: > arch/powerpc/include/asm/ps3.h:520:20: note: previous definition of 'udbg_shutdown_ps3gelic' with type 'void(void)' > 520 | static inline void udbg_shutdown_ps3gelic(void) {} > | ^~~~~~~~~~~~~~~~~~~~~~ As pointed out by Arnd this is due to there being two symbols that control the gelic_udbg.c code. I don't see the need for PS3GELIC_UDBG, without PPC_EARLY_DEBUG_PS3GELIC it just causes gelic_udbg.c to be built, but never called. The diff below fixes the error AFAICS. I can just fold it in if you're happy with that Arnd. diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index ea4033abc07d..8c80b154e814 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -271,7 +271,6 @@ config PPC_EARLY_DEBUG_USBGECKO config PPC_EARLY_DEBUG_PS3GELIC bool "Early debugging through the PS3 Ethernet port" depends on PPC_PS3 - select PS3GELIC_UDBG help Select this to enable early debugging for the PlayStation3 via UDP broadcasts sent out through the Ethernet port. diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc/platforms/ps3/Kconfig index a44869e5ea70..e9c1087dd42e 100644 --- a/arch/powerpc/platforms/ps3/Kconfig +++ b/arch/powerpc/platforms/ps3/Kconfig @@ -167,16 +167,4 @@ config PS3_LPM profiling support of the Cell processor with programs like perfmon2, then say Y or M, otherwise say N. -config PS3GELIC_UDBG - bool "PS3 udbg output via UDP broadcasts on Ethernet" - depends on PPC_PS3 - help - Enables udbg early debugging output by sending broadcast UDP - via the Ethernet port (UDP port number 18194). - - This driver uses a trivial implementation and is independent - from the main PS3 gelic network driver. - - If in doubt, say N here. - endmenu diff --git a/arch/powerpc/platforms/ps3/Makefile b/arch/powerpc/platforms/ps3/Makefile index 86bf2967a8d4..bc79bb124d1e 100644 --- a/arch/powerpc/platforms/ps3/Makefile +++ b/arch/powerpc/platforms/ps3/Makefile @@ -3,7 +3,7 @@ obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o obj-y += interrupt.o exports.o os-area.o obj-y += system-bus.o -obj-$(CONFIG_PS3GELIC_UDBG) += gelic_udbg.o +obj-$(CONFIG_PPC_EARLY_DEBUG_PS3GELIC) += gelic_udbg.o obj-$(CONFIG_SMP) += smp.o obj-$(CONFIG_SPU_BASE) += spu.o obj-y += device-init.o cheers ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype 2023-11-10 3:40 ` Michael Ellerman @ 2023-11-10 6:30 ` Arnd Bergmann 2023-11-13 9:46 ` Geert Uytterhoeven 1 sibling, 0 replies; 4+ messages in thread From: Arnd Bergmann @ 2023-11-10 6:30 UTC (permalink / raw) To: Michael Ellerman, kernel test robot, Arnd Bergmann, Andrew Morton, linux-kernel, Masahiro Yamada, linux-kbuild Cc: oe-kbuild-all, Linux Memory Management List, Matt Turner, Vineet Gupta, Russell King, Catalin Marinas, Will Deacon, Steven Rostedt, Masami Hiramatsu, Mark Rutland, guoren, Peter Zijlstra, Ard Biesheuvel, Huacai Chen, Greg Ungerer, Michal Simek, Thomas Bogendoerfer, Dinh Nguyen, Nicholas Piggin, Christophe Leroy, Geoff Levand, Palmer Dabbelt, Heiko Carstens, John Paul Adrian Glaubitz, Andy Lutomirski On Fri, Nov 10, 2023, at 04:40, Michael Ellerman wrote: > As pointed out by Arnd this is due to there being two symbols that > control the gelic_udbg.c code. > > I don't see the need for PS3GELIC_UDBG, without PPC_EARLY_DEBUG_PS3GELIC > it just causes gelic_udbg.c to be built, but never called. > > The diff below fixes the error AFAICS. > > I can just fold it in if you're happy with that Arnd. Yes, looks good to me, please do. Arnd ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype 2023-11-10 3:40 ` Michael Ellerman 2023-11-10 6:30 ` Arnd Bergmann @ 2023-11-13 9:46 ` Geert Uytterhoeven 1 sibling, 0 replies; 4+ messages in thread From: Geert Uytterhoeven @ 2023-11-13 9:46 UTC (permalink / raw) To: Michael Ellerman Cc: kernel test robot, Arnd Bergmann, Andrew Morton, linux-kernel, Masahiro Yamada, linux-kbuild, oe-kbuild-all, Linux Memory Management List, Arnd Bergmann, Matt Turner, Vineet Gupta, Russell King, Catalin Marinas, Will Deacon, Steven Rostedt, Masami Hiramatsu, Mark Rutland, Guo Ren, Peter Zijlstra, Ard Biesheuvel, Huacai Chen, Greg Ungerer, Michal Simek, Thomas Bogendoerfer, Dinh Nguyen, Nicholas Piggin, Christophe Leroy, Geoff Levand, Palmer Dabbelt, Heiko Carstens, John Paul Adrian Glaubitz, Andy Lutomirski Hi Michael, On Fri, Nov 10, 2023 at 4:42 AM Michael Ellerman <mpe@ellerman.id.au> wrote: > kernel test robot <lkp@intel.com> writes: > > kernel test robot noticed the following build errors: > > > > [auto build test ERROR on linus/master] > > [also build test ERROR on next-20231108] > > [cannot apply to v6.6] > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > And when submitting patch, we suggest to use '--base' as documented in > > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > > > url: https://github.com/intel-lab-lkp/linux/commits/Arnd-Bergmann/ida-make-ida_dump-static/20231109-005742 > > base: linus/master > > patch link: https://lore.kernel.org/r/20231108125843.3806765-18-arnd%40kernel.org > > patch subject: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype > > config: powerpc64-randconfig-001-20231109 (https://download.01.org/0day-ci/archive/20231109/202311090843.b8ISrsV1-lkp@intel.com/config) > > compiler: powerpc64-linux-gcc (GCC) 13.2.0 > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/202311090843.b8ISrsV1-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot <lkp@intel.com> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202311090843.b8ISrsV1-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > arch/powerpc/platforms/ps3/gelic_udbg.c:59:1: warning: alignment 1 of 'struct debug_block' is less than 32 [-Wpacked-not-aligned] > > 59 | } __packed; > > | ^ > >>> arch/powerpc/platforms/ps3/gelic_udbg.c:240:6: error: redefinition of 'udbg_shutdown_ps3gelic' > > 240 | void udbg_shutdown_ps3gelic(void) > > | ^~~~~~~~~~~~~~~~~~~~~~ > > In file included from arch/powerpc/platforms/ps3/gelic_udbg.c:17: > > arch/powerpc/include/asm/ps3.h:520:20: note: previous definition of 'udbg_shutdown_ps3gelic' with type 'void(void)' > > 520 | static inline void udbg_shutdown_ps3gelic(void) {} > > | ^~~~~~~~~~~~~~~~~~~~~~ > > As pointed out by Arnd this is due to there being two symbols that > control the gelic_udbg.c code. > > I don't see the need for PS3GELIC_UDBG, without PPC_EARLY_DEBUG_PS3GELIC > it just causes gelic_udbg.c to be built, but never called. My first thought was: PPC_EARLY_DEBUG_PS3GELIC is meant as an early debugging console, while PS3GELIC_UDBG can be used with xmon later, but that does not seem to be the case. > The diff below fixes the error AFAICS. So your changes on top LGTM. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-13 9:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20231108125843.3806765-18-arnd@kernel.org>
2023-11-09 0:44 ` [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype kernel test robot
2023-11-10 3:40 ` Michael Ellerman
2023-11-10 6:30 ` Arnd Bergmann
2023-11-13 9:46 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox