Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp395448pxj; Thu, 20 May 2021 11:49:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYOZALxqZlrsoXvGEh2HMlU1rfXUJc4sSms+wgepUTCn5NGIJhZHobPAtHDTAfVF2YPEVB X-Received: by 2002:a17:906:63d2:: with SMTP id u18mr6142905ejk.186.1621536558401; Thu, 20 May 2021 11:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621536558; cv=none; d=google.com; s=arc-20160816; b=edSEB0TVbGC7lKFxbN4jFClY05oWQtUzDmwSM2egDIH+nXVB/Yye5mQvSoXWaVvtQ0 YOHt0QrLvqIgEqQ72NSMZ/fHo1gFHcLjwvufeHnWRgOrFBRrxI6jIHpHfKBH2gseDfSs kTGg4KnIErZZRllVuzOna7dQmBjN27dGScNmJ1eb39gCcUwD282ufL8aRuyB5xDBuC3k YwtOYGlojCxBo68MGP2CT1/1TQG0DNak41FN6bD0F/sw8GN223rioo+NgZdYhMmN1yO9 sDFTMi1NMTzhmcn4hhH007m8F050pNs+AJJjblGSOu4ayDdHPOCI6KljlrP6A0HX29v8 3vPw== 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=/a9GtL9lhm0i4UZOTaF3fb9giykgla2OPWlTyv0MXds=; b=P617a69kn07YXIVGdReNf4hm/R3JEQ8RyOt1Vx3A0fnWjPAmCKo05FlOempAeNI4j4 A3tHidLnVRa6Kl0SdBv3FW+mqvgd72stS0/HcWHW0b7Dvle6+yYZJcIeGPvBw/qZarny h3Sa8ZOIhz20bPY4yJ595ZADgUWS++tchdSCG+hps3xAqK57SCTIgXfqDcu0RZ5bXqNV KSNwImCyYv11LUjp/UYWtFx5ITAsl6utPv+3ea8+kTo3NJ+9XPuCc4XKCoR8KUehW59Z TjBf3D08sWHH4HsGveDE5yFjA6pxj2yTjtGfyKc/lOUiqYyyTH1fb878CHZbluPXHxLf OGew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="OP/s5WVy"; 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 bz26si3249542ejc.256.2021.05.20.11.48.55; Thu, 20 May 2021 11:49:18 -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="OP/s5WVy"; 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 S236302AbhETKXG (ORCPT + 99 others); Thu, 20 May 2021 06:23:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:43768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235694AbhETKMF (ORCPT ); Thu, 20 May 2021 06:12:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 672046196E; Thu, 20 May 2021 09:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503822; bh=fRBEVpGFEeuQFVQALto36Js2BDnb8czXNzo5M32cks4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OP/s5WVyVSxatn9FiKt+/ZJ7P1opUFUlh2osAYPqb3lWsFbGumE0STY6fOLHy7gxO x3aUt4OyijC8qghwbiqe0Mhb31rkQNxLcujP4wkp7UPayA7QF4ne2QLrwkvrjEWx3j EMYw+RjHzDaxux2003ErlWgzNXAz2oDwVhhAuRjM= 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.19 394/425] x86/msr: Fix wr/rdmsr_safe_regs_on_cpu() prototypes Date: Thu, 20 May 2021 11:22:43 +0200 Message-Id: <20210520092144.355459116@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 @@ -253,7 +253,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; @@ -266,7 +266,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;