Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5821144rwb; Wed, 7 Sep 2022 08:26:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR5jlcLf9T8WozlIxBPhiOwHIlgk4xjCCXphGj/TfjdoUJxeHKkK562cCFCgBfRbgAK84ukS X-Received: by 2002:a17:903:41c8:b0:177:e7e1:4f4f with SMTP id u8-20020a17090341c800b00177e7e14f4fmr1352149ple.61.1662564368856; Wed, 07 Sep 2022 08:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662564368; cv=none; d=google.com; s=arc-20160816; b=qHW3/L8y4Mmbz5owQ6VUC30BWSQ8mE7Dpxef4HRLgaUSI57sta/fqZaUZYvrb1B1Es Ph+U6KyRCiFhar3EeuAyCxCtnnKsxepnBKAzTpCG9QLCkVc8wSTTTn92h3PbQJX3FLcA bRBRfSiXJiy5mj2kVUyQARBd+UWsZr8MU3MsqoqivQa24B5rICaMGI9KRfHiZL1FXypX xMQZgWJm8vIlFpE3pXlmIMF094ca0ZAPJxWzOxUPaWbNU34U3lXTpwtHABfiaWvr9ZVJ dqoJLUZCQieZexHJ3UbHmoMk6LKAat8p25oO8F3e+Uw15WGaBLTcLOgxoMEkfT+GL/qP T3pQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7Af2JohbuOd1qyU0heCxhuZheeXKaw6qVAkzHUrgZO8=; b=WsaoJ/gMwDdJSbG7PfJnnvwmV095H0C7WNaM3m1ckXS34ltGtiKSO6RB5BwxJvqrb6 dnWAlJZeRD51gcH4DiH6//luumOuf2InSG32Ywy7Q6HM0xpuymXNvBN3JW3xTc7TJ5xG TXfh6i4959JBWw9Xd4z1e7jplwf/4Bc7/IXaeOW9MCnVJu3qSY5PoN5ECkCbjEQXqQgs 9OwTiE31sFAvZ1UviSXFr/s3uBmt/3AEMrfz3N72xO0h0kcjCb+l0wm7Oldf9BIl/i32 c/k/QplBFsKX5PqBBtO3ShGZ7prULURZcT2t76RVW/+z/be5jNr8AVBaLARLl+tZNAEO ltYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=tSBsAA5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a170902854700b00176934d4f3dsi10853126plo.468.2022.09.07.08.25.56; Wed, 07 Sep 2022 08:26:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=tSBsAA5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbiIGPMA (ORCPT + 99 others); Wed, 7 Sep 2022 11:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiIGPL6 (ORCPT ); Wed, 7 Sep 2022 11:11:58 -0400 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA1565722E for ; Wed, 7 Sep 2022 08:11:56 -0700 (PDT) Received: from lemmy.home.8bytes.org (p4ff2bb62.dip0.t-ipconnect.de [79.242.187.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 8C935240A3E; Wed, 7 Sep 2022 17:11:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1662563515; bh=KmpFpEz/lyHaEET/ThZz16jqJhRrdPrH8I/CQGSh0EE=; h=From:To:Cc:Subject:Date:From; b=tSBsAA5F/euIUSUVa3hW4mgnDwG/+G9aXFKoTqf1dBUwtIs661DrL6++eaMjQNMkY z1K4YABe5aQDz/W4H6ig14SVS+b8dK3JaieCO+WCx3/Jw9Q30GyOdroe1skonkJSqh w6Qi9vAdbQmMoTyxNBKDhu4ydZYitsJajoSX/ljQ3FkXR+vdyYDvCqC1c/iEP3uMbe b5iBKOFA+Eezm0z6Kcn49MKBCT8SuUx6kjhfEqXb223k1q7oGsIBacGIIwhIPwD7hT GFquWshAK15inEjOsUHUncIw7LiIT/pw1ythPAVGsEkd7IKBhT7bzDViCWSMJ5A4Q3 w5TIWNwYAr8Xw== From: Joerg Roedel To: Joerg Roedel , iommu@lists.linux.dev Cc: Will Deacon , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Joerg Roedel , Jean-Philippe Brucker , Robin Murphy Subject: [PATCH] iommu/virtio: Fix compile error with viommu_capable() Date: Wed, 7 Sep 2022 17:11:54 +0200 Message-Id: <20220907151154.21911-1-joro@8bytes.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel A recent fix introduced viommu_capable() but other changes from Robin change the function signature of the call-back it is used for. When both changes are merged a compile error will happen because the function pointer types mismatch. Fix that by updating the viommu_capable() signature after the merge. Cc: Jean-Philippe Brucker Cc: Robin Murphy Signed-off-by: Joerg Roedel --- drivers/iommu/virtio-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c index da463db9f12a..1b12825e2df1 100644 --- a/drivers/iommu/virtio-iommu.c +++ b/drivers/iommu/virtio-iommu.c @@ -1005,7 +1005,7 @@ static int viommu_of_xlate(struct device *dev, struct of_phandle_args *args) return iommu_fwspec_add_ids(dev, args->args, 1); } -static bool viommu_capable(enum iommu_cap cap) +static bool viommu_capable(struct device *dev, enum iommu_cap cap) { switch (cap) { case IOMMU_CAP_CACHE_COHERENCY: -- 2.36.1