Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2680001pxj; Mon, 31 May 2021 08:06:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuzO9DpsaKuSxzQ+NSUQLpiOIDdJpATI/EFtyqDNLpHF3rmZcFqetr1gjad58dwZsDOPew X-Received: by 2002:a17:906:340d:: with SMTP id c13mr10068236ejb.457.1622473597572; Mon, 31 May 2021 08:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473597; cv=none; d=google.com; s=arc-20160816; b=ZR2xjJEXmUMkcsrse/ZhJfkm72JrzWrZCEocgUl3+10kBAqsXypB4WueHBQJjKRsHP hb664jIUVcNV2Tn4DrJxnT3vqzmDIfVfMgEUPqKnB8GNWHc/GLv88dT142ynMw7Uqfu8 Xa5tdr0JfoeF/vcmIWB1uXnLkCetp5KA5gqieMAyMTWGEY2kEcVn8iPynZdNrrAIiy4O uN0+3put6NDjAJfJJv6Zx3B/T/o/MKp1lerYhl9fKJh22Z58P4paqzuNCPg0ROnBGiZR pTosH7nKkCODmX6s7QaxX2ft1WPeeHleEUgmYSZQaA8JEC0wx/GzA9p6RDFuR/jX9E77 /BhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XqofEsZyMAjjfBk70dKUBzg6whpX7LjxXb2Nj69kciI=; b=bAhFgnRhQtcxqGXcBdGd5gwpynS/W5QOh+mi8Wbzb4Tou7gsL8JrakgBthpRY+I0gB +xfM7FlDGOkdLO3bzAFc2y2fMMhs4CYxdDyIybUUMhzlWc8oCj48J1aMf2ZE+FecVB66 ZM4x3Z5b/CieaF1dFyvBoaV/aJt4iYMGmP3a5N5hUg1tSoQZe5Lr9szx0M+dnNu5axeO jDzFcgVADspS0jW2h7+3WP3OLSZuwQgwaMMsMklda8fYSYiDuqxDfPA4yhI/WZwn6+ra x069XMjIFw4aATxky3dsypPgqAqVqriUSjKMEuFjpos69rBsVmsHViKOZlNQv7vA+Dn2 dPkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LNbroJIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si10192608eds.6.2021.05.31.08.06.15; Mon, 31 May 2021 08:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LNbroJIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbhEaPFi (ORCPT + 99 others); Mon, 31 May 2021 11:05:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:40578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232846AbhEaOIB (ORCPT ); Mon, 31 May 2021 10:08:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 017376196A; Mon, 31 May 2021 13:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468383; bh=KV0Xdxu8Dkl/vXMKiCns9Jvm8GcHeLevV3LpsKI29eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LNbroJIFRUbWpgTPVE5PAr90MnsfxW6yOeJJ76IGB2J75/NrxyQX2+KJtQ8+ZX59Y 7KNpc2gNt6Iiqy+MjbwFAQfeuS6n8a7W/zpadXM/L2kw1NRTJENyNE/DctGNDytiud tFdANupt5HSyoNPvBemmqhkz0OJ3S6hxtWMXsOlE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Bixuan Cui , Jean-Philippe Brucker , Joerg Roedel , Sasha Levin Subject: [PATCH 5.10 221/252] iommu/virtio: Add missing MODULE_DEVICE_TABLE Date: Mon, 31 May 2021 15:14:46 +0200 Message-Id: <20210531130705.510570542@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bixuan Cui [ Upstream commit 382d91fc0f4f1b13f8a0dcbf7145f4f175b71a18 ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui Fixes: fa4afd78ea12 ("iommu/virtio: Build virtio-iommu as module") Reviewed-by: Jean-Philippe Brucker Link: https://lore.kernel.org/r/20210508031451.53493-1-cuibixuan@huawei.com Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- drivers/iommu/virtio-iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c index 2bfdd5734844..81dea4caf561 100644 --- a/drivers/iommu/virtio-iommu.c +++ b/drivers/iommu/virtio-iommu.c @@ -1138,6 +1138,7 @@ static struct virtio_device_id id_table[] = { { VIRTIO_ID_IOMMU, VIRTIO_DEV_ANY_ID }, { 0 }, }; +MODULE_DEVICE_TABLE(virtio, id_table); static struct virtio_driver virtio_iommu_drv = { .driver.name = KBUILD_MODNAME, -- 2.30.2