Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2000037lqp; Tue, 16 Apr 2024 04:42:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNalWFntTG0IF7jdxecKMnOYkOkefHrZm0ydVsHP0/9l1vQo/kLcgJY1sBIeiGxU8YT8dQLbdPEqpbHR+QvdNmT3jbNZVwRub1J4Zkkw== X-Google-Smtp-Source: AGHT+IG7eysRYjZALLBi58XR9jF4+yIDJkN6t52BwXTMHIEtoqpxlttXhMduCgkufjG+peg53lh2 X-Received: by 2002:a05:6a20:d48f:b0:1aa:5170:b65d with SMTP id im15-20020a056a20d48f00b001aa5170b65dmr1154681pzb.29.1713267747989; Tue, 16 Apr 2024 04:42:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713267747; cv=pass; d=google.com; s=arc-20160816; b=HKixzh4R/HXrD1gVCA3NWXOQrne4qUNb0PY7nWehRsJ02JaZZ9TXwgLD9W1W1ePlDq SNJ6B8ie479NWJ61Emlt0DsQFXcamXXuqSnLIUT+lLlM7KRshb2/YqN3jZWhIQbR3Stl XXKeIJ/R/MgHPE2eMSFf5E/9CYlMbhZ3YTgFGjfyXbUAeTojhTWDGgxsPpshjVxxgDv1 bz4Jdr7xNO7PqCefcvTEdUPMicmX0/v0hbVkjhqxB7yHM2TomK1Ryh5SX2wtvnq3olaf X7b7W9Bk0HJWTjeobMZRrAn9/j18kPGlKVNw1Ef/Bu0MxczlUxGdR2pvbeEQ5nzlmV2d gboA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=dBHxFJQR09mn7jtd+bhYB3IN23MBtsTKKQwLiabj12A=; fh=07+kJGXbqS78RDbBw74S8pM7EwKEmPZp+0xrTo2Jejk=; b=VRPZIykiZFDrCOyQ10O1Gj2yHu1bXAmxAGIWJTe86ecRKsRXhr2L7fFQjZm1viEVwm orotJW/q/cj1UV8GKhAGf8FCW+qfUc39YbpZbV7wfiXfhjGjKGrtuXpfLTcUZnUvtbiA IhGKovvCcs3+j9lliD6Uqpm4HN8dYd/OLdCEEKEscpqO1RQcCWI89SKvrxO0RAjXsNI4 D3Z4fxBixizNbLdHVmN0zhJdVfF+qskSTht56l4e6c9n+tII6w8IiS7nFeMGYy3q/l/F aLsIlQ5YIv0E7NisOv8KKJcI+OmqM2Uv3kw3NnX97sVKSIPkvuZv1kH8U4x5oosOyYOk HBlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kernel.crashing.org); spf=pass (google.com: domain of linux-kernel+bounces-146717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146717-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id le6-20020a056a004fc600b006ed08119666si9930415pfb.108.2024.04.16.04.42.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 04:42:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kernel.crashing.org); spf=pass (google.com: domain of linux-kernel+bounces-146717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146717-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 86230B21811 for ; Tue, 16 Apr 2024 11:41:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CF4C12A152; Tue, 16 Apr 2024 11:41:06 +0000 (UTC) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE2AB129A73; Tue, 16 Apr 2024 11:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.228.1.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713267665; cv=none; b=DnmurTIRLFaZXwzvOfEAPox9GZnZLaFPZ5eXyda9YqfhgkkBeZPs7UBboh1H1qYOpmazTTVmqOkitka/m/HTtWRSr/NdcxWspngv+T28sXnxiZ/+1nf/QAxRvtbS+U7eIp8QUqyPC8uL/OsCEA67cj75bRBX1cvhSgH+zWOj1RM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713267665; c=relaxed/simple; bh=kNJU8Ltay0OqFj6q8sYh4jLmXUE3xZPHeMman0C8bLM=; h=Date:From:To:Cc:Subject:Message-ID:References:Mime-Version: Content-Type:Content-Disposition:In-Reply-To; b=cGwAhZhM6k4OkMiU2U6KspbcIi90FVxthTWFGP2to8cGVvDt3rHlYSibcUHY06QkOSeRplBOisDLuzOLmC/nuaT166IsJknk3xi9aCM+goh6HrvJ4pSXCO3VhHQg/x2NpcVRvD4LxXEz8MM/WNEBj+yDmeK9O1nV7CK7V1JQXLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org; spf=pass smtp.mailfrom=kernel.crashing.org; arc=none smtp.client-ip=63.228.1.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 43GAcL6I005112; Tue, 16 Apr 2024 05:38:21 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 43GAcJln005111; Tue, 16 Apr 2024 05:38:19 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 16 Apr 2024 05:38:19 -0500 From: Segher Boessenkool To: Naresh Kamboju Cc: open list , lkft-triage@lists.linaro.org, Linux Regressions , linuxppc-dev , "Aneesh Kumar K.V" , Anders Roxell , Kees Cook , Arnd Bergmann , clang-built-linux , Nick Desaulniers , Nathan Chancellor , Jeff Xu , "Naveen N. Rao" , Dan Carpenter Subject: Re: powerpc: io-defs.h:43:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] Message-ID: <20240416103819.GQ19790@gate.crashing.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i On Tue, Apr 16, 2024 at 03:02:52PM +0530, Naresh Kamboju wrote: > In file included from arch/powerpc/include/asm/io.h:672: > arch/powerpc/include/asm/io-defs.h:43:1: error: performing pointer > arithmetic on a null pointer has undefined behavior > [-Werror,-Wnull-pointer-arithmetic] It is not UB, but just undefined: the program is meaningless. It is not a null pointer but even a null pointer constant here. It matters in places, including here. It would help if the warnings were more correct :-( Segher