Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp72351pxj; Thu, 20 May 2021 04:52:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkakw7QwhT6rHaPE9Hl6Rtfyp9KTNKUWPWWRop6KbsLWZAQYw5an3SNN2O1vWc6dquXt7m X-Received: by 2002:a17:907:2136:: with SMTP id qo22mr4225686ejb.246.1621511530395; Thu, 20 May 2021 04:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621511530; cv=none; d=google.com; s=arc-20160816; b=aFcLKMwk004Rd2atwQjD4vQvNyA/iui9vEso0t/Y980LMyLAPD8yYBAp+8AjSLx38F DpiFCzt4jwU1spm3ez64bdHT4+4+AvkllrLNoyotRuVTwl6ihtUSixybAqbp8JqyszmK SjpquOxX7sNBZJ7ObkBecaMA09m2Bs61Rja5HA0mteYuTv4D7Ur+QIsduI2+pjB+b2Ic D4fhiV4FM9xMAbf0A6YeWEt7hZnsLAJJ2r7Qo1ROB+quvblHgDcGkmVRyzgzcVmtzt1+ +SoyLl3/3qB6eI/qOWU3ESj+dNmIDR/y/zb3szfidOzZqXjMvquLPiMNbxENapZj548r efDQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MkK1Pwz5if5Lazfa9egXrYtYWfUp6EStyHoYhNzK6Qc=; b=GGxR6ZCo9MqLCTfxlHXimqXnN/zFixPQ6emb8pCSmmU3E8pdHMkT0b9gqaNpL2oD1Q a/2kWq4zDQ6kArA2mrfn0tnXV0k8MIadnOqDjg6pdAePylbk8KikwAeR85Jg6qjGwYMA 5O3lNAEoHFmJkX8MkMFg2lQoEXG+/EPRyaE+n6vKdm5wyVY3Kv+pnao6jL52I9akv/75 SzmHBv5NqIendopFxeCmqNUzyr057UvQPs/GM7YMQqYAe69ijM//ApsESIKb/cVS5VtA 62uoYOXAyiUtDblesUhudTcWHH8AFCFwCMi+NUWl2EPm96MTCgx1BkzCs2YFdn9j0TK6 vKAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IeVnKRT7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si208968edr.48.2021.05.20.04.51.23; Thu, 20 May 2021 04:52:10 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IeVnKRT7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242080AbhETLqv (ORCPT + 99 others); Thu, 20 May 2021 07:46:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:45560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241107AbhETLXt (ORCPT ); Thu, 20 May 2021 07:23:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55A4C61D9B; Thu, 20 May 2021 10:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505533; bh=DxXPoU4nmCj8bRLhnv8Q1DKdGo+gIGPorYOkRXJSt0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IeVnKRT7LntK/GqMWQGY3bJDKLEqQY3ndT3f21OPBTGbFJIrv4MkVuPEBMDVYoB99 Vmw75I4P1SKWWo8XBCiFDjPpylNWxIzFAnK/x9jWn4hpqwTYxXeEREZNMRaOyZCw3p Hd1VoNVTVNhSpR9SpyMdlMAGq51m7OSciZSDEZeA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Ingo Molnar Subject: [PATCH 4.4 177/190] x86/msr: Fix wr/rdmsr_safe_regs_on_cpu() prototypes Date: Thu, 20 May 2021 11:24:01 +0200 Message-Id: <20210520092108.021000124@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 396a66aa1172ef2b78c21651f59b40b87b2e5e1e upstream. gcc-11 warns about mismatched prototypes here: arch/x86/lib/msr-smp.c:255:51: error: argument 2 of type ‘u32 *’ {aka ‘unsigned int *’} declared as a pointer [-Werror=array-parameter=] 255 | int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 *regs) | ~~~~~^~~~ arch/x86/include/asm/msr.h:347:50: note: previously declared as an array ‘u32[8]’ {aka ‘unsigned int[8]’} GCC is right here - fix up the types. [ mingo: Twiddled the changelog. ] Signed-off-by: Arnd Bergmann Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210322164541.912261-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman --- arch/x86/lib/msr-smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/lib/msr-smp.c +++ b/arch/x86/lib/msr-smp.c @@ -239,7 +239,7 @@ static void __wrmsr_safe_regs_on_cpu(voi 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; @@ -252,7 +252,7 @@ int rdmsr_safe_regs_on_cpu(unsigned int } 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;