From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gnuweeb.org (Postfix) with ESMTPS id EA73E804A1 for ; Wed, 20 Jul 2022 13:34:46 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=XzWEpBvK; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658324086; x=1689860086; h=date:from:to:cc:subject:message-id:mime-version; bh=B02Zav9Xr/9mknFc8qa5B27KAhbUBBsOhocBaP+iy2w=; b=XzWEpBvKftBB33JNp1JyJtMjCrMVAdFMEXEsUXqqf1uzr7m2iL7sKxpE 2TyG7UCPkuIZ+jPP533cwpiXzj+wl6tjcubU7q3idDXk/rc7x6ioBRWBt JudP4RdHLx3naP28XlawlA/zoUbPrBrAIGjTxBjyCKbz5aMMYd47VOM3G Ee4aSfnYs4H69zmIgexxymOWtluudONNrIlLrAtNriPmhDBcwsH2Pm68E Ndlp3rVXXj+3z5XN53tDZ4AQRxvF/9KjgxZdBMm63wKHuv8gg45ELICAl YEUERrG5/uPEWgHAd/oQ2YJwcIubPhlxMkaLtpty7DzpXYh2ayEtwyo5q A==; X-IronPort-AV: E=McAfee;i="6400,9594,10414"; a="286787474" X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="286787474" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 06:34:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="925231360" Received: from lkp-server01.sh.intel.com (HELO 7dfbdc7c7900) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 20 Jul 2022 06:34:44 -0700 Received: from kbuild by 7dfbdc7c7900 with local (Exim 4.95) (envelope-from ) id 1oE9qd-0000Y1-Rh; Wed, 20 Jul 2022 13:34:43 +0000 Date: Wed, 20 Jul 2022 21:34:27 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 1120/9999] sound/soc/hisilicon/hi3660-i2s.c:377:22: error: implicit declaration of function 'devm_pinctrl_get'; did you mean 'of_pinctrl_get'? Message-ID: <202207202130.gMzXr8Xv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2021-12 head: dbbb7b2f16b9fa3c706fe5b8c234431b97108bec commit: b4b11198edb99eb17a4d032c3a80854d3a817b0d [1120/9999] ANDROID: sound: Add hikey960 i2s audio driver config: arm-randconfig-c042-20220720 (https://download.01.org/0day-ci/archive/20220720/202207202130.gMzXr8Xv-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0 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 # https://github.com/ammarfaizi2/linux-block/commit/b4b11198edb99eb17a4d032c3a80854d3a817b0d git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10-2021-12 git checkout b4b11198edb99eb17a4d032c3a80854d3a817b0d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash sound/soc/hisilicon/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): sound/soc/hisilicon/hi3660-i2s.c: In function 'hi3660_i2s_probe': >> sound/soc/hisilicon/hi3660-i2s.c:377:22: error: implicit declaration of function 'devm_pinctrl_get'; did you mean 'of_pinctrl_get'? [-Werror=implicit-function-declaration] 377 | i2s->pctrl = devm_pinctrl_get(dev); | ^~~~~~~~~~~~~~~~ | of_pinctrl_get >> sound/soc/hisilicon/hi3660-i2s.c:377:20: warning: assignment to 'struct pinctrl *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 377 | i2s->pctrl = devm_pinctrl_get(dev); | ^ >> sound/soc/hisilicon/hi3660-i2s.c:384:28: error: implicit declaration of function 'pinctrl_lookup_state' [-Werror=implicit-function-declaration] 384 | i2s->pin_default = pinctrl_lookup_state(i2s->pctrl, | ^~~~~~~~~~~~~~~~~~~~ >> sound/soc/hisilicon/hi3660-i2s.c:384:26: warning: assignment to 'struct pinctrl_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 384 | i2s->pin_default = pinctrl_lookup_state(i2s->pctrl, | ^ >> sound/soc/hisilicon/hi3660-i2s.c:394:13: error: implicit declaration of function 'pinctrl_select_state' [-Werror=implicit-function-declaration] 394 | if (pinctrl_select_state(i2s->pctrl, i2s->pin_default)) { | ^~~~~~~~~~~~~~~~~~~~ sound/soc/hisilicon/hi3660-i2s.c: In function 'hi3660_i2s_remove': >> sound/soc/hisilicon/hi3660-i2s.c:422:9: error: implicit declaration of function 'pinctrl_put'; did you mean 'of_pinctrl_get'? [-Werror=implicit-function-declaration] 422 | pinctrl_put(i2s->pctrl); | ^~~~~~~~~~~ | of_pinctrl_get cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for USB_PHY Depends on USB_SUPPORT Selected by - GKI_HIDDEN_USB_CONFIGS WARNING: unmet direct dependencies detected for WEXT_SPY Depends on NET && WIRELESS Selected by - GKI_LEGACY_WEXT_ALLCONFIG WARNING: unmet direct dependencies detected for WIRELESS_EXT Depends on NET && WIRELESS Selected by - GKI_LEGACY_WEXT_ALLCONFIG WARNING: unmet direct dependencies detected for WEXT_CORE Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT Selected by - GKI_LEGACY_WEXT_ALLCONFIG WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY Depends on NET Selected by - GKI_HIDDEN_NET_CONFIGS WARNING: unmet direct dependencies detected for HVC_DRIVER Depends on TTY Selected by - GKI_HIDDEN_VIRTUAL_CONFIGS WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND Depends on ARCH_SUSPEND_POSSIBLE Selected by - ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 WARNING: unmet direct dependencies detected for WEXT_PROC Depends on NET && WIRELESS && PROC_FS && WEXT_CORE Selected by - GKI_LEGACY_WEXT_ALLCONFIG WARNING: unmet direct dependencies detected for WEXT_PRIV Depends on NET && WIRELESS Selected by - GKI_LEGACY_WEXT_ALLCONFIG WARNING: unmet direct dependencies detected for PAGE_POOL Depends on NET Selected by - GKI_HIDDEN_NET_CONFIGS vim +377 sound/soc/hisilicon/hi3660-i2s.c 332 333 static int hi3660_i2s_probe(struct platform_device *pdev) 334 { 335 struct device *dev = &pdev->dev; 336 struct hi3660_i2s *i2s; 337 struct resource *res; 338 int ret; 339 340 i2s = devm_kzalloc(dev, sizeof(*i2s), GFP_KERNEL); 341 if (!i2s) 342 return -ENOMEM; 343 344 i2s->dev = dev; 345 spin_lock_init(&i2s->lock); 346 347 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 348 if (!res) { 349 ret = -ENODEV; 350 return ret; 351 } 352 i2s->base_phys = (phys_addr_t)res->start; 353 354 i2s->dai = dai_init; 355 dev_set_drvdata(&pdev->dev, i2s); 356 357 i2s->base = devm_ioremap_resource(dev, res); 358 if (IS_ERR(i2s->base)) { 359 dev_err(&pdev->dev, "ioremap failed\n"); 360 ret = PTR_ERR(i2s->base); 361 return ret; 362 } 363 364 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 365 if (!res) { 366 ret = -ENODEV; 367 return ret; 368 } 369 i2s->base_syscon = devm_ioremap(dev, res->start, resource_size(res)); 370 if (IS_ERR(i2s->base_syscon)) { 371 dev_err(&pdev->dev, "ioremap failed\n"); 372 ret = PTR_ERR(i2s->base_syscon); 373 return ret; 374 } 375 376 /* i2s iomux config */ > 377 i2s->pctrl = devm_pinctrl_get(dev); 378 if (IS_ERR(i2s->pctrl)) { 379 dev_err(dev, "could not get pinctrl\n"); 380 ret = -EIO; 381 return ret; 382 } 383 > 384 i2s->pin_default = pinctrl_lookup_state(i2s->pctrl, 385 PINCTRL_STATE_DEFAULT); 386 if (IS_ERR(i2s->pin_default)) { 387 dev_err(dev, 388 "could not get default state (%li)\n", 389 PTR_ERR(i2s->pin_default)); 390 ret = -EIO; 391 return ret; 392 } 393 > 394 if (pinctrl_select_state(i2s->pctrl, i2s->pin_default)) { 395 dev_err(dev, "could not set pins to default state\n"); 396 ret = -EIO; 397 return ret; 398 } 399 400 ret = devm_snd_dmaengine_pcm_register(&pdev->dev, 401 &dmaengine_pcm_config, 0); 402 if (ret) 403 return ret; 404 405 ret = snd_soc_register_component(&pdev->dev, &component_driver, 406 &i2s->dai, 1); 407 if (ret) { 408 dev_err(&pdev->dev, "Failed to register dai\n"); 409 return ret; 410 } 411 412 return 0; 413 } 414 415 static int hi3660_i2s_remove(struct platform_device *pdev) 416 { 417 struct hi3660_i2s *i2s = dev_get_drvdata(&pdev->dev); 418 419 snd_soc_unregister_component(&pdev->dev); 420 dev_set_drvdata(&pdev->dev, NULL); 421 > 422 pinctrl_put(i2s->pctrl); 423 424 return 0; 425 } 426 -- 0-DAY CI Kernel Test Service https://01.org/lkp