Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1744228pxm; Thu, 24 Feb 2022 08:34:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKTs9sx6bG97blQ1T91u+4geHCAg3iiCvT6Sw2+LSg/ryPCpWplM15OPcZlItmSMzZxR3v X-Received: by 2002:a17:902:e949:b0:14b:1f32:e926 with SMTP id b9-20020a170902e94900b0014b1f32e926mr3434461pll.170.1645720464352; Thu, 24 Feb 2022 08:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645720464; cv=none; d=google.com; s=arc-20160816; b=k7fMYteRA0PDNfX4+NrOWEJP9yj2edmAhNQTBspibPSYp7vIKM90jn1hXK9SgnNEtd kuTGybQIIJEZyKDk3DvRRsf7mjmqJw7wZXTl2Gqbq1ghUdr0Y1ZlQrcFD7VBhDaBJc/C Erg6SBLzAIs3m5U18nfE3l0flJ4qiNOUFzq7CJpD+k0B0zu035Ryjbu5Q9kPqQCiVGQR 7glh6Lj2z8dq8CrQhSCKJfc1zaOHnAGHWE8NjgbxnPgzpvFTAzWK376LqpbTDF4Z4FsN sEz6lrDjG9Bz1+WoqahpeR1SPYKZEvjVHAlbPCNtnkd1hbkLcTtvXbTVXKCD6aH+2wBU bJTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=yN4qqwzRUbf48GIlrimNl5sMWvOFulKNBolCSX/vfSs=; b=T4dbcNpgcS1Up4kMX5LRWtELrXCuX6NIA+m5sRWlMN22Y8VAsMukDE9EKCD1iL672N nuI0LCHNfPxNztWC/B+8qks79q9ZLY2grt77XDLk1DC4phkeY8uki9qm0wIUBYTWdzES BBY+dGvS+pD8oiSqtwOckg3Mh5B6+7KgUAZcO82giiarbmtk2sbMuty4FULsGmzx671t inKjcNN9SOCsw9hXMKin+3x81nVZxVYZAA9OYZ0jS6ppgX2XoNSol63PORZUEn5anbZ0 dYoOeVWbKuLts841sBpqtILeWy9YkG1dmjxihhZQ5KSI6FZB5BoFMz7VW1Mqmqf8m12W j1UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ueUn5iqU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a26si3151357pgv.666.2022.02.24.08.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:34:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ueUn5iqU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 151A61E5009; Thu, 24 Feb 2022 08:18:28 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235492AbiBXObz (ORCPT + 99 others); Thu, 24 Feb 2022 09:31:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235490AbiBXObx (ORCPT ); Thu, 24 Feb 2022 09:31:53 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D63F517C42D for ; Thu, 24 Feb 2022 06:31:22 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id c6so4176284ybk.3 for ; Thu, 24 Feb 2022 06:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=yN4qqwzRUbf48GIlrimNl5sMWvOFulKNBolCSX/vfSs=; b=ueUn5iqUjUYldOHpCUKXR+wfQojXmywKv3+H2krKYsKK642HIuat0fTLg9wk1Ee8ea mcolfxfYSHLI6NSj8TwUIDeC5Hx56X5uRgwWqEROPqKGls9/BFYx7tCQUTg6UqWzhdz9 L2WHYtp6ZZ1Hk8pGJaxUdcfaUybg2gZmI9pfBoHGxVg/Zjep4YtM+/3oychx5Q72LXgo IWKa77qzorc88gHqjp+C3GwBwrFrS5AKV/+2ZLo2JGvCgQDlq1/sc8B/+EsN3odlmDq1 4qr6DfrU4ENLvh7OsvsDJ3xobLKGPY68ZLnCxGUuSFiyb2ay9BO5w0lAnNYPJUcibq20 S93Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=yN4qqwzRUbf48GIlrimNl5sMWvOFulKNBolCSX/vfSs=; b=aj1n1AsCmH3DC6WopQ+fbN/NtmvR02kLkBezuIKscUFQi6dUyc9TavVrbJ8J2gfkyh rqqA0UFEWMHQiiXd/+TgLjEqxHRwH7IsoUeNZeHznmaLjBfeSecJAHnlRtRSTiNqqXGN qE07xrJPpBzjvG1ZJ3wP6FOgoyGYvasn92lUHqWwBU0hhwChqCWZW/ml/8KrO5EQHhd7 nUF+MnCX1UbbhL6iRBzydCaU+4HweNZ9tuLdjmJ08nNMX8oXk4eEqI7dOWw38nYNKoet U1w+HpUmy/X2Dk4atzvgB6H7h3pHJghp9UnuwW9gleAxI0jYT6rCcBvXuYDR84XFBe4e wpOw== X-Gm-Message-State: AOAM533xiLLONZGi8k2/MyHyZZKYcxUjjQBaO//93Ia10q7cLQ3uT9Aa zXbGSHM5Gnfj9lIMUz1UE/NcmAQuZkRV1clKZT7oJw== X-Received: by 2002:a25:6993:0:b0:624:55af:336c with SMTP id e141-20020a256993000000b0062455af336cmr2650572ybc.412.1645713081929; Thu, 24 Feb 2022 06:31:21 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Thu, 24 Feb 2022 20:01:10 +0530 Message-ID: Subject: gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is outside array bounds of 'const u8[6]' To: dri-devel@lists.freedesktop.org, open list , Linux-Next Mailing List Cc: David Airlie , Daniel Vetter , Lyude Paul , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Jani Nikula , Dave Airlie , Douglas Anderson , Thomas Zimmermann , Stephen Rothwell , lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Please ignore this email if it is already reported] Linux next-20220223 arch riscv build warnings noticed. Build configs: - riscv-gcc-9-defconfig - riscv-gcc-9-defconfig - riscv-gcc-10-defconfig - riscv-gcc-11-defconfig metadata: git_ref: master git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git_sha: d4a0ae62a277377de396850ed4b709b6bd9b7326 git_describe: next-20220223 arch: riscv toolchain: gcc-11 Build warnings: ----------- drivers/gpu/drm/dp/drm_dp.c: In function 'drm_dp_get_adjust_request_post_cursor': drivers/gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is outside array bounds of 'const u8[6]' {aka 'const unsigned char[6]'} [-Warray-bounds] 59 | return link_status[r - DP_LANE0_1_STATUS]; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/dp/drm_dp.c:210:51: note: while referencing 'link_status' 210 | u8 drm_dp_get_adjust_request_post_cursor(const u8 link_status[DP_LINK_STATUS_SIZE], | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Target '__all' not remade because of errors. Reported-by: Linux Kernel Functional Testing Steps to reproduce: ------------------ # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake tuxmake --runtime podman --target-arch riscv --toolchain gcc-11 --kconfig defconfig -- Linaro LKFT https://lkft.linaro.org [1] https://builds.tuxbuild.com/25XO99nwfQgKrWKz4yfBPYw0wyU/