Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5051837pxb; Tue, 5 Oct 2021 16:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaO1gOpl7/iql5NaUR9z6Jw5golmFn3lc2tiboFwWegWmbeZTI+VnbQCZFoJdkMpO8mBH4 X-Received: by 2002:a17:902:6e02:b0:13a:41f5:1666 with SMTP id u2-20020a1709026e0200b0013a41f51666mr7834772plk.39.1633476916714; Tue, 05 Oct 2021 16:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633476916; cv=none; d=google.com; s=arc-20160816; b=PqQqwbbeIrTdvaDQLZc674cANaxt9VXK884qsfHm6nYWUnTsomypTtX6I0OyO/mx9g FDXfX4z5xWFFKIPxegeD0pn6JQfHHgQJoKoqm7oI9fHknnulHSCxknyxulDfjJqb2jM7 V9GB28tID7o1OPuh2ONEOCvRMAKPjCY3IUpRsehFPdkYHi8T4MtuBuIf8N5bWg/duwVO zyz9qZXWMxklBVa8AYStiCwhD+7I+ucugltH6h7FL5TsyAVvP2j+2FdvoRxL0wUpuqJ/ XiaZMtY2ZbAU/EWzZC3nZfSUzZBsTzd1GJRnY5LY1KQHJYZN97cTOHKlWEQ89zxvsq7s 5xfA== 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; bh=kTEFUA04Uc7EIBIuM0yqv/PnZ4IfEdWjgKfw4kfT6vs=; b=o5akwEFtuIXI36G7JrLGe8yHlVmV2AdMDJQyoRqJTzN+fA+teXqjXeM6BCJ/vUdnpD BqW3WHDFlCOckQFP3LU4gPEiK/9JGJUVdVHRUn96sWqaP3e0xTejbLRarhOF/C0HeRe1 DuhTaHrAQS7kORtXRvP9WwvOi5sxTkeH2DZgE7ajY1FPPo1BK0RjeCEY5Nwyt9Ynt5sD x6lzrT8ZtA4SpG2M1SZHwglL/+eJyBv4k4R7S85DOvyx3ODEV+KpS1DailnOw7kizMjz 5QH0zg8VItnpIcyEvxsmtydu+73X6Kdd2aIJwnIm40QNww7CbNwQzZZ+HBClQtSWPIdU eBhA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si6703085pgy.578.2021.10.05.16.35.03; Tue, 05 Oct 2021 16:35:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236928AbhJEXfd (ORCPT + 99 others); Tue, 5 Oct 2021 19:35:33 -0400 Received: from mga01.intel.com ([192.55.52.88]:52060 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbhJEXfc (ORCPT ); Tue, 5 Oct 2021 19:35:32 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="249152724" X-IronPort-AV: E=Sophos;i="5.85,350,1624345200"; d="scan'208";a="249152724" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 16:33:40 -0700 X-IronPort-AV: E=Sophos;i="5.85,350,1624345200"; d="scan'208";a="656787478" Received: from pwali-mobl1.amr.corp.intel.com (HELO ldmartin-desk2) ([10.213.170.68]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 16:33:40 -0700 Date: Tue, 5 Oct 2021 16:33:39 -0700 From: Lucas De Marchi To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH] lib/string_helpers: add linux/string.h for strlen() Message-ID: <20211005233339.luuyt2spalfirqzt@ldmartin-desk2> X-Patchwork-Hint: comment References: <20211005212634.3223113-1-lucas.demarchi@intel.com> <20211005162121.a9eb9b1af38f56566a4bafdb@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20211005162121.a9eb9b1af38f56566a4bafdb@linux-foundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 04:21:21PM -0700, Andrew Morton wrote: >On Tue, 5 Oct 2021 14:26:34 -0700 Lucas De Marchi wrote: > >> linux/string_helpers.h uses strlen(), so include the correpondent >> header. Otherwise we get a compilation error if it's not also included >> by whoever included the helper. > >Is such a compilation error demonstrable in the current mainline kernel? No, not with the current mainline. I was just starting to implement some more helpers there and noticed the issue when including this header from i915. Then I noticed Andy and Jani already had similar patches to what I was doing: https://lore.kernel.org/all/20210215142137.64476-1-andriy.shevchenko@linux.intel.com/ and https://lore.kernel.org/all/20191023131308.9420-1-jani.nikula@intel.com/ So I'm following up on the first thread abovee to figure out what would be the proper header to implement this. Meanwhile, we can have this quick harmless fix. thanks, Lucas De Marchi