Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7751618ybi; Thu, 1 Aug 2019 13:19:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCGFjrcw+sjnNRg6Jg0KhxPFN9Kj5TynTNf9WAOFJG4E5d9Fz+Fx/vtWOf/itcPFXmWdER X-Received: by 2002:a17:90a:3aed:: with SMTP id b100mr564530pjc.63.1564690779462; Thu, 01 Aug 2019 13:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564690779; cv=none; d=google.com; s=arc-20160816; b=Lw0U3mU3kBOzcAIVPrAIMk1GMcl0FL0kXyFH6bFINXnfgAFRrSy79hgT61cGRJ/dKG Ev376FwNyB6XH6Wsaz6msHVl/uyCdqK0Fw38odM9Chl3mspWiPr2f/qmQmw1iEtmErHA UDyB2SxnYteA5gUIo0cnj0+6jS1ob4VlGoG33BvmS/fxAioxqnRdBzzRZjry0rktYGrv k4LVmkFb85SRUDKdEbL72BBX24ZBUrhn0ooxyK9oCEt4BXYL9HVR7ndWwy5EHsruZ+XO bT2vertzmpnpPaaCzjeinT/dPUqSDyD2Rt1KoYYeIeFIJ00oagl/iWY8CJPtjcl2U2SM sbyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=1Y+591c4JsmyZ5fvggK4ypbQI1t/QF4DrrfZ1iPoTZI=; b=sUN0zSiwWTa6Lc/1u3aTs3TgYBi6VbnK+PpHQJNJGrOzfKMebW8sLsdLjD5/yG/rJZ jAYrL0dLXkEew/D9EYDzoYuw1Vx8YLhTw4yxrJDvFY5UuQhZxJ1pR4vrC/cK54PIKdAe yydVks90MY7/eqsorfcttzu0xrd4EBlSYhmcETz/kt0V3Gd90Q7HogOHLA6HigthQqCC vgJVhLjB7uinQDAicYO3JtMoeSYfWVJr+EVj7UYkLljLSPmfiWzEwLiYqR3ugqdIM/jg Drmd2De6ZVxforAyq5eGq01g+xuPTbK7oYQ0+TdAcCb8Rc+uequjOfWGSxKLLpKC+4SL KyLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si35903229pfm.145.2019.08.01.13.19.21; Thu, 01 Aug 2019 13:19:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389026AbfHAUSA (ORCPT + 99 others); Thu, 1 Aug 2019 16:18:00 -0400 Received: from mga14.intel.com ([192.55.52.115]:43706 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389014AbfHAUR6 (ORCPT ); Thu, 1 Aug 2019 16:17:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2019 13:17:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,335,1559545200"; d="scan'208";a="372728424" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga006.fm.intel.com with ESMTP; 01 Aug 2019 13:17:55 -0700 Received: from orsmsx160.amr.corp.intel.com (10.22.226.43) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 1 Aug 2019 13:17:55 -0700 Received: from orsmsx122.amr.corp.intel.com ([169.254.11.68]) by ORSMSX160.amr.corp.intel.com ([169.254.13.251]) with mapi id 14.03.0439.000; Thu, 1 Aug 2019 13:17:54 -0700 From: "Schmauss, Erik" To: Qian Cai , "Moore, Robert" , "Wysocki, Rafael J" CC: "jkim@FreeBSD.org" , "lenb@kernel.org" , "ndesaulniers@google.com" , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , "clang-built-linux@googlegroups.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] acpica: fix -Wnull-pointer-arithmetic warnings Thread-Topic: [PATCH v2] acpica: fix -Wnull-pointer-arithmetic warnings Thread-Index: AQHVPaHqe/gnJU6NbEKNryIU7CFGuabdzLyAgAloioD//5trIA== Date: Thu, 1 Aug 2019 20:17:55 +0000 Message-ID: References: <20190718194846.1880-1-cai@lca.pw> <94F2FBAB4432B54E8AACC7DFDE6C92E3B9661CBD@ORSMSX110.amr.corp.intel.com> <1564686979.11067.48.camel@lca.pw> In-Reply-To: <1564686979.11067.48.camel@lca.pw> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODI2ZGY1OTItNDEyMS00ZGYzLWFiYjgtOTUzMDk4MzM4OWY5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiakVRcDFSYXhteXJsblwvTnFwZ3ZPcVwvQkJvQjh6bVZSRXBnTmt6dkhsbkViTU11SEl0SkZCY2NpZVU1MWdNbElkIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUWlhbiBDYWkgW21haWx0 bzpjYWlAbGNhLnB3XQ0KPiBTZW50OiBUaHVyc2RheSwgQXVndXN0IDEsIDIwMTkgMTI6MTYgUE0N Cj4gVG86IE1vb3JlLCBSb2JlcnQgPHJvYmVydC5tb29yZUBpbnRlbC5jb20+OyBXeXNvY2tpLCBS YWZhZWwgSg0KPiA8cmFmYWVsLmoud3lzb2NraUBpbnRlbC5jb20+DQo+IENjOiBTY2htYXVzcywg RXJpayA8ZXJpay5zY2htYXVzc0BpbnRlbC5jb20+OyBqa2ltQEZyZWVCU0Qub3JnOw0KPiBsZW5i QGtlcm5lbC5vcmc7IG5kZXNhdWxuaWVyc0Bnb29nbGUuY29tOyBsaW51eC1hY3BpQHZnZXIua2Vy bmVsLm9yZzsNCj4gZGV2ZWxAYWNwaWNhLm9yZzsgY2xhbmctYnVpbHQtbGludXhAZ29vZ2xlZ3Jv dXBzLmNvbTsgbGludXgtDQo+IGtlcm5lbEB2Z2VyLmtlcm5lbC5vcmcNCj4gU3ViamVjdDogUmU6 IFtQQVRDSCB2Ml0gYWNwaWNhOiBmaXggLVdudWxsLXBvaW50ZXItYXJpdGhtZXRpYyB3YXJuaW5n cw0KPiANCj4gT24gRnJpLCAyMDE5LTA3LTI2IGF0IDE5OjM1ICswMDAwLCBNb29yZSwgUm9iZXJ0 IHdyb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