Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2712343pxj; Mon, 31 May 2021 08:52:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnELw+s2OLN3ka6lkiDDpOKAWAdZ7pSn7GVIwVMafquCS1VTU92K0ZTGwGzDcQLyDdy6oj X-Received: by 2002:aa7:c1da:: with SMTP id d26mr17571848edp.92.1622476348056; Mon, 31 May 2021 08:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622476348; cv=none; d=google.com; s=arc-20160816; b=l2+1E0LQvfEmFLFB9aA6dD3TJAlD3ZSddOfAq7A2ZFPpVaupV1wNFCpwrKlDfZMyTq 1HoY7T0M8g2mPPKsfveLwZqSUPbiZY9u3XwHPODqNZKY8LVE8bFnulWQZSYIsE0Lc4vw L9vtsmx0Zh6zjjGiZncmUwA6YnMNFpzf6WzznoFJ1hTnsIemng0y9rGWAuTZ3yqJu54v uW7gKPoCJsWGGPSuSxR5kRPmtCVShFGyTiYz2rzYIuGkj4OMKTIbIYuDJP2xipY6o97i q6RduozGb4J10XbSHepBYAg37ETyoOOpUqtoa2InbmQGuf7XcbrwkrO7Hp9VhttGjwG+ XweA== 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=WwkL76y2l4QEvq+3HQGptPzZkCqA7kVRBnKqbgWETzQ=; b=IJ1pOPagpy2KeGkjxT+SQrRE6njeGBuGg3Vch2mP/V6qrSLgwgMlW5DmrOkOrP/fMu RZu1nl2ywkoYzlqy0oy9ZGkcTLyQBQXaDgbpESSTWu7URYYoIVJbfj0r4z94R44vdqml j3l+weg6bZ7M3WAP8dY+C7Td2Mga7yWqKcUAeHdIWTd8sH6sjMc+wIbLNlb+YNrycqif 5oi0TEWO+DnNcijhtBmdQAEFuHICcNBQLNljVM91dSMa5oIld55RXWLIQcLo64lrer3t 3obHroHpFIgxIP2P76C2OgUmxM1NBa3YWCDtKKcM9UPiMrNcLCtS4Fob4OXMlPqBwubD 9Ydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wn0Xdwkf; 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 gt44si11442702ejc.619.2021.05.31.08.52.05; Mon, 31 May 2021 08:52:28 -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=wn0Xdwkf; 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 S232193AbhEaPwb (ORCPT + 99 others); Mon, 31 May 2021 11:52:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:56026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233774AbhEaO3W (ORCPT ); Mon, 31 May 2021 10:29:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94CC261C24; Mon, 31 May 2021 13:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468898; bh=FkMhq74uK3etKdSivx+MQ8g7r+DNORyT/QYAvYZA+Ig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wn0XdwkfF15ZYZNBSDBOkbgb+R1yE+ZASE24/cWIOpPih32b19PIf+6kb05FaexOj rze3unbzJDlE8pHfbAlSOjkJten5K1smn60Q7CE4vBfso7aTL3Df4pApgJ9uCDHMsf y5Ij4v+dW6WJnmg1t3JMa/4tjRcfyGXhZnJ5rkR8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org Subject: [PATCH 5.4 171/177] i915: fix build warning in intel_dp_get_link_status() Date: Mon, 31 May 2021 15:15:28 +0200 Message-Id: <20210531130653.837840180@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 @@ -3634,7 +3634,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;