Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4772485pxb; Tue, 25 Jan 2022 19:10:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYeYF7pvQprjAPbScrl9tEPTAi1FvqmaAe8sk4DGc6IdnJ3Ed/dcgyVIcITtj8djNVkrbh X-Received: by 2002:a63:d417:: with SMTP id a23mr17266077pgh.297.1643166624508; Tue, 25 Jan 2022 19:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643166624; cv=none; d=google.com; s=arc-20160816; b=rPgxWKWSX513gTSEXP4O/VBDwVHg9MedhiVV8AyuxNZ7x6HS7zZthcd5L6PJiXABfy Xq6iavbD6PQQB+aaXPCBK1SbxMvyTcvCONoz4xAqC4vH7ipjKGXvcWamWrTbQcS5mCbI padmBalW0NypgXD5X/SY8rN29x/AWbS08Oz/bWghGkqFvGtkmZmatnEKFpgyRXvZhjsy tFe1Xxi5FZRvJp8z445BJA3wAs7SVmppQUM3nPldcV3YrOpkCeKtfp8cv5zUo73r2ynu J8NOKcmdZ0oOCod6bCZHO23BomFhRQJlkHX40rL7QSdr/u4wZg72Mwl7+5F1WvuBRRc0 awQw== 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:in-reply-to :references:mime-version; bh=m5LCOpXnnaSA7LGKNVoZuc39uqR/t80O6SBc4Hc6VI4=; b=lVNRh4G0e7O8zWegRloGCnCEjUosyXy0/1surhrUUGdT+qnGfbEibmKrXd99XyaX4w o2fDl81o4KAYNDxg4bDMfPHLiPksa4ZWbbGf0kjrLHzjs3fJ1uXH27SoeKfNBBw6+v1B 7iZT+wSew4kHc4ujdPBEbJJzBe48WjkCCRRCvopTH+rikWHNyYLWjp9AmbhM1Q9J00Ir pIAQ1fZdhZlXCqpnFQHc0YT7LJjAEyAhfEmYP+mdzk/by7/RM8nKznaENsgQIWluM8ZB 8eFVHbDd68lJQs0eSRQpA6qUlZwH9Ud3nZ41L5q+UjLoxDLj69h5lZJt2TYVC9+jdFKK 0NZg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si19179910pgl.380.2022.01.25.19.10.12; Tue, 25 Jan 2022 19:10:24 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235039AbiAYRn1 (ORCPT + 99 others); Tue, 25 Jan 2022 12:43:27 -0500 Received: from mail-yb1-f170.google.com ([209.85.219.170]:44599 "EHLO mail-yb1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384367AbiAYRnO (ORCPT ); Tue, 25 Jan 2022 12:43:14 -0500 Received: by mail-yb1-f170.google.com with SMTP id r65so60307289ybc.11; Tue, 25 Jan 2022 09:43:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m5LCOpXnnaSA7LGKNVoZuc39uqR/t80O6SBc4Hc6VI4=; b=ZBVOj1vRN2LhTfdcajSNacAdHB7LrAx0J4U9toowaiAaSoKUld/YXy2hgSSuYV39l4 eEI/8gqlJwGRzDYqdgUQ/tAKPXF/05C/bndEVEEyaYlattSMeXS+tQo/UWJG1aB7bNrB 588C0Gl3Vlfqj5HokLRRn7SIHHHNJv86P6EGXtaJbnyOQEmnf/GIOEsm9cTJluqufPTZ gvoOmiqKie2/yAZUi4gJ50Kdx3gTRPaBRWHa5pPJ0Ams8Yp2IQTbXMYM5S1lCduPFji8 gB4vhOkz9OnnB+4r2H3DN1J+lCKw3F9wSEBxnvxkL15w6LHKDaznWdAWVPAj2Ja8ce/Z EoKg== X-Gm-Message-State: AOAM533v12XHPS4Q58S/uJliQVcoOQGVyW954Lh9ZnbIb8XR96iIM/Kv YDyfRgiiH06+FPRsaoxjYvuvClYyVTcpPkAycBQ= X-Received: by 2002:a25:b8f:: with SMTP id 137mr19338331ybl.330.1643132593224; Tue, 25 Jan 2022 09:43:13 -0800 (PST) MIME-Version: 1.0 References: <2614912.mvXUDI8C0e@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 25 Jan 2022 18:43:02 +0100 Message-ID: Subject: Re: [PATCH] ACPICA: Use uintptr_t and offsetof() in Linux kernel builds To: Arnd Bergmann Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Bob Moore Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 12, 2022 at 9:45 AM Arnd Bergmann wrote: > > On Tue, Jan 11, 2022 at 4:55 PM Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > To avoid "performing pointer subtraction with a null pointer has > > undefined behavior" compiler warnings, use uintptr_t and offsetof() > > that are always available during Linux kernel builds to define > > acpi_uintptr_t and the ACPI_TO_INTEGER() and ACPI_OFFSET() macros. > > > > Based on earlier proposal from Arnd Bergmann. > > > > Link: https://lore.kernel.org/linux-acpi/20210927121338.938994-1-arnd@kernel.org > > Signed-off-by: Rafael J. Wysocki > > Thanks for the follow-up. I can't easily test this at the moment, but > it looks correct to > me. I had a different approach that I had planned to eventually > submit, but yours > looks better anyway, so let's go with this. > > Reviewed-by: Arnd Bergmann Thank you, I've applied this patch as 5.18 material. A pull request for the analogous change in the upstream code base has been submitted and Bob is going to take it AFAICS.