Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp92573pxb; Wed, 6 Oct 2021 00:15:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzizNHbtr38q6ObTrplfNxsufe/B/1VJ19tcCi0vnZRHngaX1N4zFnKklpZRbzEqdXRqpYh X-Received: by 2002:a62:6541:0:b0:44c:2988:7d9d with SMTP id z62-20020a626541000000b0044c29887d9dmr22702903pfb.50.1633504555412; Wed, 06 Oct 2021 00:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633504555; cv=none; d=google.com; s=arc-20160816; b=zSHaKGHna9HZY4icFR7Q7Yeb6CQmWXVJo/PxZupBQPpm7/zU2UmM9Ac3WdJj0oHQyF j7tvhBW0wHu5Jc++BBLc1flQmA0s3WBUiFm/39OvJ/xirUT/YLo2oMhMYSs1D+hl27d9 bQRubWpxKj1TlIGFxltj9OBOIGLvPTMDHalUzAJhpKSlbyXf6WSkNAFolxbh1V0MsBbP SWVM1Mj+KObTtoHuDMXu6mrq6L3T9F4k1VXxuE1rokaeoKhXkX9YatuyCkmPA4ns48Kb bbkAoEBd/IGvKLGIj5JaoOjuPMp5fCPYtB1/JTN7UHpLXyzRjC4I/jhHB6qQEwVCG01/ 7fuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FKkxnwefK1XcTkS6okwbr7gjiMnKsW1UTNUB6PW2j2w=; b=Vy20EEQgoRyNwH8Wf8X6GZLt/SGD/sOi1dVPkNuEVUa9B1nh/apoKbWgs421CTejFX dmkAgpnf+MpIb8WlbpneMwisrKn1/PC9oikm77tqM6t0bCyO7m/pCVks97RF6dhPQy6t Erc2J+sSUi5B+rDQdQJ7SDcy3y1bkN932bfbIsNpDwh8T32f9V3AMH8xDFrLcMDDxOls 4ogQGaLCBOwm3G58ZiriGYczoMbwJFqxEZXwX3t65/mmwumR23kKEhi4zHOvxnIxhCET 5z9arwU823J4oclLhGPHIosHzji3EHzK+QFSTozcI1FhkcfuvtNE2zpXyZ+CqM3firhI 6peQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g06bWCmX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si21243779pff.297.2021.10.06.00.15.40; Wed, 06 Oct 2021 00:15:55 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g06bWCmX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236777AbhJFHQn (ORCPT + 99 others); Wed, 6 Oct 2021 03:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbhJFHQm (ORCPT ); Wed, 6 Oct 2021 03:16:42 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E916C061749 for ; Wed, 6 Oct 2021 00:14:50 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id z20so5940040edc.13 for ; Wed, 06 Oct 2021 00:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FKkxnwefK1XcTkS6okwbr7gjiMnKsW1UTNUB6PW2j2w=; b=g06bWCmXD+yHAFiTj+dK2QFfu3sHDEpXt0L9HMbp4Kxbi6r45x/8xczfAifQ437RDh 6fhDSMLmBCqaeaG2NQQxH2+ujYY/XJBucOOO/e9S81kA8Oc5oBatiXawqNax1N4c+g5j BuD0jEuVAytVHbK4NDUPabBCwVZPilI/Y5xt1vz/b7HCDattQvQfnQsEwnR81TczT4Vt nFewLf4UnOtflL3k8XlEabw/MjJXwADhXJpGubqA2U9l4ZXxxq9wvw/AyPT1KnaeRcgQ VFMXJ/cGbxv4nrT5K+9xFJZ/tPkF6OToqTKXFD78sKwEOR3ZycrTK3h8D8SzDjyuo778 mUSA== 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:content-transfer-encoding; bh=FKkxnwefK1XcTkS6okwbr7gjiMnKsW1UTNUB6PW2j2w=; b=E2sWX5XukAf8J0SGKTCeF8klyaKNzt8UZ90hvb9B8EoMw8/SnJ2jefwL2BYA40sKDw EPNcDNwN7A9T1NQAaRIA2/xR4nhB4oy/CUGdw/11B5pO+vWTNPJrHcFtj1l8cuhosxre w3HfsAipPdiu9fTStBllhmGhGEWZt3yrvGrzCiz8wOZDV4xAm0LVsoTADRnghyUGMqq4 zGDI4Kc2iza5fvk6fK7nmJuo4w+9TEmCN+tolDI1CzvpYEYjxq3LHfkTCqmjoomoYJHF qbZ0pI8a0NxYzB8GGwQc3QdIdrmkfvtpQPCePyAtnLpt1xThi7PZTRpym5K4i48XHD0E 1p5w== X-Gm-Message-State: AOAM530qyA8qC768DRtL4zs1wJ2poDFfVqCSUScTW45m3zdVBaQmCJAh HO7sR84rb6KxakoixKrb3Q63Uy9cm1vU3XHHKi8= X-Received: by 2002:a50:e188:: with SMTP id k8mr33120433edl.119.1633504488999; Wed, 06 Oct 2021 00:14:48 -0700 (PDT) MIME-Version: 1.0 References: <20211005212634.3223113-1-lucas.demarchi@intel.com> <20211006063029.owhu5hjtaivib5d5@ldmartin-desk2> In-Reply-To: <20211006063029.owhu5hjtaivib5d5@ldmartin-desk2> From: Andy Shevchenko Date: Wed, 6 Oct 2021 10:14:12 +0300 Message-ID: Subject: Re: [PATCH] lib/string_helpers: add linux/string.h for strlen() To: Lucas De Marchi Cc: "linux-kernel@vger.kernel.org" , Andrew Morton , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 6, 2021 at 9:30 AM Lucas De Marchi w= rote: > On Wed, Oct 06, 2021 at 08:57:27AM +0300, Andy Shevchenko wrote: > >On Wednesday, October 6, 2021, Lucas De Marchi > >wrote: > > > >> linux/string_helpers.h uses strlen(), so include the correspondent correspondent > >> header. Otherwise we get a compilation error if it's not also included > >> by whoever included the helper. ... > >I=E2=80=99m afraid this potentially can add into header dependencies hel= l. What > >about moving the user to the C file? > > I can do that, but I don't see the problem here... afaics it has been lik= e this > for 7 years, since commit c8250381c827 ("lib / string_helpers: introduce = string_escape_mem()"), > and the only way it was never borken is because > linux/string.h is already being indirectly included from other headers. > So just adding it here is harmless. Quite possible. ... > Anyway, if it's preferable to move these functions out of line, I can do > so. I have no strong opinion, whatever maintainers will decide then! --=20 With Best Regards, Andy Shevchenko