Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1001625pxm; Wed, 23 Feb 2022 15:38:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhIb7Jvdn2GZnCtZ1bTdPC9MVlVSozCZLqeRq6NXza9Xz59ePnk6WRr+xRP6Nnl6FN6rDh X-Received: by 2002:a17:90a:9f48:b0:1bc:3064:7567 with SMTP id q8-20020a17090a9f4800b001bc30647567mr8379pjv.53.1645659511839; Wed, 23 Feb 2022 15:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645659511; cv=none; d=google.com; s=arc-20160816; b=QpwKt+Zmcooyj+6p5dlr1jrEwozW8ZCodCndIakKN0GXWrZt7RA1OvAMKiJmGLDavD 9R/CnKjsDgDg2+V81IWHIMK+9l0lAv8VaE8teBFzfIroFmi97jI0+87IkrhIFOusXWnu l1cAqX+wCkHCrW3WtJny2oZntf1Tbx5W+CTixeiI0+M5VyNe0Mev+gJgmQiVyxWK2fm6 KuCMrNRfvOGKw2hSmKRmUw5wBtH4NWxnATzpeh2qG2EoyyAhOc+N5+PnN0SNaNwbxx0Q a1oKuV842F6dP2YL4gBH1y6I5SjIZo5+xePvBairvZH6bmNdgfU8xEi6adjn5mu5+i0M w2zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Fy0MJJJI2gB4ymq6roYJN6kjAzccxttzL2stNrD8v6Y=; b=zfNzOey5lV6OFPwa1zkVXgON9eWddD6cJLQjgudbtD0Gt5Nj5gWfdzzaVBN2emkmCl Nj16Hh2LB6uIQGBih1WU6k2z8vW4elwWka/1cmhXoX6HWMCfGcSlcIxD38FMr0paRCpV TWFbmnItwcXM4O31CS0K+Ex8u3thZv7ZdaNVBNZL9FIA9KUaU/3Z/Tr3Je6B90QSiQT5 uHLwgf2Puk94pSJW1vAvkpNynaPh7ZrXnAK8uRURQ2Db6izADWM1Rc1kduk0F7fhkwpO bQHPM+ewqAmtnBL/Rt9JwkAaVN15DoL+ci5LneDXEoaD/27rG0VP/G7Lzk1EaJ/s+8EF yCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=q+siJwh1; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4si904976pgl.687.2022.02.23.15.38.15; Wed, 23 Feb 2022 15:38:31 -0800 (PST) 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=@google.com header.s=20210112 header.b=q+siJwh1; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243666AbiBWWXw (ORCPT + 99 others); Wed, 23 Feb 2022 17:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243412AbiBWWXv (ORCPT ); Wed, 23 Feb 2022 17:23:51 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB34A3BFBA for ; Wed, 23 Feb 2022 14:23:22 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id x15so157489wrg.8 for ; Wed, 23 Feb 2022 14:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fy0MJJJI2gB4ymq6roYJN6kjAzccxttzL2stNrD8v6Y=; b=q+siJwh1ClLPC329FhiZBRM/m1SdJmWASDiwDzeM2hdV49NiAohHJV382Bkumyw60k 9Bk/UJzwAlELq6ogiBk5CRY+u0dekRGvG4jSQTAGdlW0AcV1L4ozPVTc46T/gDvBH0GS Fh5hPswPyIBfNE4o7n6k2g+Ewo8cD2q1hjp9bC+lBjcycuqvXCUmNk0GLPSSBnGIa9YN XxD2JTpuz2aewJJOOzZCMelJLkAnrmoMFpKtwXv1pwHel3Z1uwyQmOcC4C267uPl7vIT nXRXRj6DUo1NlyXEpmlu+U+DelDNvF/yZNefMQGOp+25cE79/lCldftG82ueqaAsIqix 11/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fy0MJJJI2gB4ymq6roYJN6kjAzccxttzL2stNrD8v6Y=; b=sIfh+CnKQILzrXPuF7V9YVEOYU9r/r/WqVNJ5wSDEhGKNT0rxF6DvUUAL+Iqmwinoh XkrKmktDJ/fQ9VwKpxUN2QmsxoIJn+wlqi1qjMIiWLQFm359MuwN6xGq/Gw/EHhtoFfm 037ONDj270c/81EcB4J4hsnqcxPpr48YPMNP0jzlz84LuTQd0jnunevFB9xgLUsnavSW 1MbDfzrY4gyTR/BVXh1X5LrmtYmOQl8Y7nh/HgWBe5Nu8FQCS7arsNK/ifWmxF1gI7Cb jbgEjT5uip7ga4kxw6Hb5vHn49GmPelSSZJHI5VDy/Rt4RrOeBjc/2AyuA7S5KeyicDM ujVA== X-Gm-Message-State: AOAM531cdkgDpQl67JvLmia4eEBkINufDB7sI61E96CX7O4y8maX5JY2 AoZ6uJn68xvd7eNQpKFanV+AuZRBtvv6IloggfoNYQ== X-Received: by 2002:a05:6000:1e0b:b0:1ea:99dd:db35 with SMTP id bj11-20020a0560001e0b00b001ea99dddb35mr1188067wrb.384.1645655001209; Wed, 23 Feb 2022 14:23:21 -0800 (PST) MIME-Version: 1.0 References: <20220223162355.3174907-1-seanjc@google.com> In-Reply-To: <20220223162355.3174907-1-seanjc@google.com> From: David Dunn Date: Wed, 23 Feb 2022 14:23:10 -0800 Message-ID: Subject: Re: [PATCH] KVM: x86: Fix pointer mistmatch warning when patching RET0 static calls To: Sean Christopherson Cc: Paolo Bonzini , Nathan Chancellor , Nick Desaulniers , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Like Xu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Reviewed-by: David Dunn On Wed, Feb 23, 2022 at 8:24 AM Sean Christopherson wrote: > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index 713e08f62385..f285ddb8b66b 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -1547,8 +1547,8 @@ static inline void kvm_ops_static_call_update(void) > WARN_ON(!kvm_x86_ops.func); __KVM_X86_OP(func) > #define KVM_X86_OP_OPTIONAL __KVM_X86_OP > #define KVM_X86_OP_OPTIONAL_RET0(func) \ > - static_call_update(kvm_x86_##func, kvm_x86_ops.func ? : \ > - (void *) __static_call_return0); > + static_call_update(kvm_x86_##func, (void *)kvm_x86_ops.func ? : \ > + (void *)__static_call_return0); > #include > #undef __KVM_X86_OP > }