Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5915449rwb; Wed, 7 Sep 2022 09:45:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR7oYNkthVHIciSh3w//xMdiE0x7tDTw/3zqsBk8RD0+Z2Oo1/eoGaidRJXJ/klWytlW1pgI X-Received: by 2002:aa7:d0c7:0:b0:44d:f0ed:75b8 with SMTP id u7-20020aa7d0c7000000b0044df0ed75b8mr3727688edo.50.1662569146925; Wed, 07 Sep 2022 09:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662569146; cv=none; d=google.com; s=arc-20160816; b=Oom4jFO8bz9ed9x13jxT2kYQ2xNuAn3G4PhwW5K9csAfGPFliEytY/MabRoHXBvKYS HAoYuMe1R7sI4LvNmGixfukp8dEW8ZVLGpNzEWZfm93BqpmMj8Bs7O75+CLlET6pdDgS BKb8cdlBCwZfoQ3Dp02u+bp/IjdU+dziEqY3uBnoO9z4mZSObVyOdvOwhWkD5t4B50sj Riw0mtrIji1vj91IvOrIxmc5OlQc+Psv0wneKLVnDsI1vjUYPEVsnrM9VAUi4ywVmfTT 4T4/kBo2TEORrmFNK0PjXRtYAAUTnNjVdy07jqcNLdLkqO0IUmoY5oWkiB5xKCm8o4TR sXRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=i80bPllmPc1ZfSEV7u4arcU7h/geQfvf2X3eXIAYcL8=; b=BGdcyaCZLYaCjff8Xgmvk04BJYOO8kGdApsMJ3RzAyxadZGebAN4KOc6zen4ismKLv WWTM3Qh3x8o6pGTBDcoABOdwboZ/K3NSx7X2SK6qdrFnwFHNZM8D5571Z7fF49+mCOU9 yTsCYmbcxnmzA2/h709NH+w/hCDbzrNQFtOtD0rsshIFjiHEJHMeoGX9F4/mKlsxblJt 19Lq5LcR8c/f3XcWuR/rkpLXPecbXZHKVMKyIRhIsLPTplZaK10fTWWr6qw9eN02WvOC D+7688I3nnSwsz9e837tHmRuhziJDm7IK1YdLZUA8BL0kRXGbyOMz7141REYeAfnltwH 5RIg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd19-20020a170907629300b00769d94690fesi8096787ejc.326.2022.09.07.09.45.21; Wed, 07 Sep 2022 09:45:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230128AbiIGQBa (ORCPT + 99 others); Wed, 7 Sep 2022 12:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbiIGQAj (ORCPT ); Wed, 7 Sep 2022 12:00:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 298D631213 for ; Wed, 7 Sep 2022 09:00:08 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8BA77106F; Wed, 7 Sep 2022 09:00:11 -0700 (PDT) Received: from [10.57.15.197] (unknown [10.57.15.197]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC7603F71A; Wed, 7 Sep 2022 09:00:03 -0700 (PDT) Message-ID: <51e9861b-38c0-0f22-385f-d4b57106d57b@arm.com> Date: Wed, 7 Sep 2022 16:59:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] iommu/virtio: Fix compile error with viommu_capable() Content-Language: en-GB 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 References: <20220907151154.21911-1-joro@8bytes.org> From: Robin Murphy In-Reply-To: <20220907151154.21911-1-joro@8bytes.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 2022-09-07 16:11, 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. I thought I'd called out somewhere that this was going to be a conflict, but apparently not, sorry about that. Acked-by: Robin Murphy Lemme spin a patch for the outstanding LKP warning on the bus series before that gets annoying too... > 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: