Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2114752rdf; Mon, 6 Nov 2023 05:17:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxInRqR8sctZCsMPxdpNE5feL4wKfN1IgRQ/VJuNWXRE/I0RIZurhcY61wUdgf8QRf1+PX X-Received: by 2002:a05:6a00:2492:b0:6bc:ce7a:6f39 with SMTP id c18-20020a056a00249200b006bcce7a6f39mr25930169pfv.32.1699276632783; Mon, 06 Nov 2023 05:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699276632; cv=none; d=google.com; s=arc-20160816; b=Jbg3YXROcNit+cfjmD250XYQpmd1odb/FGO3QmVwzEK4BKb7cPXj+UjkMaSGwncSzM pkUwWQWtk9RMge4uXAMgdBjqD5frHJbMsi5y97YNXLrB00Fg9Trj7Bh9mi6eZ7u8r8g5 /SHrO0Wp6H5JMAwg4fGoFv1VTulTiEH4c24g9pr/br+0EKsXJBQx3hhzMIOQmwwy/wJC HiWouDhlvVkUrCCys+4JgnUhzxasKMEXyJsiPEq65S6goOVb0iYgZlSigzSmtoILqBCX D2x/4Nto2jj1Y6I/j79Ro9Y2RqKpfWV3QLm2xio6T2GGBZaTU7WU0H5sS/31nob05BYa NVmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LmQ2IOK4VigklEem+xi/Ol6X6Y0vHqrd8mxsRrkTK0M=; fh=JMl1w0QyM58QB0gmKBld6lCYg/9Msbtmwd1jpnnobeQ=; b=EL9fs41AnIBxpNXpXje1HYnXyI8Dq/YzHetnmL1l1Vk6l6BCGnXYSiWcR/T87S2ppU KgNW8xDBW49l3KT1InPzQOVosBxx+QkI6HLipDmbB0weAkjUPexq5yV0/ipdvBETqTi/ iGxbQGP4S4ruQsuCUTXndQw66BzdQRPcyHfY/G4mwS0ieZXEL25qL4pB26U9ks3zEN84 xgTF6pNdepJbpPOaGsPvBo3GGI57eXnGD3SjQDoPEoClJZ6mq/M8boOX+PqEQWIzlObl YpNruMET5AdQtYp8tSpcWaOwMJRIExITZsU6Uerqzrq3iQEclremrWmqyO5S5HbtJ8AQ p6FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o0D26NB2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bz39-20020a056a02062700b005b967ddd984si9246494pgb.781.2023.11.06.05.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o0D26NB2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E17718086509; Mon, 6 Nov 2023 05:17:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232142AbjKFNRA (ORCPT + 99 others); Mon, 6 Nov 2023 08:17:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232262AbjKFNQ5 (ORCPT ); Mon, 6 Nov 2023 08:16:57 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A18BF3 for ; Mon, 6 Nov 2023 05:16:54 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a7dd65052aso53817587b3.0 for ; Mon, 06 Nov 2023 05:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699276613; x=1699881413; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LmQ2IOK4VigklEem+xi/Ol6X6Y0vHqrd8mxsRrkTK0M=; b=o0D26NB2AErclWx0GC3/Xj4jGskaDTCUZeXGjBAHl5kF7yXgrHIlVnl/IkaJJzRc49 Bocen/NPiQl1J70QhbPOEWeSanRyNcwGTzXKAauv681tWvXzuvnSzYCqgNoYApe4Fp/I 6Q2tkF0jFbgJJzH4nsR75jyow5gQp6Ro68KWLkEQbnUFapAmiNIhEPqt7Z+6UQm/aJQF GGJcxD00CwwqVzQaWrzQoYbADUancFisiZywXi+zkT4D5nY8tRN+WqxVlzmN18G7UHdl Ce21UnLe+2Ehes2VdBMNFw2lrIMDxkiAzgdQ2nTaIi4E0J8enm43ml8rrtVYqyTUEqc4 wHew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699276613; x=1699881413; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LmQ2IOK4VigklEem+xi/Ol6X6Y0vHqrd8mxsRrkTK0M=; b=gYOnGXD7in2qYdt9j+9eMyAwKJW5gbmkLYs8huot8w7yXD9ouCsW64HKakAvhHmxmf RKkyt+FhxsoC9639ULA6MqQMjmSBqWtuE1BTX0fvIxI/IqN9mx8gh9lJxvKwMQ5nN6+1 NRm6Hrxs3I/RrakCq0gTFrx8CrCYyyL0xQLDkZwlBHBpoqfZETMlA/KQkQGexc+gz/A6 frXg5++PTeqq83hqpSXi7KPnp2PF+V+6ime3ZqQN4orhXy5WHmgPYUvGLH2Mnv8vDlHg HlfM77LKdpx8ZCyP427ZLoVG21vtBMjecOvkblqrAbnLQrJkvDAdSLyL6FWqjXO3lcYQ a9JA== X-Gm-Message-State: AOJu0YzwViVEIaUopUYyOXjBfblcJYKP/mbNo7nT5MJ1gxs9niw1eN/6 dqK/J/yu8WOtKLsgaOZF1U6V0o+6Xv9PYhhbMq3TvKmZjbUSGYuD X-Received: by 2002:a25:54e:0:b0:da0:ce05:ca2c with SMTP id 75-20020a25054e000000b00da0ce05ca2cmr25226767ybf.7.1699276613651; Mon, 06 Nov 2023 05:16:53 -0800 (PST) MIME-Version: 1.0 References: <202310190854.yTRUMqLL-lkp@intel.com> In-Reply-To: <202310190854.yTRUMqLL-lkp@intel.com> From: Linus Walleij Date: Mon, 6 Nov 2023 14:16:42 +0100 Message-ID: Subject: Re: arch/arm/include/asm/memory.h:298:23: warning: array subscript -1 is outside array bounds of 'const void[2147483647]' To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 06 Nov 2023 05:17:10 -0800 (PST) Hi Robot, On Thu, Oct 19, 2023 at 2:22=E2=80=AFAM kernel test robot w= rote: > In function 'virt_to_pfn', > inlined from 'pfn_is_nosave' at arch/arm/kernel/hibernate.c:29:33: > >> arch/arm/include/asm/memory.h:298:23: warning: array subscript -1 is o= utside array bounds of 'const void[2147483647]' [-Warray-bounds=3D] > 298 | unsigned long kaddr =3D (unsigned long)p; What does this even mean? > 296 static inline unsigned long virt_to_pfn(const void *p) > 297 { > > 298 unsigned long kaddr =3D (unsigned long)p; > 299 return (((kaddr - PAGE_OFFSET) >> PAGE_SHIFT) + > 300 PHYS_PFN_OFFSET); > 301 } Array out of bounds? It's not even an array! What's up with this warning? Yours, Linus Walleij