Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5838325rwb; Wed, 7 Sep 2022 08:39:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4k7ssnuhG+tqQlRWG/kLVuPSI4HLQkJqzgVxtkuwHjwY9Htefxg1QRE1VA+KtxeV4RrHnR X-Received: by 2002:a05:6a00:1a04:b0:52a:d4dc:5653 with SMTP id g4-20020a056a001a0400b0052ad4dc5653mr4383334pfv.69.1662565185051; Wed, 07 Sep 2022 08:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662565185; cv=none; d=google.com; s=arc-20160816; b=S07yEeBuh3+iTsj6DXMRxG0zqmqDLZ03XvSd/6ExB/yxFHoUmiL3KyE3by1S1z+/2c hHu2ZvlU5qI5Xy/iG3JYiiLd7OKP6u3L4c+v6a9+w1KZ1XGeKoQ1wYDpINj7hrEDwqaP WMGijEX16OsHUvau19IU/0RfjZFxdsne64EzABFMTg0+tVI9p2PD7iQSMps/+8925iBJ izVlmDdWmNVzwxEJR6lHzodzbaqK1eUpQ7YJPfoqngLZvpIIqikrrqWBlxBbaxVj415L mm95iicJSfj6n1p0m5Pwi6HdLKPh+Qpkdk7gH2kObx53gHoSR5imxbHW8Fi2DqaxI9nJ aEiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BHH6C0MUaJBB869uVqxXVXUx/Qb6hgtg09Hc0S0gRlE=; b=FR/bSG89jyUcQIgbFaPmq5FCWzDkmAY2Mq4ycIHbfiJJMtFrjKBXaHnvqmXcXtyU1O 9rIpk4+mP9ASdXByzc0wGeGGaFU0vepWp1vBjInYF4yhme8JAY4CitpDG7ZnPLc+UIKN ob5fPhUS2KJRJFUajMoanX2+zfFfq2LfaA5f05AI1JTbDMzKIEgWL6OFaNKPdXqc5Q7L LMHLHq2qfHkKny70Kl4RPRPTLYwH3GgpHt6Hfr3XP/0p0ABXUBTyan266W6wmUFoqMLO AhAuSPyAGTJmnoal+Ged8DxgCr3pJuGzf5yOAZQY1U72Uyu1lLttJSP7a2IHdjHHBJYn BvfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fmAVErYk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a056a0024d300b0053a8225dc47si19099642pfv.55.2022.09.07.08.39.33; Wed, 07 Sep 2022 08:39:45 -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=@linaro.org header.s=google header.b=fmAVErYk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiIGPhr (ORCPT + 99 others); Wed, 7 Sep 2022 11:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiIGPho (ORCPT ); Wed, 7 Sep 2022 11:37:44 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A900C81B37 for ; Wed, 7 Sep 2022 08:37:43 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id bg5-20020a05600c3c8500b003a7b6ae4eb2so879890wmb.4 for ; Wed, 07 Sep 2022 08:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=BHH6C0MUaJBB869uVqxXVXUx/Qb6hgtg09Hc0S0gRlE=; b=fmAVErYkQX071cLsx9F39Ti7u+NaH5nA5kS00lXR3MVqHtL3FNz2nmH5D2zNicV8hT aNhwWld4iVLs0KfgwZIcoU32p1cykSzWtx++QDNPPf0An7+3XSkHReXHGjVNLzA2FFmV YCKMsex/6UCYEjBoh4S9ib3j0aDc7XiZWTvBkDhyvsipuEGKZZxxAM4VnDuENETHESut 3GvAnFflx9mRUa8RhybiY2oWRlBwHMAv2/1v/qerdDLYvNtlnU0JVIaf1QgSjpQfGnX/ lFq8AGck95Jh5He4NNsC7zI9N8p2wW4XoFUPM8DxwGR1dT+q+sWczy50nNML1ydpZEz4 RIxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=BHH6C0MUaJBB869uVqxXVXUx/Qb6hgtg09Hc0S0gRlE=; b=n1WyK/cwy/TYOnIgBgSjXiLdEyMTKnrONrq4ty5wbKLJTiNBtz+cHFxyGb9O5ixXT2 UbBfOMw0vbX8FDrRVDNMHt6T0ZRb3nZWU/d+m0E+EFRVGbCzgV0Wn5amuADWCi953Ur9 IhZx0/QJGyCW/+gyG3pNzGRZrJVBi2QcSsOXXB+b1PFmsC2ixo1UOkhNDrITGJ627vU3 hMyKD4fS+uWPlEZJ9nuLKIvwXGrVhMksd3uYz+NJ47j9pLmXpEKHsoiohCOZAnlcmQO9 VMsQ8pj0ysMhw6+4OmR2m9BIk+G7Peo0LUFG/ZZVks5MeN7iNqWKn9sjQuAUzOsoHRvv /gtQ== X-Gm-Message-State: ACgBeo3OmBRkXoPqi5O6QPLxJGiVkIzFfERqo4jQzgM30e8TTmZ+jWZQ 7IggqkZYeTMLRAH8ASnN0AH63wvrgpD/aV3F X-Received: by 2002:a05:600c:2f88:b0:3a5:4014:4b47 with SMTP id t8-20020a05600c2f8800b003a540144b47mr16977056wmn.96.1662565062164; Wed, 07 Sep 2022 08:37:42 -0700 (PDT) Received: from myrica (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id bp6-20020a5d5a86000000b00228692033dcsm13011401wrb.91.2022.09.07.08.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 08:37:41 -0700 (PDT) Date: Wed, 7 Sep 2022 16:37:37 +0100 From: Jean-Philippe Brucker To: Joerg Roedel Cc: iommu@lists.linux.dev, Will Deacon , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Joerg Roedel , Robin Murphy Subject: Re: [PATCH] iommu/virtio: Fix compile error with viommu_capable() Message-ID: References: <20220907151154.21911-1-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220907151154.21911-1-joro@8bytes.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Wed, Sep 07, 2022 at 05:11:54PM +0200, Joerg Roedel wrote: > 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 Reviewed-by: Jean-Philippe Brucker > --- > 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 >