Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3108532pxy; Sun, 25 Apr 2021 14:15:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgDsaQw0NpLgmFm1mPpa/Hqb+LF7z8aT/rR2SoSuilOKx5SwbxfYtGu9HEC1UQmN5kxr+Z X-Received: by 2002:a65:62d7:: with SMTP id m23mr14059394pgv.244.1619385357152; Sun, 25 Apr 2021 14:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619385357; cv=none; d=google.com; s=arc-20160816; b=eS9TcmcY1XSjFg+Boh75V0PXWsriFsfrMapuedS6JXjDE0/4+jKTtGVYZvcL7nI6zE /x2IBfnXSdy75zpBh1qTqhJghOuHwyASVGTpGPb+VLBAhcfQkgKTGdWj+1lgZ3jnATo0 9y3ssNoi1NONngmdjS1c4v+atDCmQ47lCzbpDcsd3Az8BpMVmPdT114ss+/kLCXfoOUn IxzQa8AiKhZ1LVSv0RwdYdRV7Xg90SXaBfpEXWWfhhnw8JwQrNwdzPIW9LD2llibnwvY dUaTkGT8OcIPgWDSWVEjRqgLzWFVesXRsUNKtlTAhTKDHz+YVT9TXXwMljdjZ1FZP2Sz sacQ== 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:ironport-sdr:ironport-sdr; bh=IK77UPxIAyfSfMKY1AEIBjuoaCzOfQH3nAxwv1OKXLo=; b=EVdPwVvwEUjis/0SSkcNfywIYLEZelMUu6BCqftVXnNcOQX9wzl95f4YqphHJ3vBJO YjNGratdbBpHgeILCN2mjedKRMIg78TiF00D42W8Oq9NobBejMglYOnAF+yf90FpI3g6 3rL1D8MWoYmV8KYQhr7kPD+bIXKtD3O1NhpXS76luRQbS8NvQITQhbPluM/wQ6ivjU87 KYcAafV3gPoQWkzBctbSXf+Cnbp8nSZQajx75kB2gCsIdZ113DN5HxgP+r8CJkt/5as0 rJdqUPen31Dvvywi+HN84dUuTC771OxLs1KlNY/kxF5XnINKcSLhh0bSyc2hs+Pr6fT/ rHZQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si15605758pgv.32.2021.04.25.14.15.45; Sun, 25 Apr 2021 14:15:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbhDYVPT (ORCPT + 99 others); Sun, 25 Apr 2021 17:15:19 -0400 Received: from mga02.intel.com ([134.134.136.20]:19384 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbhDYVPS (ORCPT ); Sun, 25 Apr 2021 17:15:18 -0400 IronPort-SDR: TdsI7wFLIeihIn8whtuO05w0H59Uac6RzQuiFCg37EE9JcsWDxp3GJX2FCg8Jo5zuRx8ebch46 qUyVwcUk3aEA== X-IronPort-AV: E=McAfee;i="6200,9189,9965"; a="183389561" X-IronPort-AV: E=Sophos;i="5.82,251,1613462400"; d="scan'208";a="183389561" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 14:14:38 -0700 IronPort-SDR: 3lri++PEimlFXLU6xrKjmpjm1WLysVjZzSX5kbm0infzdj+ZDc1jBN4Inf71CkQn1lHIS9QTta sYRAWR7IdHNw== X-IronPort-AV: E=Sophos;i="5.82,251,1613462400"; d="scan'208";a="402698384" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 14:14:38 -0700 From: Andi Kleen To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH] x86/msr: Make prototypes match header files Date: Sun, 25 Apr 2021 14:14:29 -0700 Message-Id: <20210425211429.3157952-1-ak@linux.intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen gcc 11 complains when arrays in prototypes do not match the function. Fix two occurrences here. Signed-off-by: Andi Kleen --- arch/x86/lib/msr-smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/lib/msr-smp.c b/arch/x86/lib/msr-smp.c index 75a0915b0d01..40bbe56bde32 100644 --- a/arch/x86/lib/msr-smp.c +++ b/arch/x86/lib/msr-smp.c @@ -252,7 +252,7 @@ static void __wrmsr_safe_regs_on_cpu(void *info) rv->err = wrmsr_safe_regs(rv->regs); } -int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 *regs) +int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]) { int err; struct msr_regs_info rv; @@ -265,7 +265,7 @@ int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 *regs) } EXPORT_SYMBOL(rdmsr_safe_regs_on_cpu); -int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 *regs) +int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]) { int err; struct msr_regs_info rv; -- 2.25.4