From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1765589973665494759==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 350/9999] drivers/cpuidle/cpuidle.c:598:27: sparse: sparse: incorrect type in initializer (different address spaces) Date: Sat, 22 Jan 2022 11:46:47 +0800 Message-ID: <202201221155.oQX7vOxx-lkp@intel.com> List-Id: --===============1765589973665494759== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/co= mmon/android-4.19-stable head: 90a691fca4c2525068d9908ac203e9f09e4e33c0 commit: 02f88aaaac53929e0cf4fe50f807cdea4b9e224d [350/9999] ANDROID: GKI: E= xport symbols arm_cpuidle_suspend, cpuidle_dev and cpuidle_register_governor config: x86_64-randconfig-s022 (https://download.01.org/0day-ci/archive/202= 20122/202201221155.oQX7vOxx-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://github.com/ammarfaizi2/linux-block/commit/02f88aaaac53929= e0cf4fe50f807cdea4b9e224d git remote add ammarfaizi2-block https://github.com/ammarfaizi2/lin= ux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/= android-4.19-stable git checkout 02f88aaaac53929e0cf4fe50f807cdea4b9e224d # 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=3Dx86_64 SHELL=3D/bin/bash drivers/cpuidle/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/cpuidle/cpuidle.c:598:27: sparse: sparse: incorrect type in init= ializer (different address spaces) @@ expected void const [noderef] *__vpp_verify @@ got struct cpuidle_device * @@ drivers/cpuidle/cpuidle.c:598:27: sparse: expected void const [noder= ef] *__vpp_verify drivers/cpuidle/cpuidle.c:598:27: sparse: got struct cpuidle_device * drivers/cpuidle/cpuidle.c:630:27: sparse: sparse: incorrect type in init= ializer (different address spaces) @@ expected void const [noderef] *__vpp_verify @@ got struct cpuidle_device * @@ drivers/cpuidle/cpuidle.c:630:27: sparse: expected void const [noder= ef] *__vpp_verify drivers/cpuidle/cpuidle.c:630:27: sparse: got struct cpuidle_device * vim +598 drivers/cpuidle/cpuidle.c 4f86d3a8e29720 Len Brown 2007-10-03 584 = 1c192d047a0ddc Daniel Lezcano 2013-04-23 585 /** 4c637b2175a0dc Daniel Lezcano 2013-04-23 586 * cpuidle_unregister: unreg= ister a driver and the devices. This function 4c637b2175a0dc Daniel Lezcano 2013-04-23 587 * can be used only if the d= river has been previously registered through 4c637b2175a0dc Daniel Lezcano 2013-04-23 588 * the cpuidle_register func= tion. 4c637b2175a0dc Daniel Lezcano 2013-04-23 589 * 4c637b2175a0dc Daniel Lezcano 2013-04-23 590 * @drv: a valid pointer to = a struct cpuidle_driver 4c637b2175a0dc Daniel Lezcano 2013-04-23 591 */ 4c637b2175a0dc Daniel Lezcano 2013-04-23 592 void cpuidle_unregister(stru= ct cpuidle_driver *drv) 4c637b2175a0dc Daniel Lezcano 2013-04-23 593 { 4c637b2175a0dc Daniel Lezcano 2013-04-23 594 int cpu; 4c637b2175a0dc Daniel Lezcano 2013-04-23 595 struct cpuidle_device *devi= ce; 4c637b2175a0dc Daniel Lezcano 2013-04-23 596 = 82467a5a885ddd Daniel Lezcano 2013-06-07 597 for_each_cpu(cpu, drv->cpum= ask) { 4c637b2175a0dc Daniel Lezcano 2013-04-23 @598 device =3D &per_cpu(cpuidl= e_dev, cpu); 4c637b2175a0dc Daniel Lezcano 2013-04-23 599 cpuidle_unregister_device(= device); 4c637b2175a0dc Daniel Lezcano 2013-04-23 600 } 4c637b2175a0dc Daniel Lezcano 2013-04-23 601 = 4c637b2175a0dc Daniel Lezcano 2013-04-23 602 cpuidle_unregister_driver(d= rv); 4c637b2175a0dc Daniel Lezcano 2013-04-23 603 } 4c637b2175a0dc Daniel Lezcano 2013-04-23 604 EXPORT_SYMBOL_GPL(cpuidle_un= register); 4c637b2175a0dc Daniel Lezcano 2013-04-23 605 = :::::: The code at line 598 was first introduced by commit :::::: 4c637b2175a0dc65d533494225525c6c82d73293 cpuidle: make a single regi= ster function for all :::::: TO: Daniel Lezcano :::::: CC: Rafael J. Wysocki --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1765589973665494759==-- 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 52D52C433FE for ; Sat, 22 Jan 2022 03:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232244AbiAVDrS (ORCPT ); Fri, 21 Jan 2022 22:47:18 -0500 Received: from mga14.intel.com ([192.55.52.115]:31597 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230347AbiAVDrR (ORCPT ); Fri, 21 Jan 2022 22:47:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642823237; x=1674359237; h=date:from:to:cc:subject:message-id:mime-version; bh=aGHcF/2ucf/TbgGhtV3tDg8WPFI9aEzawM+5gAAXR5k=; b=WXgK5QA4pVfXvHec6LG0k+JchXO5/U7uE9ksoJIOMOgAk1PLWBcgFe7v Mlrt7Wav3fAZgjnfTv8ISSgm1qboNlKYoFLXoYHNzxtaRpyqV44rGDCPZ xzK4Nj1OcVuYO0JRn/Hcin165J7Vxz8y8O1s+Zz6aLkt8tSKKtvWFkFfR 3lCxdEU8AlBKB5V797JIK9dhsu5ERq4Ak/FOJh15lmH+lp/8OwiXRAPmI Eodvk4Qf8LUeVlnyyu2dWSzYbpA7Mq1iyrNXAb9hXZmLoqXikftSoMQtf RQeShjTDt8//2WZLzgmaxGlryUaGPqgF3OA4DDL1B+Lz6LZeZagc3tR93 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10234"; a="246005674" X-IronPort-AV: E=Sophos;i="5.88,307,1635231600"; d="scan'208";a="246005674" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 19:47:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,307,1635231600"; d="scan'208";a="626942866" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 21 Jan 2022 19:47:15 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nB7Mx-000Fz4-1O; Sat, 22 Jan 2022 03:47:15 +0000 Date: Sat, 22 Jan 2022 11:46:47 +0800 From: kernel test robot To: Hridya Valsaraju Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Will McVicker Subject: [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 350/9999] drivers/cpuidle/cpuidle.c:598:27: sparse: sparse: incorrect type in initializer (different address spaces) Message-ID: <202201221155.oQX7vOxx-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://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable head: 90a691fca4c2525068d9908ac203e9f09e4e33c0 commit: 02f88aaaac53929e0cf4fe50f807cdea4b9e224d [350/9999] ANDROID: GKI: Export symbols arm_cpuidle_suspend, cpuidle_dev and cpuidle_register_governor config: x86_64-randconfig-s022 (https://download.01.org/0day-ci/archive/20220122/202201221155.oQX7vOxx-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://github.com/ammarfaizi2/linux-block/commit/02f88aaaac53929e0cf4fe50f807cdea4b9e224d git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable git checkout 02f88aaaac53929e0cf4fe50f807cdea4b9e224d # 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=x86_64 SHELL=/bin/bash drivers/cpuidle/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/cpuidle/cpuidle.c:598:27: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] *__vpp_verify @@ got struct cpuidle_device * @@ drivers/cpuidle/cpuidle.c:598:27: sparse: expected void const [noderef] *__vpp_verify drivers/cpuidle/cpuidle.c:598:27: sparse: got struct cpuidle_device * drivers/cpuidle/cpuidle.c:630:27: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] *__vpp_verify @@ got struct cpuidle_device * @@ drivers/cpuidle/cpuidle.c:630:27: sparse: expected void const [noderef] *__vpp_verify drivers/cpuidle/cpuidle.c:630:27: sparse: got struct cpuidle_device * vim +598 drivers/cpuidle/cpuidle.c 4f86d3a8e29720 Len Brown 2007-10-03 584 1c192d047a0ddc Daniel Lezcano 2013-04-23 585 /** 4c637b2175a0dc Daniel Lezcano 2013-04-23 586 * cpuidle_unregister: unregister a driver and the devices. This function 4c637b2175a0dc Daniel Lezcano 2013-04-23 587 * can be used only if the driver has been previously registered through 4c637b2175a0dc Daniel Lezcano 2013-04-23 588 * the cpuidle_register function. 4c637b2175a0dc Daniel Lezcano 2013-04-23 589 * 4c637b2175a0dc Daniel Lezcano 2013-04-23 590 * @drv: a valid pointer to a struct cpuidle_driver 4c637b2175a0dc Daniel Lezcano 2013-04-23 591 */ 4c637b2175a0dc Daniel Lezcano 2013-04-23 592 void cpuidle_unregister(struct cpuidle_driver *drv) 4c637b2175a0dc Daniel Lezcano 2013-04-23 593 { 4c637b2175a0dc Daniel Lezcano 2013-04-23 594 int cpu; 4c637b2175a0dc Daniel Lezcano 2013-04-23 595 struct cpuidle_device *device; 4c637b2175a0dc Daniel Lezcano 2013-04-23 596 82467a5a885ddd Daniel Lezcano 2013-06-07 597 for_each_cpu(cpu, drv->cpumask) { 4c637b2175a0dc Daniel Lezcano 2013-04-23 @598 device = &per_cpu(cpuidle_dev, cpu); 4c637b2175a0dc Daniel Lezcano 2013-04-23 599 cpuidle_unregister_device(device); 4c637b2175a0dc Daniel Lezcano 2013-04-23 600 } 4c637b2175a0dc Daniel Lezcano 2013-04-23 601 4c637b2175a0dc Daniel Lezcano 2013-04-23 602 cpuidle_unregister_driver(drv); 4c637b2175a0dc Daniel Lezcano 2013-04-23 603 } 4c637b2175a0dc Daniel Lezcano 2013-04-23 604 EXPORT_SYMBOL_GPL(cpuidle_unregister); 4c637b2175a0dc Daniel Lezcano 2013-04-23 605 :::::: The code at line 598 was first introduced by commit :::::: 4c637b2175a0dc65d533494225525c6c82d73293 cpuidle: make a single register function for all :::::: TO: Daniel Lezcano :::::: CC: Rafael J. Wysocki --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org