Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1098005lqd; Thu, 25 Apr 2024 06:09:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXM0piP28ugikdOPaEVPR7gX5tVxJXTWC0ydCRizjrLZr46HbzuQBytnWEN42B56VDTWgdDxNUUp6h4sHWlSVDauQnRgAX5OzNdDRCRsA== X-Google-Smtp-Source: AGHT+IFnVYsuRG2i5OJMmzX1YmdjwjfrQqYP1aMvpvpPgrzYi7Wojs29go2hemohHAJGYP2zTED8 X-Received: by 2002:aa7:9298:0:b0:6f3:c10a:7bdd with SMTP id j24-20020aa79298000000b006f3c10a7bddmr3675194pfa.18.1714050540134; Thu, 25 Apr 2024 06:09:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714050540; cv=pass; d=google.com; s=arc-20160816; b=FQupZWHO8OAzi7l6Gbd09kwmvNT64kjvGYc/ufAlBeEfYnIfSGt1ZkGC9fA3CC5lHY EXMr0XKzxx8YLFI6LXe6/j2OId/nuJYcAnbnPaJrw0oDpl+uuSSQg79jZG+Z3kH6WpLS c+1lKMLwAaPP8/AyW0chvym8kpiBCaltFt4nS0h/nZhbQzn15NHnowLzD7mV+hcI80Hc 728CoL/5mveAM5hO7vVuJjEtvv1wxHUmFhltOBC3mjmsZYXimV5I0Po4p+6J1wj5BUbR DLdVfKyCZRzn4SsyCSt4Y6kg8RhrFdinmrr1UTyCytw82wE/FuJQlaVsUtEt9EcN08gX 8XDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=gFgvah0Z7lEItV+OU3CeVk3lBi0rW8X/KHv8wGIwscQ=; fh=GcpJazWh0JWtN7CwFXVurlJfLxPQJOh7uBPh9JumQJw=; b=s3te21zxytzLpGSPoG1lnSs+g+reV/5ggszZXF+IJwwjOCEV1nMg3th1EPPMNhZUWg GmE54ejR+Sg/+0GgzwxgkLGWtTOSUWBdc02OY8CoQxfMdmlLe7u6i/UTDll/70AY68Iv PofecYNXbdOeclNTrxt3bC10iOLBkq0iryHHQSR3kSJot6G1Bkw4ADbvAYmj861Vmqxj XP+ZabaWJ2yXMjGCe0Opm/VhCNb99EiUsR8UHRHF6Ap4tLYdc9Olvde6AcNrx7HtpI91 SafMMGyqEU8PaUDKSvb8Rf2QlbG2NQIfJgw5XBFbkTcY1HJlGaPqXW5cwkqhQlVCQsE2 8oeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-158561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id kr15-20020a056a004b4f00b006ed0bb89615si13638834pfb.99.2024.04.25.06.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:09:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-158561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 83E78B21488 for ; Thu, 25 Apr 2024 12:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E52B41494DE; Thu, 25 Apr 2024 12:56:00 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F4931494C7; Thu, 25 Apr 2024 12:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714049760; cv=none; b=OmovTqU7JEYRXXO89yzwGQfbrMzPAfa2urz+/7L8wHVrYLla0F9hM70NfeEoieR71QiiwB9tr3MxUgzvAh6ttncM6EOyyBkkTcSbEzaUumkkdoy7mesBZAzMqSdX9wCyVWCRV6X7i3dmHKXt0o/VoHuIYella8opp/YI6wm7cs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714049760; c=relaxed/simple; bh=Tzl6rkHXA7oS8wzOZdFnzW8k/tso7PW4qazbSuRNs0s=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=Qy4C0hOT+3pngCOQtqwRUg17/lxIZ2zZdC+psxQ2wSsQ8XGiYObDKC1dJx0IVVoQD5jii2daJMSc0/RO85yU/zDQvDe/dIfeFYkr0QrcOrRE7K+B3b3zt0PlAyTfGBJWqvIH5gSMGMZwdnhgaanZV+3VX7f9GdTlWu0R1wraW4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VQG3g560fz1R5r7; Thu, 25 Apr 2024 20:52:47 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id A5DEC140258; Thu, 25 Apr 2024 20:55:50 +0800 (CST) Received: from [10.67.121.110] (10.67.121.110) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 20:55:49 +0800 Subject: Re: [PATCH v5 4/5] hisi_acc_vfio_pci: register debugfs for hisilicon migration driver To: kernel test robot , , , , CC: , , , References: <20240424085721.12760-5-liulongfang@huawei.com> <202404251733.qOuGkmpU-lkp@intel.com> From: liulongfang Message-ID: Date: Thu, 25 Apr 2024 20:55:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <202404251733.qOuGkmpU-lkp@intel.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600005.china.huawei.com (7.193.23.191) On 2024/4/25 17:20, kernel test robot wrote: > Hi Longfang, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on awilliam-vfio/next] > [also build test ERROR on linus/master v6.9-rc5 next-20240424] > [cannot apply to awilliam-vfio/for-linus] > [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/Longfang-Liu/hisi_acc_vfio_pci-extract-public-functions-for-container_of/20240424-170806 > base: https://github.com/awilliam/linux-vfio.git next > patch link: https://lore.kernel.org/r/20240424085721.12760-5-liulongfang%40huawei.com > patch subject: [PATCH v5 4/5] hisi_acc_vfio_pci: register debugfs for hisilicon migration driver > config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20240425/202404251733.qOuGkmpU-lkp@intel.com/config) > compiler: loongarch64-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240425/202404251733.qOuGkmpU-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/202404251733.qOuGkmpU-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c: In function 'hisi_acc_vf_debug_cmd': >>> drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:1370:53: error: macro "dev_err" requires 3 arguments, but only 1 given > 1370 | dev_err("mailbox cmd channel state is OK!\n"); > | ^ > In file included from include/linux/device.h:15, > from drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:6: > include/linux/dev_printk.h:143: note: macro "dev_err" defined here > 143 | #define dev_err(dev, fmt, ...) \ > | >>> drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:1370:9: error: 'dev_err' undeclared (first use in this function); did you mean '_dev_err'? > 1370 | dev_err("mailbox cmd channel state is OK!\n"); > | ^~~~~~~ > | _dev_err > drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:1370:9: note: each undeclared identifier is reported only once for each function it appears in > > > vim +/dev_err +1370 drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c > > 1345 > 1346 static int hisi_acc_vf_debug_cmd(struct seq_file *seq, void *data) > 1347 { > 1348 struct device *vf_dev = seq->private; > 1349 struct vfio_pci_core_device *core_device = dev_get_drvdata(vf_dev); > 1350 struct vfio_device *vdev = &core_device->vdev; > 1351 struct hisi_acc_vf_core_device *hisi_acc_vdev = hisi_acc_get_vf_dev(vdev); > 1352 struct hisi_qm *vf_qm = &hisi_acc_vdev->vf_qm; > 1353 u64 value; > 1354 int ret; > 1355 > 1356 mutex_lock(&hisi_acc_vdev->enable_mutex); > 1357 ret = hisi_acc_vf_debug_check(seq, vdev); > 1358 if (ret) { > 1359 mutex_unlock(&hisi_acc_vdev->enable_mutex); > 1360 return ret; > 1361 } > 1362 > 1363 value = readl(vf_qm->io_base + QM_MB_CMD_SEND_BASE); > 1364 if (value == QM_MB_CMD_NOT_READY) { > 1365 mutex_unlock(&hisi_acc_vdev->enable_mutex); > 1366 dev_err(vf_dev, "mailbox cmd channel not ready!\n"); > 1367 return -EINVAL; > 1368 } > 1369 mutex_unlock(&hisi_acc_vdev->enable_mutex); >> 1370 dev_err("mailbox cmd channel state is OK!\n"); > 1371 > 1372 return 0; > 1373 } > 1374 > OK, I'll modify it soon. Thanks. Longfang.