Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6776671rdb; Fri, 15 Dec 2023 08:05:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8eepz9N69aI/V6Uw6uggQuBTKrocgCnaPaR2tSXZTjNZ4nRD8pLh4wyIW7abqbICqsvis X-Received: by 2002:a05:6a21:610:b0:18f:97c:825e with SMTP id ll16-20020a056a21061000b0018f097c825emr6375068pzb.104.1702656306090; Fri, 15 Dec 2023 08:05:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702656306; cv=none; d=google.com; s=arc-20160816; b=IT/AQvcO1BBmhjmwLJCDminlkuaNUNLQvGDg3KZUHWNOZL975biSQ4nGp1tGmygA4M WDlmQuYbOB0dnaLvD668rS1Ccrx5BSmo9GLuiOC5EtcoCzNxbGIbKDW2iHTaN3VJrHKI d4QYM0E7dVCv26BZ6eGEkX8ceAMlq++Qc3y8IrY7AykKC1mu8KvOlrTSTozV2RybGVAo VfJI4l1i0+mPh3izIn36RWZmD+wzYH7jaHyx1Oidt3bC6isRNDKXUBBwWRMoqKPITCVL rCD9T14R2w2wkfTnTAL7jnZZm/pKJ7Cv3AXG1lP9QilckkElbE/H+QtDXlYWPylghPzZ ohzA== 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; bh=36oVjpNj/U2KFU8g39NqsTq6uhr4NvJyMZds2q3y4a4=; fh=3TGqEH+eF4DshGe+nn+HZ0fNGrbfL6lX+940/JvH3FQ=; b=IwVbF9vU5TU70x++XDIxbFc178rXo/c3jDd/ZS1ay9Di5RZtflPjjYspolRjaEoSoV SKDjTvdIKd4keAF8yWTLem7Fxn2Szu3IRl1NfLe7gSey/o9ZcUB61mpcteQQkboFlMVP rDxgN5HaGmRs3EIfU/NkQp6uNAJZGaI4otzhNu4goYTUxjYnuX3RGGLTTWZWkGIpwVlG NoG1NI/Sxk1sNNutG6X1fq87MZLIzhIxbq5UvgxXmNQibGwCnb2X5vrj58lWnCN6xH3z g2qMyiwJXDcm+bXthjRR63Mffy9+pU7gJgr0ZvZiX9Vi4HY2ME3LV5UwcSYTbWmjNLWm j7NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1251-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z9-20020a63e549000000b005ca4098bf58si5765906pgj.647.2023.12.15.08.05.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 08:05:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1251-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1251-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 909492859BA for ; Fri, 15 Dec 2023 16:05:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D69013BB27; Fri, 15 Dec 2023 16:04:47 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) (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 18B28381D5; Fri, 15 Dec 2023 16:04:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="398084157" X-IronPort-AV: E=Sophos;i="6.04,279,1695711600"; d="scan'208";a="398084157" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 08:04:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="865445044" X-IronPort-AV: E=Sophos;i="6.04,279,1695711600"; d="scan'208";a="865445044" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 08:04:35 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rEAfw-00000006ACe-1HeD; Fri, 15 Dec 2023 18:04:32 +0200 Date: Fri, 15 Dec 2023 18:04:31 +0200 From: Andy Shevchenko To: tanzirh@google.com Cc: Kees Cook , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Nick DeSaulniers , Andrew Morton , llvm@lists.linux.dev, Al Viro Subject: Re: [PATCH v2 1/2] sh: Added kernel.h to word-at-a-time Message-ID: References: <20231214-libstringheader-v2-0-0f195dcff204@google.com> <20231214-libstringheader-v2-1-0f195dcff204@google.com> 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: <20231214-libstringheader-v2-1-0f195dcff204@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Dec 14, 2023 at 09:06:12PM +0000, tanzirh@google.com wrote: > This patch includes linux/kernel.h in asm/word-at-a-time.h for the > sh architecture. WORD_AT_A_TIME_CONSTANTS depends on kernel.h. > Making this implicit dependancy explicit allows for later improvements > in the lib/string.c inclusion list. > > Suggested-by: Al Viro You forgot your SoB, but... ... > #ifdef CONFIG_CPU_BIG_ENDIAN > # include > #else > +#include I highly discourage from doing that. Instead, split what is needed to the separate (new) header and include that one. > /* > * Little-endian version cribbed from x86. > */ -- With Best Regards, Andy Shevchenko