lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202201926.pBXsd3i7-lkp@intel.com>
Date:   Sun, 20 Feb 2022 19:58:44 +0800
From:   kernel test robot <lkp@...el.com>
To:     Paul Cercueil <paul@...pouillou.net>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: arch/mips/alchemy/board-gpr.c:78:13: warning: no previous prototype
 for function 'board_setup'

Hi Paul,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4f12b742eb2b3a850ac8be7dc4ed52976fc6cb0b
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date:   1 year, 5 months ago
config: mips-randconfig-r016-20220220 (https://download.01.org/0day-ci/archive/20220220/202202201926.pBXsd3i7-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/alchemy/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> arch/mips/alchemy/board-gpr.c:78:13: warning: no previous prototype for function 'board_setup' [-Wmissing-prototypes]
   void __init board_setup(void)
               ^
   arch/mips/alchemy/board-gpr.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init board_setup(void)
   ^
   static 
   1 warning generated.


vim +/board_setup +78 arch/mips/alchemy/board-gpr.c

8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  77  
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10 @78  void __init board_setup(void)
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  79  {
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  80  	printk(KERN_INFO "Trapeze ITS GPR board\n");
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  81  
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  82  	pm_power_off = gpr_power_off;
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  83  	_machine_halt = gpr_power_off;
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  84  	_machine_restart = gpr_reset;
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  85  
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  86  	/* Enable UART1/3 */
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  87  	alchemy_uart_enable(AU1000_UART3_PHYS_ADDR);
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  88  	alchemy_uart_enable(AU1000_UART1_PHYS_ADDR);
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  89  
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  90  	/* Take away Reset of UMTS-card */
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  91  	alchemy_gpio_direction_output(215, 1);
8e026910fcd46c3 arch/mips/alchemy/board-gpr.c    Manuel Lauss        2011-11-10  92  }
cb8f55b9207df96 arch/mips/alchemy/gpr/platform.c Wolfgang Grandegger 2010-07-15  93  

:::::: The code at line 78 was first introduced by commit
:::::: 8e026910fcd46c3cfcdf5cff7ebba013bb8ec85c MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files

:::::: TO: Manuel Lauss <manuel.lauss@...glemail.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ