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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 106A3C4332F for ; Mon, 6 Nov 2023 17:47:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FB0210E141; Mon, 6 Nov 2023 17:47:53 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 73D6010E141 for ; Mon, 6 Nov 2023 17:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699292870; x=1730828870; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wf+4bViPMJ/wLn9iYcrNdVmT0wr1Bw6+m9MBBvTNPMQ=; b=EpCmvF0z9dOhR3NKtkvzu9JVB66d3z0VYt8MUfRDvZn/OxT9f/2gq5Ir d5kGrONaTdIVRMtfXOkcEQhQK9JJIGZPQt2/6J1ikbvUtZwWn/PeQB1B3 836GF1URJAyYIfiEUzxlA+Oxi6SfOk0T/N015TeUfXMd+6iXOFMgUpy3z E6w3aVLU3SfEGUpnP03qQgK+busEavMom1pWngb+S9Ubh2LuTt60Y49in dmIlZ/mj1peWRk2dLXPzTxhBLUqvMPSw34bULhYmZweGG0hxeew0ACNQD 8DJhqsoDvuq/1rFj10NdPJ2BmLF349pUmyr7pVZlVq3baVeEijE1E+krB g==; X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="392204347" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="392204347" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 09:47:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="791533609" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="791533609" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 06 Nov 2023 09:47:47 -0800 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1r03hR-0006cO-0T; Mon, 06 Nov 2023 17:47:45 +0000 Date: Tue, 7 Nov 2023 01:46:18 +0800 From: kernel test robot To: Sui Jingfeng , Maxime Ripard , Thomas Zimmermann Subject: Re: [PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization Message-ID: <202311070048.L62vVvHE-lkp@intel.com> References: <20231029194607.379459-6-suijingfeng@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231029194607.379459-6-suijingfeng@loongson.cn> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, oe-kbuild-all@lists.linux.dev Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Sui, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.6 next-20231106] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sui-Jingfeng/drm-loongson-Introduce-a-minimal-support-for-Loongson-VBIOS/20231030-034730 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20231029194607.379459-6-suijingfeng%40loongson.cn patch subject: [PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization config: x86_64-randconfig-122-20231102 (https://download.01.org/0day-ci/archive/20231107/202311070048.L62vVvHE-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231107/202311070048.L62vVvHE-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311070048.L62vVvHE-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/loongson/lsdc_output_7a2000.c:567:31: sparse: sparse: symbol 'ls7a2000_query_output_configuration' was not declared. Should it be static? vim +/ls7a2000_query_output_configuration +567 drivers/gpu/drm/loongson/lsdc_output_7a2000.c 559 560 /* 561 * For LS7A2000, the built-in VGA encoder is transparent. If there are 562 * external encoder exist, then the internal HDMI encoder MUST be enabled 563 * and initialized. As the internal HDMI encoder is always connected, so 564 * only the transmitters which take HDMI signal (such as HDMI to eDP, HDMI 565 * to LVDS, etc) are usable with. 566 */ > 567 const struct lsdc_output_desc * 568 ls7a2000_query_output_configuration(struct drm_device *ddev, unsigned int pipe) 569 { 570 enum loongson_vbios_encoder_name encoder_name = 0; 571 bool ret; 572 573 ret = loongson_vbios_query_encoder_info(ddev, pipe, NULL, 574 &encoder_name, NULL); 575 if (!ret) 576 goto bailout; 577 578 if (pipe == 0) { 579 switch (encoder_name) { 580 case ENCODER_CHIP_INTERNAL_HDMI: 581 return &ls7a2000_hdmi_pipe0; 582 583 /* 584 * For LS7A2000, the built-in VGA encoder is transparent. 585 */ 586 case ENCODER_CHIP_INTERNAL_VGA: 587 return &ls7a2000_vga_pipe0; 588 589 /* 590 * External display bridge exists, the internal HDMI encoder 591 * MUST be enabled and initialized. Please add a drm bridge 592 * driver, and attach to this encoder. 593 */ 594 default: 595 return &ls7a2000_hdmi_pipe0; 596 } 597 } 598 599 if (pipe == 1) { 600 switch (encoder_name) { 601 case ENCODER_CHIP_INTERNAL_HDMI: 602 return &ls7a2000_hdmi_pipe1; 603 604 /* 605 * External display bridge exists, the internal HDMI encoder 606 * MUST be enabled and initialized. Please add a drm bridge 607 * driver, and attach it to this encoder. 608 */ 609 default: 610 return &ls7a2000_hdmi_pipe1; 611 } 612 } 613 614 bailout: 615 if (pipe == 0) 616 return &ls7a2000_vga_pipe0; 617 618 if (pipe == 1) 619 return &ls7a2000_hdmi_pipe1; 620 621 return NULL; 622 } 623 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki