Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp724278rdb; Sat, 6 Jan 2024 06:35:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaCc1y8p/UD0Wbw0ibApYQ4OsfmdjoA7+DMEYkEbhfDmDSX9f5u0XyAmzog9nII2uiyhSW X-Received: by 2002:a05:6358:260e:b0:175:5db7:43af with SMTP id l14-20020a056358260e00b001755db743afmr1065647rwc.54.1704551701820; Sat, 06 Jan 2024 06:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704551701; cv=none; d=google.com; s=arc-20160816; b=C/bBz60S/LrjP4f2UMwX1SHNRnnjJA0G9WvAMxgLxpnfiimeAeLuBAZZmOdFWWc1Nc lOc/uag+ZhGn3qyedpd20HOHpakk69wHDWmXb0CWLGUELJVETEp3bHRs2XWoRhm6oPBF VaanxJvlL+QeIy+Soah4re5UM+2qTyB2Nurqfsu26iqPzSvU563Qk1Xbyoxex6l7EO59 1F2OuR8ZIyHJNj0eO13zkWPNI285R435uOf7jXXRUPF7rkeyV26AaTiOsVILvmcIwO9q AZ2USAnr5LYnuSpMamV8HHKY6jhdturHVAiPoaF23kSCVFxH/QkqCWVo2RqvoEMEDvVd LTQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=es5/rXLu/kY8hdJyt3atG3CtFADvbMRqo/i4DstcUhE=; fh=kburGEsm9JIbbJmI4nworPLdDG7YGKhUKVfdCI4Ho1Q=; b=FHmKc1OXbbVOhN2WrDoXgp0WUe+Ee2ZaE2DxbEr98ojJgBhFeOBBCgZdR/ZjOHzUx6 xsrpjGw5e4hp6fs+4dusGS5CsbNXWOU9kfiHgU5ueFMmC63MC4fCIlrK28Qs22REli7P bgxHaOsGaxg0ieS0px7lANhszXvxG9UAsmK2jqkcQdJCpZB/mC86fozxFPwaYAWX8Wwg G3pRmkMDyxP3BbAh94PCE1KrgCL/rLxFHTGS/Q99KZtCkZnTRt7IQlM4Apkisv51EQ7W GY/XDN1Mr9CsF0u4O+fhnlDIxsynGU7y2sAMcQrZIfYcBo1QVFh5PbZq7yNS12YizKhv Ovdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RWzMiQrY; spf=pass (google.com: domain of linux-kernel+bounces-18599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mq17-20020a17090b381100b0028bdd7c12cdsi2701933pjb.18.2024.01.06.06.35.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 06:35:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18599-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; dkim=pass header.i=@intel.com header.s=Intel header.b=RWzMiQrY; spf=pass (google.com: domain of linux-kernel+bounces-18599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 B79B6B20A83 for ; Sat, 6 Jan 2024 14:35:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C17EE8BFD; Sat, 6 Jan 2024 14:34:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RWzMiQrY" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 277178826; Sat, 6 Jan 2024 14:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704551689; x=1736087689; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=upqLxaJtbw7oUd8/dQ4/u1/YUv0bdd0aioloGDo7Hss=; b=RWzMiQrYvgpPx8dSiXAH4eEi1ny5YF3qriirfNCy0WtMtDjrMjGQb5o2 IOHIo+Ee+iJC84QQfJPx7Hm6VUVo5gi/VB/UXeQPV7eTRKvApTazewDd/ 3YTwrRNmN3THN07g5E2hWE5dsSFqcbDIz92yblsAPL3pszyH6EqRpGcd7 RnK4bbExscNl/m4xKN30HcM3zP9eINN9QMtTRMWt5UUdxvd/f/9cvj8WT 5wq/w6hph0j5jdEF5X1UvPtGAkhF5CoLRCeA9nG08jP93pW3xxH+bEYTG szvxArIlgAUpy3zdQL0gOGTNK8FpPPb4cr4PwPqDl8L3V9Edu8mkKjPVb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="401440963" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="401440963" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:34:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="730726614" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="730726614" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:34:45 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rM7l4-0000000Bvia-1jXH; Sat, 06 Jan 2024 16:34:42 +0200 Date: Sat, 6 Jan 2024 16:34:42 +0200 From: Andy Shevchenko To: Qu Wenruo Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, christophe.jaillet@wanadoo.fr, David.Laight@aculab.com, ddiss@suse.de, geert@linux-m68k.org Subject: Re: [PATCH v3 0/4] kstrtox: introduce memparse_safe() Message-ID: 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Jan 04, 2024 at 09:57:47AM +1030, Qu Wenruo wrote: > [CHANGELOG] > v3: > - Fix the 32bit pointer pattern in the test case > The old pointer pattern for 32 bit systems is in fact 40 bits, > which would still lead to sparse warning. > The newer pattern is using UINTPTR_MAX to trim the pattern, then > converted to a pointer, which should not cause any trimmed bits and > make sparse happy. Having test cases is quite good, thanks! But as I understood what Alexey wanted, is not using the kstrtox files for this. You can introduce it in the cmdline.c, correct? Just include local "kstrtox.h". I'm on leave till end of the month, I'll look at this later. -- With Best Regards, Andy Shevchenko