Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4392199rdb; Fri, 15 Sep 2023 00:05:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFaJK6RHfFAsSfRqG03mKnNUKjY5u2jw4vctNKWdxuZUbIUyynip4KLKH+K4mhYHwcV8G2 X-Received: by 2002:a17:90a:5990:b0:273:dfb1:2439 with SMTP id l16-20020a17090a599000b00273dfb12439mr5434113pji.21.1694761546904; Fri, 15 Sep 2023 00:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694761546; cv=none; d=google.com; s=arc-20160816; b=zfdsNTV9ZHDwsS/FjdgD7Gmd3bdLXK1K07UFMzbl2+hr09p2yYyOtOzgNMU0z8MaHy 96SwVywWgVUEyZavuQJSn7vdlnGTZOf6Gdhm2QWdXqk0Uv7RGcyAu4emtUSHZrSfZ92+ QuP1xFsOdd+5j5JBNqa574T/zIlbzZr1SDPnOMx3TGx6D68jWe2UvexgGuG0x9LaXRH9 V7Ap5GAuiTq/YSlhwpvhgbFZjOUicJmmruAaqvB419/bXbL3sbzp2bO2ri/MZJIMXoQR pRNfEWIpotDkdICKzwO+4qKL1pzCfRAabFC4nlrrAACnQcs8eTbrugenBmzPeuzJobRN 1PjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=HSYeeYb+EDcpLxhzeIV1b0hg6nQEbnQkhiEZ1E/8Xs8=; fh=/45hZaPxtOx1YE2ZgwRZsEJKy18mBVik8AH/AVinyoE=; b=KSP2pUkQ4ekrbmJHAxuhnwpoHavcsDKawBfrLlYAFhr0P8AhjOnPeDBTIc82EIvg7J dP/IbYSlTQo1SfOz5tLglv9c4HFLCUj9RQrGfB7xofqyPvMzf6GvdPCCXQhrxrwUo2I3 3vjWKDHzz+Icp8y1Eo3kUAzZRVc3G6qJvXFXT5Hk6QZ6FKn2GPImOBFeXJj6dGuFZzpN tjSbw3RtU1XpCrXwabT5qdYLgwR65Oq4VozedHOGPOqUru/pZuA3NB1/+4b/DzIlBzmz yJTV0GUHK9ku6v3YJSd82gUnJ3ebbQXg8iRvYKa0Fxc1XdUeNT+ns6NiaRP8V8pOwSlA FS/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ijKagMNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id oc16-20020a17090b1c1000b0026824d6cb0fsi5491035pjb.164.2023.09.15.00.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 00:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ijKagMNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2E375831E29C; Thu, 14 Sep 2023 17:27:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbjIOA1N (ORCPT + 99 others); Thu, 14 Sep 2023 20:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbjIOA1L (ORCPT ); Thu, 14 Sep 2023 20:27:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B91A5269D for ; Thu, 14 Sep 2023 17:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694737627; x=1726273627; h=date:from:to:cc:subject:message-id:mime-version; bh=NfawGZ/wOoTAAqH0D5cMeL8UCV11W9FTI2gsyatgKMQ=; b=ijKagMNcSvvbRQxn0wMWBmw9YIJy6hiuFZqlcx2upCf+AykZpGVrEmvi ln9TdCpkIULyUZViKjZtZLpQ+XP5yzrS/bNGk0nXz39Gs+Hh8P8rimDRI 715f6joNROiMndnFXc//gTHhKOZh8pICkbelgEAeM+9zRWYNvzhWyZOUe sd4+OLOI1ZfUUUVkkOslyE5Oe3EpyXt5Zk7AmETLup/nWAPsvZbNZLyUu tKR9wqFqLVIhC0nT6ynp3m/vd8Ss1/6ENXNchg0tX+XVfayxh4tHLiaYJ FJnvAMTTJNLwUCkRi8RKO6+Cb9XCGtbyVO65RUpprDmHfGWjarylzfxL7 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="369432936" X-IronPort-AV: E=Sophos;i="6.02,147,1688454000"; d="scan'208";a="369432936" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2023 17:27:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="744754672" X-IronPort-AV: E=Sophos;i="6.02,147,1688454000"; d="scan'208";a="744754672" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 14 Sep 2023 17:27:05 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qgwfl-0002Cz-0n; Fri, 15 Sep 2023 00:27:01 +0000 Date: Fri, 15 Sep 2023 08:26:43 +0800 From: kernel test robot To: Lucas Tanure Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Lee Jones , Pierre-Louis Bossart , Charles Keepax Subject: drivers/soundwire/bus_type.c:126:30: error: implicit declaration of function 'irq_create_mapping'; did you mean 'irq_dispose_mapping'? Message-ID: <202309150820.6zuErL12-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 17:27:15 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9fdfb15a3dbf818e06be514f4abbfc071004cbe7 commit: 12a95123bfe1dd1a6020a35f5e67a560591bb02a soundwire: bus: Allow SoundWire peripherals to register IRQ handlers date: 4 weeks ago config: s390-randconfig-r031-20220110 (https://download.01.org/0day-ci/archive/20230915/202309150820.6zuErL12-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230915/202309150820.6zuErL12-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/202309150820.6zuErL12-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/soundwire/bus_type.c: In function 'sdw_drv_probe': >> drivers/soundwire/bus_type.c:126:30: error: implicit declaration of function 'irq_create_mapping'; did you mean 'irq_dispose_mapping'? [-Werror=implicit-function-declaration] 126 | slave->irq = irq_create_mapping(slave->bus->domain, slave->dev_num); | ^~~~~~~~~~~~~~~~~~ | irq_dispose_mapping drivers/soundwire/bus_type.c: In function 'sdw_drv_remove': >> drivers/soundwire/bus_type.c:179:37: error: implicit declaration of function 'irq_find_mapping'; did you mean 'irq_dispose_mapping'? [-Werror=implicit-function-declaration] 179 | irq_dispose_mapping(irq_find_mapping(slave->bus->domain, | ^~~~~~~~~~~~~~~~ | irq_dispose_mapping cc1: some warnings being treated as errors -- drivers/soundwire/bus.c: In function 'sdw_bus_master_add': >> drivers/soundwire/bus.c:173:23: error: implicit declaration of function 'irq_domain_create_linear' [-Werror=implicit-function-declaration] 173 | bus->domain = irq_domain_create_linear(fwnode, SDW_MAX_DEVICES, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/soundwire/bus.c:173:21: warning: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 173 | bus->domain = irq_domain_create_linear(fwnode, SDW_MAX_DEVICES, | ^ drivers/soundwire/bus.c: In function 'sdw_bus_master_delete': >> drivers/soundwire/bus.c:217:9: error: implicit declaration of function 'irq_domain_remove' [-Werror=implicit-function-declaration] 217 | irq_domain_remove(bus->domain); | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +126 drivers/soundwire/bus_type.c 79 80 static int sdw_drv_probe(struct device *dev) 81 { 82 struct sdw_slave *slave = dev_to_sdw_dev(dev); 83 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); 84 const struct sdw_device_id *id; 85 const char *name; 86 int ret; 87 88 /* 89 * fw description is mandatory to bind 90 */ 91 if (!dev->fwnode) 92 return -ENODEV; 93 94 if (!IS_ENABLED(CONFIG_ACPI) && !dev->of_node) 95 return -ENODEV; 96 97 id = sdw_get_device_id(slave, drv); 98 if (!id) 99 return -ENODEV; 100 101 /* 102 * attach to power domain but don't turn on (last arg) 103 */ 104 ret = dev_pm_domain_attach(dev, false); 105 if (ret) 106 return ret; 107 108 ret = drv->probe(slave, id); 109 if (ret) { 110 name = drv->name; 111 if (!name) 112 name = drv->driver.name; 113 114 dev_err(dev, "Probe of %s failed: %d\n", name, ret); 115 dev_pm_domain_detach(dev, false); 116 return ret; 117 } 118 119 mutex_lock(&slave->sdw_dev_lock); 120 121 /* device is probed so let's read the properties now */ 122 if (drv->ops && drv->ops->read_prop) 123 drv->ops->read_prop(slave); 124 125 if (slave->prop.use_domain_irq) { > 126 slave->irq = irq_create_mapping(slave->bus->domain, slave->dev_num); 127 if (!slave->irq) 128 dev_warn(dev, "Failed to map IRQ\n"); 129 } 130 131 /* init the sysfs as we have properties now */ 132 ret = sdw_slave_sysfs_init(slave); 133 if (ret < 0) 134 dev_warn(dev, "Slave sysfs init failed:%d\n", ret); 135 136 /* 137 * Check for valid clk_stop_timeout, use DisCo worst case value of 138 * 300ms 139 * 140 * TODO: check the timeouts and driver removal case 141 */ 142 if (slave->prop.clk_stop_timeout == 0) 143 slave->prop.clk_stop_timeout = 300; 144 145 slave->bus->clk_stop_timeout = max_t(u32, slave->bus->clk_stop_timeout, 146 slave->prop.clk_stop_timeout); 147 148 slave->probed = true; 149 150 /* 151 * if the probe happened after the bus was started, notify the codec driver 152 * of the current hardware status to e.g. start the initialization. 153 * Errors are only logged as warnings to avoid failing the probe. 154 */ 155 if (drv->ops && drv->ops->update_status) { 156 ret = drv->ops->update_status(slave, slave->status); 157 if (ret < 0) 158 dev_warn(dev, "%s: update_status failed with status %d\n", __func__, ret); 159 } 160 161 mutex_unlock(&slave->sdw_dev_lock); 162 163 dev_dbg(dev, "probe complete\n"); 164 165 return 0; 166 } 167 168 static int sdw_drv_remove(struct device *dev) 169 { 170 struct sdw_slave *slave = dev_to_sdw_dev(dev); 171 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); 172 int ret = 0; 173 174 mutex_lock(&slave->sdw_dev_lock); 175 176 slave->probed = false; 177 178 if (slave->prop.use_domain_irq) > 179 irq_dispose_mapping(irq_find_mapping(slave->bus->domain, 180 slave->dev_num)); 181 182 mutex_unlock(&slave->sdw_dev_lock); 183 184 if (drv->remove) 185 ret = drv->remove(slave); 186 187 dev_pm_domain_detach(dev, false); 188 189 return ret; 190 } 191 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki