From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81BAD4A2F for ; Wed, 21 Sep 2022 15:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663773993; x=1695309993; h=date:from:to:cc:subject:message-id:mime-version; bh=rqJUOoVj5mAMGy2f3TCSteYp6PBvRaljpl/4msFKkoI=; b=TnCWv8l6Ma7vJinwAKwOqYPbTioZ6HC2VN+whIS63UnDBvex+V5y9bzI +dUNZ8+k5HglGxezeSCdlgC5t/b/6veqlOUig+MnAg3QwLKbjpfNbYDfq 8Pk1IoG/5oa0bEnwxhmALDJl6/7NwIDeOqO2WNwXQV8beXIgVbtKzS2VR eCjo7DyayiKZgHsu9edWoPgXCDejUlg0FiMZ0mVIdNsoVcK3AmNABSbcC +d4C5YQ/OuSM7Hid+tkN1MeAKAurKuBB+/tWrqQSfoZXnLvo39ns7QzaA gEqbNxbiSwcZ6EXRrP/CkPotOBFyNBo1CDRn0/mXCmL9Wcuv5Tx5DqtgS g==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="386320790" X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="386320790" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 08:26:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="948199885" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 21 Sep 2022 08:26:26 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1ob1cH-0003ib-1W; Wed, 21 Sep 2022 15:26:25 +0000 Date: Wed, 21 Sep 2022 23:26:24 +0800 From: kernel test robot To: Max Filippov Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [jcmvbkbc-xtensa:xtensa-6.0-esp32 7/12] drivers/tty/serial/esp32_uart.c:33:6: warning: no previous prototype for function 'dbg_echo' Message-ID: <202209212350.zedDtGpw-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/jcmvbkbc/linux-xtensa xtensa-6.0-esp32 head: 513fb5af258c5311c5e0684c21db9aeb48e981e8 commit: a17e7b31fc865c922149feb5c560bc4c497b8c34 [7/12] WIP: drivers/tty/serial: add driver for ESP32 UART config: riscv-randconfig-r032-20220921 (https://download.01.org/0day-ci/archive/20220921/202209212350.zedDtGpw-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/jcmvbkbc/linux-xtensa/commit/a17e7b31fc865c922149feb5c560bc4c497b8c34 git remote add jcmvbkbc-xtensa https://github.com/jcmvbkbc/linux-xtensa git fetch --no-tags jcmvbkbc-xtensa xtensa-6.0-esp32 git checkout a17e7b31fc865c922149feb5c560bc4c497b8c34 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/clk/ drivers/misc/ drivers/net/wireless/ralink/rt2x00/ drivers/pinctrl/ drivers/tty/serial/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/tty/serial/esp32_uart.c:33:6: warning: no previous prototype for function 'dbg_echo' [-Wmissing-prototypes] void dbg_echo(const char *s) ^ drivers/tty/serial/esp32_uart.c:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void dbg_echo(const char *s) ^ static >> drivers/tty/serial/esp32_uart.c:48:6: warning: no previous prototype for function 'dbg_printf' [-Wmissing-prototypes] void dbg_printf(const char *fmt, ...) ^ drivers/tty/serial/esp32_uart.c:48:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void dbg_printf(const char *fmt, ...) ^ static 2 warnings generated. vim +/dbg_echo +33 drivers/tty/serial/esp32_uart.c 32 > 33 void dbg_echo(const char *s) 34 { 35 volatile void __iomem *base = (volatile void __iomem *)0x3ff40000; 36 37 while ((readl(base + UART_STATUS_REG) & UART_TXFIFO_CNT_MASK) != 0) 38 ; 39 40 while (*s) { 41 if (*s == '\n') 42 writel('\r', base + UART_FIFO_REG); 43 writel(*s, base + UART_FIFO_REG); 44 ++s; 45 } 46 } 47 > 48 void dbg_printf(const char *fmt, ...) 49 { 50 va_list ap; 51 char buf[256]; 52 53 va_start(ap, fmt); 54 vsnprintf(buf, sizeof(buf), fmt, ap); 55 va_end(ap); 56 dbg_echo(buf); 57 } 58 -- 0-DAY CI Kernel Test Service https://01.org/lkp