From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4452BC25B08 for ; Sat, 20 Aug 2022 08:04:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245179AbiHTIEH (ORCPT ); Sat, 20 Aug 2022 04:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243060AbiHTIEC (ORCPT ); Sat, 20 Aug 2022 04:04:02 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E3D75CFF for ; Sat, 20 Aug 2022 01:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660982640; x=1692518640; h=date:from:to:cc:subject:message-id:mime-version; bh=6JUrxYCKKv9Corxi85IfluTexRfbKr9u7r3UhCXYa8Q=; b=HFGWRgSibZCi/4zI9YgpDlxB+GfEKXMcG/2ikm8kbKcsfUA6MNczPAJw p1jWFoGL8il7kW0+cOcbEL4yOZRKkoSMz22svVwrtYcEzSNskjIoVlqHf WJJFSLVzyiH8ssNSWeJA0+c7fPRNROfVpPDAsdBOjmuS5+MQJzIMXRAnV 5ZqbjYmQoeE/q/g2RO+fVGGZb3FLFnNgG7xsCfmCpYupemuLPdsA/DWuH cK4Rw9ubvnxg8zvdPwmEkwFs1LMVyUSHsuAqw3i1jAYU9iav5rhGtzvV5 tYB2Xrg+E3nzjnjgYH82iTpue/hDUVC8hih7GfluDdEGgFmsMluI7cZ/H Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10444"; a="273551160" X-IronPort-AV: E=Sophos;i="5.93,250,1654585200"; d="scan'208";a="273551160" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2022 01:03:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,250,1654585200"; d="scan'208";a="936468917" Received: from lkp-server01.sh.intel.com (HELO 44b6dac04a33) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 20 Aug 2022 01:03:57 -0700 Received: from kbuild by 44b6dac04a33 with local (Exim 4.96) (envelope-from ) id 1oPJSX-0002Ln-0C; Sat, 20 Aug 2022 08:03:57 +0000 Date: Sat, 20 Aug 2022 16:02:57 +0800 From: kernel test robot To: Masahiro Yamada Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Thomas Bogendoerfer Subject: arch/mips/boot/compressed/../../../../lib/ashldi3.c:9:19: warning: no previous prototype for function '__ashldi3' Message-ID: <202208201544.3bfagcR3-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 50cd95ac46548429e5bba7ca75cc97d11a697947 commit: f78b25ee922ef6faf59a258af1b9388ca894cfd9 mips: decompressor: do not copy source files while building date: 9 months ago config: mips-loongson1c_defconfig (https://download.01.org/0day-ci/archive/20220820/202208201544.3bfagcR3-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c9a41fe60ab62f7a40049c100adcc8087a47669b) 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-mipsel-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f78b25ee922ef6faf59a258af1b9388ca894cfd9 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout f78b25ee922ef6faf59a258af1b9388ca894cfd9 # 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=mips SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Note: functions only called from assembly code should be annotated with the asmlinkage attribute All warnings (new ones prefixed by >>): In file included from arch/mips/boot/compressed/ashldi3.c:2: >> arch/mips/boot/compressed/../../../../lib/ashldi3.c:9:19: warning: no previous prototype for function '__ashldi3' [-Wmissing-prototypes] long long notrace __ashldi3(long long u, word_type b) ^ arch/mips/boot/compressed/../../../../lib/ashldi3.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit long long notrace __ashldi3(long long u, word_type b) ^ static 1 warning generated. vim +/__ashldi3 +9 arch/mips/boot/compressed/../../../../lib/ashldi3.c b35cd9884fa5d8 Palmer Dabbelt 2017-05-23 8 b35cd9884fa5d8 Palmer Dabbelt 2017-05-23 @9 long long notrace __ashldi3(long long u, word_type b) :::::: The code at line 9 was first introduced by commit :::::: b35cd9884fa5d81c9d5e7f57c9d03264ae2bd835 lib: Add shared copies of some GCC library routines :::::: TO: Palmer Dabbelt :::::: CC: Palmer Dabbelt -- 0-DAY CI Kernel Test Service https://01.org/lkp