Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6449483rwi; Mon, 24 Oct 2022 01:16:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/J8etEQjTFSxsa/wCvCRI2l5nnaH7X3WSNFHPbjVQ9+hvNuhH6yTHGHnN5K7OMPlN0uwT X-Received: by 2002:aa7:df94:0:b0:461:aff8:d3e1 with SMTP id b20-20020aa7df94000000b00461aff8d3e1mr5596573edy.10.1666599387554; Mon, 24 Oct 2022 01:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599387; cv=none; d=google.com; s=arc-20160816; b=1JAtSkjWEgL7f4QHbMkqeZ8Ahl+0Gamo9ZvOv9sa5KLz7c/8ScCQ8ySRJVWajpGdzS viuWNZjd9IvtBmChQsJDZT6t0ymgUL8xk6aVzAHZfE5yaLW1OY+eVPwZlx17BMUBFRHe kh6z+5s5QsfloyhiyowbxDx34kAOeutTOU4+VHUfoEkvnQTGvPHMawV74plg2dRs35E5 TfHuez2A6tw9L+cc/5+JsnUllqtPIGhc8uEBolMk07J2PMeGOkIXFap5CDAFoBlXjGZ0 JCjWgfSAjngn3nfg7UQqWoUKG7Utvx7WwxKYRYsnUigkqYRhxnlSAANWy3bYV71llEeL jYYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=p8SE1tvfGUXU0O91MO2mkN0g4QvMjQD0SGq7REgmz8M=; b=Js0nL+ILniWBhP/67qnI9BCT5mcwayr+A3h/R189deWWbJqZ6vdgZ7qBO29CoDNuY3 fyyPVOxVXWCGwEYMO0ESzq8RHqDnEyQM4ka6AB4P/VL8xiNJ0nsbGVs3N4GBkVP6ZGz0 Z/LiwkuiZB+LvQK1LjFSKwqaGftZw4jH0w/J60k/Tz1jtT1F7e5dwtzwMyCQUHanV20l oxmjMSht+pc52h2A4pONnzXeU8dK519aCXHll5CSQhDBWoXNxqDZ/n7WRkUh99tc2fmV 6ZN9FoKIeh2TJmCU0iJZk7H8uY+0s/crnAmUcoSf4V1LL/DGjSHB3ZF8jI2K5Dky5suW n2Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RCXm6D6y; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170906538800b0073dbc331a40si22747809ejo.188.2022.10.24.01.16.02; Mon, 24 Oct 2022 01:16:27 -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=20210112 header.b=RCXm6D6y; 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 S230033AbiJXH4z (ORCPT + 99 others); Mon, 24 Oct 2022 03:56:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbiJXH4f (ORCPT ); Mon, 24 Oct 2022 03:56:35 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB735D0F7; Mon, 24 Oct 2022 00:56:34 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 20so8061940pgc.5; Mon, 24 Oct 2022 00:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=p8SE1tvfGUXU0O91MO2mkN0g4QvMjQD0SGq7REgmz8M=; b=RCXm6D6yJPEsCUFi5KVr5WzqZ+DLz2rJpww5vdWlat6dGr0dSdaoXdg4IBlbcQ2PAd sjCrzW5IotuY0TwwksR86RRVL14Xus163hE2eNh2MbMaJRIVUDH9dyGzZWoaZXu7J+0p q8jUGQIwfN3M3s4q+j5iyli+wWpexUCeK32vVMR/Hf9x1WDV6t8ZvMkgtdOJJ+M8KPeV nl1VwQCsCTqORRR8PY8hKG1HE8q5PygoEACPTX4IwDosf/SgpBgTqJOxTYwNOL7BIGd0 VZ5hjUVowuJHfFQZ0Ch5N/uebe7/lWxoB3FNQZpm+oh4fZ8RQsQEwFEe2H8UfZmXiVUw t1SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=p8SE1tvfGUXU0O91MO2mkN0g4QvMjQD0SGq7REgmz8M=; b=aGc7TJCgNM7xVdoZ/Ccxob7DsyXtQPU7G95rJCmMYlh1scQCgAAUZl9ES3x0t03pNn O4IgrDtqPI97Sh/6oRpy1MLqnV0+f8kW2pK2Gsi1ivqrHo1lwRTLlvDnPs4LVHn25/BJ NAnAvEWCZeTuoroiI1bc/wPwmGr6Dptcu31VIeC3KRj6QlkdIimVrdklb3yKJojj7so1 XqDbZfqqVyoOBqRqu/5xumMahgAV31s3Ch7wPbA0Yh5iP/5TLOTjDXAcsLAcgWU0vXR/ gcTmdgj6Ste9VhFYyRQK0n8jf5xJbFaLhsemwwI24vRSCmUK1IjPspAYlvV45Ls/G65L K3yA== X-Gm-Message-State: ACrzQf1IJekoJOR/qyivxGOVwS8LwRKOFzokcYr0/jub6b/kMSmTyRVa 0/oL3lX8PYCABCydHqIKo1U= X-Received: by 2002:a63:6986:0:b0:43c:8417:8dac with SMTP id e128-20020a636986000000b0043c84178dacmr27054128pgc.286.1666598193357; Mon, 24 Oct 2022 00:56:33 -0700 (PDT) Received: from debian.me (subs03-180-214-233-77.three.co.id. [180.214.233.77]) by smtp.gmail.com with ESMTPSA id l3-20020a170903244300b00174f7d107c8sm19329495pls.293.2022.10.24.00.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 00:56:32 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 681871004AF; Mon, 24 Oct 2022 14:56:29 +0700 (WIB) Date: Mon, 24 Oct 2022 14:56:28 +0700 From: Bagas Sanjaya To: Li kunyu Cc: krisman@collabora.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] unicode: mkutf8data: Add compound malloc function Message-ID: References: <20221024045030.177438-1-kunyu@nfschina.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sDFdsZx+99thmPxE" Content-Disposition: inline In-Reply-To: <20221024045030.177438-1-kunyu@nfschina.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no 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 --sDFdsZx+99thmPxE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 24, 2022 at 12:50:30PM +0800, Li kunyu wrote: > The patch has the following modifications. > 1. Add unicode_data_malloc function, which realizes the combined use of > malloc and memcpy, and assigns values to dst. > 2. Add unicode_data_remalloc function assigns 0 to the data in the > allocated memory pointer. When the integer free parameter specifies 1, > execute free (* dst), and finally assign the value to dst. > 3. Remove the original um pointer related code and replace it with these > two functions. >=20 These changes should be split into separate patches. Also, please take a time to review the patch description because what I read above is somewhat confusing. And the last, please learn how to use git-format-patch(1) and git-send-email(1) correctly. Thanks. --=20 An old man doll... just what I always wanted! - Clara --sDFdsZx+99thmPxE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCY1ZFJgAKCRD2uYlJVVFO o1tBAQDwKcOlq0JzuNcNkJwSJ+z+jSIrFDjUUSEmst/w6+/sRAD/QZLv948kpqlF MELLTE9UeUW+RBSMxJR3O3F8O+oKVgs= =j9Vn -----END PGP SIGNATURE----- --sDFdsZx+99thmPxE--