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 7C4B7C433EF for ; Wed, 16 Feb 2022 08:37:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231317AbiBPIht (ORCPT ); Wed, 16 Feb 2022 03:37:49 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:33738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbiBPIhp (ORCPT ); Wed, 16 Feb 2022 03:37:45 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F0F107081 for ; Wed, 16 Feb 2022 00:37:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645000653; x=1676536653; h=date:from:to:cc:subject:message-id:mime-version; bh=uxxYDP656kgJeYkBSfqI34mIkHMU4FDOWavH3rE8yKk=; b=mk315v2AEb0DqY26EvbGm7iG8bz7RgzBsRxQhcTwjLnjiQmO5qGqHfYo Fo8b11RDY/5xgYN9n5uB3W4RGsXMcHl924pjqWoDLgKFFVpP4EM5zPD+A fgprv8uHThyAn3oTtnHhZtFeAdoCSWL40N4zqEoA0pKHUN9iBzZ70pFx3 OV1AuAhka1TvpdTZGC5AjLxbq4/dzZ8AY+AA/uvEANJT8o9BFRToR+gLV wGvsVnfE/4C1UwEcOIFJandSGc0BE/PQJjlTiumiERxMoOJt0d3GeeuCx N61Su6eE0J8fNYWwyHCEkZv7SsTe3arwhaqzyEHIg335Lkp8kFabD33d9 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="250291437" X-IronPort-AV: E=Sophos;i="5.88,373,1635231600"; d="scan'208";a="250291437" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 00:37:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,373,1635231600"; d="scan'208";a="636388336" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 16 Feb 2022 00:37:30 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nKFoY-000AcJ-7m; Wed, 16 Feb 2022 08:37:30 +0000 Date: Wed, 16 Feb 2022 16:36:47 +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: <202202161633.9LcaU3Cg-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) 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: c5d9ae265b105d9a67575fb67bd4650a6fc08e25 commit: f78b25ee922ef6faf59a258af1b9388ca894cfd9 mips: decompressor: do not copy source files while building date: 3 months ago config: mips-loongson1c_defconfig (https://download.01.org/0day-ci/archive/20220216/202202161633.9LcaU3Cg-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a783b935c70c80815db6c061ec84f884af5) 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=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 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 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org