Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2682709pxj; Mon, 31 May 2021 08:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzClJ6TXy981DRU4BBoMaIsIY0KAXpjXKYcEFMENFi6HElrNmZTf0zvF2+1GuY/BZXJFflF X-Received: by 2002:a02:a887:: with SMTP id l7mr631063jam.16.1622473809104; Mon, 31 May 2021 08:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473809; cv=none; d=google.com; s=arc-20160816; b=SrBbq92iLzOkF2KRax8IPwWgvrziRnbZauCjSTgGHeLTcSy3QoctGxdu3WNJVFTKeA XuspG5b1pa1PfxU7pKp4iL5a9eWuGynQj1sxtKHK+r3hn2ALy4v+rxtsQmLpRnNtBS5+ DdKdhhK2Z0pkLA+hIWuC+xl1cdw1krngvaLcXby1qQLsQDMJyxrvOXOd0TeL6qn0hQsw D0XjlJAWHyv2q3m350ENyj5B9Hl1q/qgoDBv7zPr4ImggNLp3fNfpFU0BT4bjaxF3VrF uptSxnfXDQSYDWu5Xxf5onQAtYnFlzQsvHBY9XaSxqepdXCoSjE+u1Fe6UHqKj/3CLWz j5sQ== 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=ovdGJA4GX9zH50zGzkBAIM12RnISf3HxJ1uJ9AduLkQ=; b=Wa1nV+NFenRbFFltiN0jgx3khYIH8Dc5J/0YbWTycqHJ0ic7NoZk9BG5pRsOqq8gu2 qzPbrS9nUUfg29Tz/g8DeOTT1yCBFInX4UvfAaNmJ8X3qSJ45+4X+TsgkxdK2UjK5mkJ 7md6dXOPqKVD5cC9n4pHuYOgFxEu0QC9ZRVFpztED3/NnzYulAJRCDGvYAcOIXMbamCS nsZvFZNen3ghiw2sGN91C7UzPByedIQezMIR+t/nNtxxb0EAj9bqQLidLkXxjj6mnsGS JDT/3fC29t/Ye/mexhC31Md4A6Xi7RYZGjpm6J+Tlh/SRG0c6zvLDTbkH6QroutYh4aM BM7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZyLR22vX; 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 d15si3509613iln.114.2021.05.31.08.09.56; Mon, 31 May 2021 08:10:09 -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=ZyLR22vX; 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 S232475AbhEaPKx (ORCPT + 99 others); Mon, 31 May 2021 11:10:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:40564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232590AbhEaOKD (ORCPT ); Mon, 31 May 2021 10:10:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 42DCB6197C; Mon, 31 May 2021 13:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468437; bh=xkUq02VMwfvY6ffMxtBRZoEPzrWiGH5w2Lam1krGyhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZyLR22vXsLp+st+Iemnv1DwMILUNgCs8Gi3zIjMKwxMc2O4FfhvjHow3Yj43bsjZz 4rokZGd3WiG3dRq2OXekzEwajy7Vl44p8gPXJI3F+9/se9IWS0XEYVorMky9FWhzU5 DJIYaa47q84il3lIh3EGzN6SuTCabLtHoKUEIlMU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org Subject: [PATCH 5.10 243/252] i915: fix build warning in intel_dp_get_link_status() Date: Mon, 31 May 2021 15:15:08 +0200 Message-Id: <20210531130706.265875666@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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: Greg Kroah-Hartman There is a build warning using gcc-11 showing a mis-match in the .h and .c definitions of intel_dp_get_link_status(): CC [M] drivers/gpu/drm/i915/display/intel_dp.o drivers/gpu/drm/i915/display/intel_dp.c:4139:56: warning: argument 2 of type ‘u8[6]’ {aka ‘unsigned char[6]’} with mismatched bound [-Warray-parameter=] 4139 | intel_dp_get_link_status(struct intel_dp *intel_dp, u8 link_status[DP_LINK_STATUS_SIZE]) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/i915/display/intel_dp.c:51: drivers/gpu/drm/i915/display/intel_dp.h:105:57: note: previously declared as ‘u8 *’ {aka ‘unsigned char *’} 105 | intel_dp_get_link_status(struct intel_dp *intel_dp, u8 *link_status); | ~~~~^~~~~~~~~~~ This was fixed accidentally commit b30edfd8d0b4 ("drm/i915: Switch to LTTPR non-transparent mode link training") by getting rid of the function entirely, but that is not a viable backport for a stable kernel, so just fix up the function definition to remove the build warning entirely. There is no functional change for this, and it fixes up one of the last 'make allmodconfig' build warnings when using gcc-11 on this kernel tree. Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -4136,7 +4136,7 @@ static void chv_dp_post_pll_disable(stru * link status information */ bool -intel_dp_get_link_status(struct intel_dp *intel_dp, u8 link_status[DP_LINK_STATUS_SIZE]) +intel_dp_get_link_status(struct intel_dp *intel_dp, u8 *link_status) { return drm_dp_dpcd_read(&intel_dp->aux, DP_LANE0_1_STATUS, link_status, DP_LINK_STATUS_SIZE) == DP_LINK_STATUS_SIZE;