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 C99A5C433F5 for ; Tue, 25 Jan 2022 13:45:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1577685AbiAYNpi (ORCPT ); Tue, 25 Jan 2022 08:45:38 -0500 Received: from mga04.intel.com ([192.55.52.120]:61114 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1577635AbiAYNnF (ORCPT ); Tue, 25 Jan 2022 08:43:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643118180; x=1674654180; h=date:from:to:cc:subject:message-id:mime-version; bh=NXJckC/W+O4E+mRqt6qYWHe7c4wwUf10qw2Uz84TlBY=; b=LezBnd8/2jQ234WMRYLk8+92u4MXLlW2x6RZKjMz8jg1NrbpqXK6ZTHC tuXtaGtjmrJOJDycuoUucHOoSsqxpDQNxg8r9ZxS/6BxlP5AbVbRmGAK0 OeVbQjQKv6iURcpKGaUfuMf0ZU9PgyvLTOX3kJXXzo5attlDLS1eAVSNY YPj/oAkDrYxopaBA8UtQfghmkn/QJirTBMAyFLDn1XuNIFuWosXgkps1R fqD0aP1Uei6r1I3+2XsW3ImyRFtLRk4qV8EaxFR1dS9bzU6pf6agf96a2 pXkS9gXYTzBRWgIpcp+qDzlyfApMmZLyd/eYooASRKo2glVnYfh2jEnMD Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="245133581" X-IronPort-AV: E=Sophos;i="5.88,315,1635231600"; d="scan'208";a="245133581" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 05:42:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,315,1635231600"; d="scan'208";a="532416313" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 25 Jan 2022 05:42:57 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nCM65-000Jxl-9V; Tue, 25 Jan 2022 13:42:57 +0000 Date: Tue, 25 Jan 2022 21:42:06 +0800 From: kernel test robot To: Qingqing Zhuo Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Alex Deucher , Rodrigo Siqueira Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:81:40: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202201252155.rqBWi1tb-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a08b41ab9e2e468647f78eb17c28e29b93006394 commit: d738db6883df3e3c513f9e777c842262693f951b drm/amd/display: move FPU associated DSC code to DML folder date: 3 months ago config: i386-randconfig-s002-20211122 (https://download.01.org/0day-ci/archive/20220125/202201252155.rqBWi1tb-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d738db6883df3e3c513f9e777c842262693f951b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout d738db6883df3e3c513f9e777c842262693f951b # save the config file to linux build tree mkdir build_dir make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c: note: in included file: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:28:18: sparse: sparse: symbol 'qp_table_422_10bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:61:18: sparse: sparse: symbol 'qp_table_444_8bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:102:18: sparse: sparse: symbol 'qp_table_420_12bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:135:18: sparse: sparse: symbol 'qp_table_444_10bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:188:18: sparse: sparse: symbol 'qp_table_420_8bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:209:18: sparse: sparse: symbol 'qp_table_444_8bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:250:18: sparse: sparse: symbol 'qp_table_444_12bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:315:18: sparse: sparse: symbol 'qp_table_420_12bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:348:18: sparse: sparse: symbol 'qp_table_422_12bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:389:18: sparse: sparse: symbol 'qp_table_422_12bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:430:18: sparse: sparse: symbol 'qp_table_444_12bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:495:18: sparse: sparse: symbol 'qp_table_420_8bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:516:18: sparse: sparse: symbol 'qp_table_422_8bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:541:18: sparse: sparse: symbol 'qp_table_422_10bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:574:16: sparse: sparse: symbol 'qp_table_420_10bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:601:18: sparse: sparse: symbol 'qp_table_420_10bpc_min' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:628:18: sparse: sparse: symbol 'qp_table_444_10bpc_max' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:681:18: sparse: sparse: symbol 'qp_table_422_8bpc_max' was not declared. Should it be static? >> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:81:40: sparse: sparse: Using plain integer as NULL pointer drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:106:22: sparse: sparse: Using plain integer as NULL pointer vim +81 drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c 73 74 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, 75 enum max_min max_min, float bpp) 76 { 77 int mode = MODE_SELECT(444, 422, 420); 78 int sel = table_hash(mode, bpc, max_min); 79 int table_size = 0; 80 int index; > 81 const struct qp_entry *table = 0L; 82 83 // alias enum 84 enum { min = DAL_MM_MIN, max = DAL_MM_MAX }; 85 switch (sel) { 86 TABLE_CASE(444, 8, max); 87 TABLE_CASE(444, 8, min); 88 TABLE_CASE(444, 10, max); 89 TABLE_CASE(444, 10, min); 90 TABLE_CASE(444, 12, max); 91 TABLE_CASE(444, 12, min); 92 TABLE_CASE(422, 8, max); 93 TABLE_CASE(422, 8, min); 94 TABLE_CASE(422, 10, max); 95 TABLE_CASE(422, 10, min); 96 TABLE_CASE(422, 12, max); 97 TABLE_CASE(422, 12, min); 98 TABLE_CASE(420, 8, max); 99 TABLE_CASE(420, 8, min); 100 TABLE_CASE(420, 10, max); 101 TABLE_CASE(420, 10, min); 102 TABLE_CASE(420, 12, max); 103 TABLE_CASE(420, 12, min); 104 } 105 106 if (table == 0) 107 return; 108 109 index = (bpp - table[0].bpp) * 2; 110 111 /* requested size is bigger than the table */ 112 if (index >= table_size) { 113 dm_error("ERROR: Requested rc_calc to find a bpp entry that exceeds the table size\n"); 114 return; 115 } 116 117 memcpy(qps, table[index].qps, sizeof(qp_set)); 118 } 119 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3075304597142900618==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:81:40: sparse: sparse: Using plain integer as NULL pointer Date: Tue, 25 Jan 2022 21:42:06 +0800 Message-ID: <202201252155.rqBWi1tb-lkp@intel.com> List-Id: --===============3075304597142900618== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: a08b41ab9e2e468647f78eb17c28e29b93006394 commit: d738db6883df3e3c513f9e777c842262693f951b drm/amd/display: move FPU = associated DSC code to DML folder date: 3 months ago config: i386-randconfig-s002-20211122 (https://download.01.org/0day-ci/arch= ive/20220125/202201252155.rqBWi1tb-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3Dd738db6883df3e3c513f9e777c842262693f951b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout d738db6883df3e3c513f9e777c842262693f951b # save the config file to linux build tree mkdir build_dir make W=3D1 C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3D= build_dir ARCH=3Di386 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c: note: in= included file: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:28:18: spar= se: sparse: symbol 'qp_table_422_10bpc_min' was not declared. Should it be = static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:61:18: spar= se: sparse: symbol 'qp_table_444_8bpc_max' was not declared. Should it be s= tatic? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:102:18: spa= rse: sparse: symbol 'qp_table_420_12bpc_max' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:135:18: spa= rse: sparse: symbol 'qp_table_444_10bpc_min' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:188:18: spa= rse: sparse: symbol 'qp_table_420_8bpc_max' was not declared. Should it be = static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:209:18: spa= rse: sparse: symbol 'qp_table_444_8bpc_min' was not declared. Should it be = static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:250:18: spa= rse: sparse: symbol 'qp_table_444_12bpc_min' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:315:18: spa= rse: sparse: symbol 'qp_table_420_12bpc_min' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:348:18: spa= rse: sparse: symbol 'qp_table_422_12bpc_min' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:389:18: spa= rse: sparse: symbol 'qp_table_422_12bpc_max' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:430:18: spa= rse: sparse: symbol 'qp_table_444_12bpc_max' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:495:18: spa= rse: sparse: symbol 'qp_table_420_8bpc_min' was not declared. Should it be = static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:516:18: spa= rse: sparse: symbol 'qp_table_422_8bpc_min' was not declared. Should it be = static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:541:18: spa= rse: sparse: symbol 'qp_table_422_10bpc_max' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:574:16: spa= rse: sparse: symbol 'qp_table_420_10bpc_max' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:601:18: spa= rse: sparse: symbol 'qp_table_420_10bpc_min' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:628:18: spa= rse: sparse: symbol 'qp_table_444_10bpc_max' was not declared. Should it be= static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:681:18: spa= rse: sparse: symbol 'qp_table_422_8bpc_max' was not declared. Should it be = static? >> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:81:40: sp= arse: sparse: Using plain integer as NULL pointer drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:106:22: s= parse: sparse: Using plain integer as NULL pointer vim +81 drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c 73 = 74 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_pe= r_comp bpc, 75 enum max_min max_min, float bpp) 76 { 77 int mode =3D MODE_SELECT(444, 422, 420); 78 int sel =3D table_hash(mode, bpc, max_min); 79 int table_size =3D 0; 80 int index; > 81 const struct qp_entry *table =3D 0L; 82 = 83 // alias enum 84 enum { min =3D DAL_MM_MIN, max =3D DAL_MM_MAX }; 85 switch (sel) { 86 TABLE_CASE(444, 8, max); 87 TABLE_CASE(444, 8, min); 88 TABLE_CASE(444, 10, max); 89 TABLE_CASE(444, 10, min); 90 TABLE_CASE(444, 12, max); 91 TABLE_CASE(444, 12, min); 92 TABLE_CASE(422, 8, max); 93 TABLE_CASE(422, 8, min); 94 TABLE_CASE(422, 10, max); 95 TABLE_CASE(422, 10, min); 96 TABLE_CASE(422, 12, max); 97 TABLE_CASE(422, 12, min); 98 TABLE_CASE(420, 8, max); 99 TABLE_CASE(420, 8, min); 100 TABLE_CASE(420, 10, max); 101 TABLE_CASE(420, 10, min); 102 TABLE_CASE(420, 12, max); 103 TABLE_CASE(420, 12, min); 104 } 105 = 106 if (table =3D=3D 0) 107 return; 108 = 109 index =3D (bpp - table[0].bpp) * 2; 110 = 111 /* requested size is bigger than the table */ 112 if (index >=3D table_size) { 113 dm_error("ERROR: Requested rc_calc to find a bpp entry that exceed= s the table size\n"); 114 return; 115 } 116 = 117 memcpy(qps, table[index].qps, sizeof(qp_set)); 118 } 119 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3075304597142900618==--