Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5537237pxb; Wed, 26 Jan 2022 14:27:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVrK+DP5sL7KVPzRkGZH3qnZjiuObiB/jp+8CFvO2TBAb6C2friRKh7BMvk/udjprvbm3g X-Received: by 2002:aa7:ca46:: with SMTP id j6mr1060558edt.198.1643236028403; Wed, 26 Jan 2022 14:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236028; cv=none; d=google.com; s=arc-20160816; b=v5S0YoouPRh17TzEjLouID11nJYcrolQUK0VDt4aou3DC7DowDWo7DdT5rRLHLgv5U GRWriEAY3iFKocA2yEOWf3wC3aMIL2bcWj1FT00EL6sdmDxW2ILpwKaDAlIA0rVjDKMu qxi9czr5vkg7r5xNc/N4QQG5bhj64Z7oOukOr0Z22d1mFUBTHvIDrMw7hD+OGx2SlVyg tMk2i7a1hq0MNnn79PJ98XfezhjM5VtQLzaUUVWTZubzqPZVm0pDm++1vVJMh7MrpFQ0 RtQNKcQ/1KPksVFUgTO1S12Idp3+gYZPTa/ugAFMJET4DMvPo9s4OfkDdL0bgdr0jv1g dcYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YADF+5Hp95lX1U7iHkIXv/l4BvnA5v5M2D1X8ygR0E4=; b=nXMU30Rcgq9yzptSM3UcPYeJyShv8/fz5QM7ywDgvSo0eb8ehAUcERdD06PBjUKAGN dvcCFjcQ8dl7V9us7kM9xJ0HUCutagwMoJ0Kch1gYiU+U2xuD1hEyIerS00IyLbJRZ0A 1+hfhEOkltdFj5hs9+dObbTxiZQUu2ul1hw2Z/2SxttPyNc5wy6yQwRKvTQtPdLVpuCf nhePx8SRWL3fwM10cyOYcL6csBnGBp+J/Z9iaDFc1gv/dRSf2t3cJM+rdtTCkaHyZOgY /rs0K10wauUgqFfc4tQe7V+Zva9nOxG52SLCzXGH7HjU+ajj7Idy446ayHbsUlSNHd2L jGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="F2/rqSuw"; 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=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 u2si293187ejy.26.2022.01.26.14.26.43; Wed, 26 Jan 2022 14:27:08 -0800 (PST) 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=@intel.com header.s=Intel header.b="F2/rqSuw"; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243029AbiAZSNd (ORCPT + 99 others); Wed, 26 Jan 2022 13:13:33 -0500 Received: from mga04.intel.com ([192.55.52.120]:35276 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235901AbiAZSNc (ORCPT ); Wed, 26 Jan 2022 13:13:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643220812; x=1674756812; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=CFhBhSP843Q8YZaso+hCoDq89yEO5QSnWt7DycdSiFg=; b=F2/rqSuwUatGk+C2K40PRuixHk0srkaiOEY77XUiB0nAcevpbdsspjHY 8iajk2j2QaZDHduhA7Fk53nU8Dyd4/2vFnfbb6Rx5mhO6M6AQlviK0x4N JEuI7ZzRk/RV1ru/kPLZtNP/3wljKvE3dZB5h6E8IQS5lk4v8DsGq4r3m bEhh6dWJMtxQy9pIxqp907F6BQVIA/hR2FCP5TKNVA6NvRo6/GSqXwwwe RX1wSutb4lzCcJlgyhJ4g968ViAfARodBv1IrJFao7SNZi+9wztXvUs4C J8l4bSiPLDaP9M/zEQZlYdhXFCxrBiojsr4vctjE0ZD1A5W69EvD4jLqx w==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="245447640" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="245447640" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 10:13:31 -0800 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="674431515" Received: from smile.fi.intel.com ([10.237.72.61]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 10:13:29 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nCmmM-00EhmW-Rw; Wed, 26 Jan 2022 20:12:22 +0200 Date: Wed, 26 Jan 2022 20:12:22 +0200 From: Andy Shevchenko To: Nick Desaulniers Cc: Kees Cook , Francis Laniel , Petr Mladek , linux-kernel@vger.kernel.org, Andy Shevchenko , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , kernel test robot , Nathan Chancellor Subject: Re: [PATCH v3 1/3] string: Make stpcpy() possible to use Message-ID: References: <20220126141917.75399-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 09:49:38AM -0800, Nick Desaulniers wrote: > On Wed, Jan 26, 2022 at 6:19 AM Andy Shevchenko > wrote: > > > > It is a good rule to avoid submitting code without users. > > Currently the stpcpy() is unusable due to missed declaration. > > Any attempts to use it will bring something like: > > > > error: implicit declaration of function ‘stpcpy’ [-Werror=implicit-function-declaration] > > > > Move declaration to the header and guard it as other string functions. ... > Recall the discussion from Kees: > https://lore.kernel.org/lkml/CAK7LNAQXo5-5W6hvNMEVPBPf3tRWaf-pQdSR-0OHyi4RCGhjsQ@mail.gmail.com/ > and > https://lore.kernel.org/lkml/202008150921.B70721A359@keescook/ For the record :-) https://lore.kernel.org/lkml/CAHp75VfniSw3AFTyyDk2OoAChGx7S6wF7sZKpJXNHmk97BoRXA@mail.gmail.com/ -- With Best Regards, Andy Shevchenko