From patchwork Fri May 12 10:33:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 93122 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4999570vqo; Fri, 12 May 2023 03:43:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7g239KkV86CCL49W0kW7COekWKhL28PcMh1HLy6Pyiahike3fADgCX0Dm3a1Jan7wwneKG X-Received: by 2002:a05:6a20:a10f:b0:ff:b9c4:a0aa with SMTP id q15-20020a056a20a10f00b000ffb9c4a0aamr29068517pzk.48.1683888235475; Fri, 12 May 2023 03:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683888235; cv=none; d=google.com; s=arc-20160816; b=dsQYaJR1n3H0EaNjiXAm6/oGV77Y9BZK6vkMjy7NrQ6n0X0hOFzMTrlhaSX1FLtLvm 4tzcagVR5qXw60DG+eSC7ANXtZAf++sBSAT2C0NbK76inkpWqDODd3rgULnDSCr6FvzS jczsCf2Rb19WcWRa9ldRyGh5Efbldtaa3Xa9fklaaHsI+4OkvgN7qD9UOqPe5Mcn2oyE E6A6GZlkMHY1Mo0u9P1ambFh2Hj5UGa6/lEmY7vn+YnL/aWCkBYlEk4yKUSn0fQGUlAA eR8zKBejPw3900YpWch3YBqOpuacZmFzaoxU+uwCfIIicRUgdc7rB0UfKiUW8dIF/Tqi +3Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=qIwf6Ve86JO74f1ZgVFN46e2HB9rw020mrBkzHhPWA0=; b=wzu86Fw/zEb4y/b6m4AFzLVRuVvAXfRk79reSsQJ93kRGbyar/ergMz0C9VaQLekZk ipL6+RDzpcBmktf4K7z3nOEMpnYn6TqzrEYsWL/sIc/XuPKKTtQHMiid8P7Uw4z5Ys80 fn77+43YL3yOyWXwAKuVtN6ingD/68SKZqnoF3n6ivQebR6mXBQCuG70Rz/FlhnFT/os 3hZ41EXdW/KAnFAfYumG/rPiT3inLiSJUYIOKpnwRa9ggwDoXuH2omx5f6SO07b9jTET z9Od2K8/nJ9oyXB/DqUskzyMLSqhNHNLt3bbjg8mcsbHmQ2EQTQTtsRUlK5sH+dZ7fJF LX6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IcpEikFY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w71-20020a63824a000000b0050f975790dcsi9365956pgd.464.2023.05.12.03.43.42; Fri, 12 May 2023 03:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IcpEikFY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240623AbjELKej (ORCPT + 99 others); Fri, 12 May 2023 06:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240716AbjELKea (ORCPT ); Fri, 12 May 2023 06:34:30 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A01AA13293 for ; Fri, 12 May 2023 03:33:49 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f41d087b24so49315935e9.1 for ; Fri, 12 May 2023 03:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683887621; x=1686479621; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=qIwf6Ve86JO74f1ZgVFN46e2HB9rw020mrBkzHhPWA0=; b=IcpEikFY3mIyVfd7wlazQMqfPbtTyZujZaD4jaySk/90clAl/sRZMmQu9+HPHvw09/ b5jVwaQP5dcpu5ZiPjPq0O8Z2emozurnH2EuyFAi/VgapO8wlMucjUTIuVNfCf0MukVp gsEgjBl7ewPJsZTeREDld/FswbXPx9T7Ej7qTEpXaiI24jstuOsGl4ylAB6+5MiO4HxW yeZPSws8XTQVlXicRh+ndxxWo3RFGO3K/4qIhxzHqYd5QSM07OYQ2h/W7+zaupt6ZDqq s66vg8mgR1SgDt5FRJGfPXtapD2estnH9Buyy5cwy3V6mliSLBRmaFCHrqjsZDnEqhGM bn9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683887621; x=1686479621; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qIwf6Ve86JO74f1ZgVFN46e2HB9rw020mrBkzHhPWA0=; b=jy/MrcRek7+m2eKElBvbxSQCz14OGirJFdtWr5MnN9QlufviuDd85+klDYkzUFvtBY Eu/hbHFjkWH84KmGicIDeDBqKdPQVHsdWdZ5wt0wEtFNIOKqcdSeXwLKxn+L8XSISmN0 dMWhADvJ+vpBeAu23G6ZtEJS8PlI0zGdpasZS7XyMWcEKVkcdZph0nloChxiJKyPgo0z jff+qHKmaFsOrADNAZuHJjGGyNbC7CfG1Tnw5TOW9tsngiKfIkRGHSsOk8ATNOR7Qa7b 9+2oc7j0A7s2NJa0D23feLDIYRQeacOwZpt1CtHkdDrU8jzkzwVJvUTlNSvRyOLVXGMa RLSg== X-Gm-Message-State: AC+VfDyoJXdGzNbPC14/bP5DnG34wNJykR2hulhSENxsAH/w3r8Effq/ gwgV0AFz5EQSBu37H6e/IewkkXE9pA== X-Received: by 2002:a05:600c:cf:b0:3f4:29c2:1cd0 with SMTP id u15-20020a05600c00cf00b003f429c21cd0mr8752311wmm.25.1683887620549; Fri, 12 May 2023 03:33:40 -0700 (PDT) Received: from p183 ([46.53.254.54]) by smtp.gmail.com with ESMTPSA id f8-20020a7bcd08000000b003f42894ebe2sm12464689wmj.23.2023.05.12.03.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 03:33:40 -0700 (PDT) Date: Fri, 12 May 2023 13:33:38 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] add intptr_t Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765684790249190937?= X-GMAIL-MSGID: =?utf-8?q?1765684790249190937?= Add signed intptr_t given that a) it is standard type and b) uintptr_t is in tree. Signed-off-by: Alexey Dobriyan --- arch/mips/include/asm/fw/cfe/cfe_api.h | 3 --- include/linux/types.h | 1 + lib/zstd/common/zstd_deps.h | 18 ------------------ 3 files changed, 1 insertion(+), 21 deletions(-) --- a/arch/mips/include/asm/fw/cfe/cfe_api.h +++ b/arch/mips/include/asm/fw/cfe/cfe_api.h @@ -17,9 +17,6 @@ #include #include -typedef long intptr_t; - - /* * Constants */ --- a/include/linux/types.h +++ b/include/linux/types.h @@ -35,6 +35,7 @@ typedef __kernel_uid16_t uid16_t; typedef __kernel_gid16_t gid16_t; typedef unsigned long uintptr_t; +typedef long intptr_t; #ifdef CONFIG_HAVE_UID16 /* This is defined by include/asm-{arch}/posix_types.h */ --- a/lib/zstd/common/zstd_deps.h +++ b/lib/zstd/common/zstd_deps.h @@ -105,21 +105,3 @@ static uint64_t ZSTD_div64(uint64_t dividend, uint32_t divisor) { #endif /* ZSTD_DEPS_IO */ #endif /* ZSTD_DEPS_NEED_IO */ - -/* - * Only requested when MSAN is enabled. - * Need: - * intptr_t - */ -#ifdef ZSTD_DEPS_NEED_STDINT -#ifndef ZSTD_DEPS_STDINT -#define ZSTD_DEPS_STDINT - -/* - * The Linux Kernel doesn't provide intptr_t, only uintptr_t, which - * is an unsigned long. - */ -typedef long intptr_t; - -#endif /* ZSTD_DEPS_STDINT */ -#endif /* ZSTD_DEPS_NEED_STDINT */