Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp374340iog; Thu, 30 Jun 2022 02:33:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sL8cil5hXwEdURRLUOw6qCjXP03UwREOyGQYpgZmjDmsOhvvH8H2rUUW+xNLmskn/tHRAu X-Received: by 2002:a17:902:7598:b0:16a:4764:6896 with SMTP id j24-20020a170902759800b0016a47646896mr13547398pll.92.1656581588756; Thu, 30 Jun 2022 02:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656581588; cv=none; d=google.com; s=arc-20160816; b=cfmc4k0i7enlzo4AW+lU4Ogu9OZgxxjLpp858PHusCmzk/905mMX/nlpa8yKtEXwp3 JLrMcwV8AEWuM1SU4j9bmUGrvl5s+Un9exJY2Zv3044CAlR6vN6fzLJU/riOiMQYMPMg 0Up7Fptr8T4zjyBoKqK8QWfWW+jjHXuuv5zPX3K6tS0LWfddNbL5VGRTixE5uX7Qd42V 8kFZt9fH0efrNR4qmbfJmuSS6Osh1EOxCi7njzUn2QECumTYEjjSjke9hZsuntHqI70x m8tBOgIj4MJGh/glYL2hKiX8Vm/9RpXAiqzQyNClvD82M10aEc+1YnN6+7O8BMo0wrXA QXhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qWfMQqoYI55ovzpqRNahllLPRmQYXQc9lWWivoHcpe0=; b=vrubNGytFKJKb8pThJmdLMdBE4HSHK2lkpzURmzqoaCLclR52wjfbYp7BhWhM3Ii33 GeMAz8GOz5QHjezgLvF13OkmSI2QbXTF9Q4Gk4WCfuhZGAoCzA/9SIpbmM4BFzCY5dsj rVFeal2AwbuRAaq2a/cqT4nx89k0YDiPJdlzHxOPp72dxO1ikktsW0RS8T1FAX46F2I0 4I+szJ0IyU88+hUPbGFsS1NVsL/K8p/qZEqANs7XZt2Hg//orm5XStesRHqr4KimGP6q NIbNDoHkx7kY+gyvuiOBVfs1qspEYR2NCxs0V2oWHGTX4u7oBm3pApkGsBwjN1+HB5Nl q+vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GTH4LdgM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a170902ce8200b00161e9f72b11si27374401plg.540.2022.06.30.02.32.47; Thu, 30 Jun 2022 02:33:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GTH4LdgM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbiF3JIT (ORCPT + 99 others); Thu, 30 Jun 2022 05:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233589AbiF3JIR (ORCPT ); Thu, 30 Jun 2022 05:08:17 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF1DD10F for ; Thu, 30 Jun 2022 02:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656580095; x=1688116095; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=YpJeVoBUt7DQ3iJVmz9iDFIwyu5EIFlIt/UXeUIAKyk=; b=GTH4LdgMMHc9O5yFEFiHiwnLN+7ig89BexhUoovODtVvPGeoBHZ2AGy4 eyBVTHrlwjZsl7N+5yie4f2qyqhhuITWFntGXI+TdMyqN8/TowU/OcTDp WuUPWLlVPPsjHwZ1w7Rkrre8V7PaLITYLznAvapRr/Cqb3GAFONAddi9w a+MskbNQTeOQ483wRebuLPelc5OjCNn5rwnd/NzvD6DTA1gkwVzeBU+T4 /UF1CxStBGiY/RzEtNkDAd3E4wsZseAYkCaSZwJRoTFAwL4ypmL+UD4m/ Ts2F3iasWKzopGxLAwS57DJ4UJsJRLB0RC8y2gQwpFVukgVqmtIAwox2+ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10393"; a="265329791" X-IronPort-AV: E=Sophos;i="5.92,233,1650956400"; d="scan'208";a="265329791" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 02:08:15 -0700 X-IronPort-AV: E=Sophos;i="5.92,233,1650956400"; d="scan'208";a="647808130" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.255.28.61]) ([10.255.28.61]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 02:08:13 -0700 Subject: Re: [kbuild-all] Re: drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits' To: Geert Uytterhoeven , kernel test robot Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Kernel Mailing List , Daniel Vetter , Anitha Chrisanthus References: <202206300147.qdDDrtfw-lkp@intel.com> From: "Chen, Rong A" Message-ID: <8e9e1143-f2ea-3a56-71b0-e34105bc1d01@intel.com> Date: Thu, 30 Jun 2022 17:08:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/30/2022 2:03 AM, Geert Uytterhoeven wrote: > Hi Kernel Test Robot, > > On Wed, Jun 29, 2022 at 7:57 PM kernel test robot wrote: >> First bad commit (maybe != root cause): > > Definitely not introduced by my patch. > Looks like these functions were never used at all. Hi Geert, Sorry for the inconvenience, we'll add the commit to ignore list. Best Regards, Rong Chen > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> head: d9b2ba67917c18822c6a09af41c32fa161f1606b >> commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY >> date: 1 year, 8 months ago >> config: mips-randconfig-r016-20220629 (https://download.01.org/0day-ci/archive/20220630/202206300147.qdDDrtfw-lkp@intel.com/config) >> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a774ba7f60d1fef403b5507b1b1a7475d3684d71) >> 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=ade896460e4a62f5e4a892a98d254937f6f5b64c >> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> git fetch --no-tags linus master >> git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c >> # 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 drivers/gpu/drm/kmb/ drivers/net/ethernet/mellanox/mlxsw/ drivers/scsi/ufs/ drivers/staging/ fs/xfs/ >> >> If you fix the issue, kindly add following tag where applicable >> Reported-by: kernel test robot >> >> All warnings (new ones prefixed by >>): >> >>>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits' >> set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi >> ^ >>>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits' >> set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi >> ^ >> fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif' >> clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation) >> clang version 15.0.0 (git://gitmirror/llvm_project a774ba7f60d1fef403b5507b1b1a7475d3684d71) >> Target: mipsel-unknown-linux >> Thread model: posix >> InstalledDir: /opt/cross/clang-a774ba7f60/bin >> clang-15: note: diagnostic msg: >> Makefile arch drivers fs include kernel mm nr_bisected scripts source usr >> >> >> vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c >> >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 810 >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 811 static inline void >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812 set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 813 u32 dphy_no, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 814 u32 freq) >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 815 { >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 816 /* Typical rise/fall time=166, refer Table 1207 databook, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 817 * sr_osc_freq_target[7:0] >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 818 */ >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 819 test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 820 (freq & 0x7f)); >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 821 } >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 822 >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 823 static inline void >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824 set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 825 u32 dphy_no, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 826 u32 freq) >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 827 { >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 828 u32 data; >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 829 >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 830 /* Flag this as high nibble */ >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 831 data = ((freq >> 6) & 0x1f) | (1 << 7); >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 832 >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 833 /* Typical rise/fall time=166, refer Table 1207 databook, >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 834 * sr_osc_freq_target[11:7] >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 835 */ >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 836 test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data); >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 837 } >> 98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 838 >> >> :::::: The code at line 812 was first introduced by commit >> :::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver >> >> :::::: TO: Anitha Chrisanthus >> :::::: CC: Sam Ravnborg > > 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 > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org >