Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6267932rdb; Thu, 14 Dec 2023 13:08:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0huNqSztCI9WSdTRZmQO6yfEXkuL2sG3Dtzdmeeg7hdy0QfQfmoMmlfkshHcWRsVU2eqf X-Received: by 2002:a17:907:7646:b0:a1c:cba3:8452 with SMTP id kj6-20020a170907764600b00a1ccba38452mr5019637ejc.48.1702588088926; Thu, 14 Dec 2023 13:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702588088; cv=none; d=google.com; s=arc-20160816; b=z/dYo8JdA5FM553WozEKlLWh4iVZQ/++B7peHB8e32Lki9lmKu2BEYiyJhFonBb7YV 5I2IbS9m+fDQikD7wgE31QISH3HNsxEj6L3iO1NaGcTCpVXYj1yNDU6X8qEwQeqQD8V7 YiAmUZ163LqEZCrsR6Y7fAWpzrMPpZZgMUkZn6wna96VWpY5lf/T/P3X4SUxZrJUn/Cj Nhw1bc16eKRO5DVJmu+O9pyRHv7gihtpTcgTYOvY0bZCmdJC2yPp+QnlDC45bC+CQKTR pJSA28CTS7CzfZhmyfsjupwmB8q0hRm6tlPDeti7MmzI1R3I7yrhS7GXrLzety2ZsVGy JzsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=GxLPM1oqmNGerHkMNP4+xZeFGhPzqpzdxyTLE69WerU=; fh=KUvtV6IgR0NgB9znxwCSXasDyxrZmY4QUVKpCbUe9Ys=; b=VcqD90byJfQZU1IZ0eqVWSQHqWKm4MPkffJdOensqcB8CDJZQ5uJHwbOq924exy53H YD3aDpinI/UFEeyqe6xActF4FbLTebCdJGRnESmnmojJpvDvC1sOaN3svm35OLoBOktu Ob3PKz1d4PCJzoQd38V8brZuBAkOs5AdAdJdMnX6Ai5PlxGjMUbDz7Yyfsn2puGRTyl7 s8eu/xSqhf22mcikHRUZei55E1SjjbZTxQF4VJqBPuUS2mKkOzAyjNbGRu7kSsps+OFs PPd2gx4OzZreaZTDUxvlPyZSq4ZqrhwEJ+a5Y3Mr+L85p7ziOfIicBSIv4xSH+Lj/FGI eSmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IuQccIbw; spf=pass (google.com: domain of linux-kernel+bounces-111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z24-20020a170906669800b00a1d9ee5cbbfsi6794719ejo.557.2023.12.14.13.08.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:08:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IuQccIbw; spf=pass (google.com: domain of linux-kernel+bounces-111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6E00E1F226C8 for ; Thu, 14 Dec 2023 21:08:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22E6B6DCEA; Thu, 14 Dec 2023 21:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IuQccIbw" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E3786A001 for ; Thu, 14 Dec 2023 21:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tanzirh.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dbcca4c56b9so3181611276.3 for ; Thu, 14 Dec 2023 13:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702588044; x=1703192844; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=GxLPM1oqmNGerHkMNP4+xZeFGhPzqpzdxyTLE69WerU=; b=IuQccIbwI3t5RGVq8DSFSZJWDzoaPScLNd1aOXKEjA7vD3C4mQ1BfJ1znZUgqvzj3T 6HgaXXvX85AAVKQT3JO7c12sz9TYXyAHOFOkWwcv9F2pjYx/dEVs/UHsQwYt9fleu5N+ /8F4ObHSFH7Yft4MGk0n3dbBpswpNnhqYpsNqkzi/dRAExG7DvknNwgFY4xCI6goB99N 08lPbAna4ZewPuZYgih7v20YAXq3Fjv4oOSriZVHOj/4CWiNn40Bp2EeJZ2LJ7Ax/xzP q8Gn/9judnOrjyS4Rh7KAUpYN/0Gw9alm1Wpuip9EbwYMH0Z64Ogh8iN2XH6+r3JYRRX 3nLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702588044; x=1703192844; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GxLPM1oqmNGerHkMNP4+xZeFGhPzqpzdxyTLE69WerU=; b=nCZ38JJutuu4Oowv2BULlOajOuyf67sEBjQZYzTt8it2fP0gGAIEwckit4QyksBsPp askwaLKAnX8BqD5JLXwl/j5DE3rLAJ1fl/HgUblpYuwOL3yypcQPsSPcJTYu9ZpiVqqz ote85epAaod5FLP/38IAP8uLSRR26fXoLuj2iZ+myHqvW7UyufhTPSUUwGGFRvOxDeW/ qJLnmk0RqQgVtRZOBSKx2w3UleIu1Xq9LI3ooDS7zU2ZXEWHwfU1Lsd3AG0LrZ/EX0lp ytywQuBHXCwFlH6nXJwF88XxLb9YOGktxFFPfrU26CABFfCkTgVNo33wv+DClp5/Xw1w fO2A== X-Gm-Message-State: AOJu0Yw9uI+IU9hTv1GYsNQTzhk2HmnSU90Avb6eWm7UPX+xiFoLpccM Kq19M5IgGk+2YDDA/RbCGHeLxh6KpoRz X-Received: from tanz.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:c4a]) (user=tanzirh job=sendgmr) by 2002:a05:6902:1345:b0:db7:e75c:24c1 with SMTP id g5-20020a056902134500b00db7e75c24c1mr14651ybu.9.1702588043996; Thu, 14 Dec 2023 13:07:23 -0800 (PST) Date: Thu, 14 Dec 2023 21:06:12 +0000 In-Reply-To: <20231214-libstringheader-v2-0-0f195dcff204@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20231214-libstringheader-v2-0-0f195dcff204@google.com> X-Developer-Key: i=tanzirh@google.com; a=ed25519; pk=UeRjcUcv5W9AeLGEbAe2+0LptQpcY+o1Zg0LHHo7VN4= X-Developer-Signature: v=1; a=ed25519-sha256; t=1702588040; l=815; i=tanzirh@google.com; s=20231204; h=from:subject:message-id; bh=7hhCHMZ64vzG26ydgTYNXlYZ8X3Olq+V06BfdYggSYo=; b=2xXCyTjP9XZppKjpc3ICzOEWNBCWkOuL3pfPLeXwpxUsepeC/rvl31dRR4SAvkKaJIwOJisuM 2Trf8HpEghbDFhMnztWWFe/NalZlfE8igHkdkOqJ0RQ2b/MWRjjy72t X-Mailer: b4 0.12.3 Message-ID: <20231214-libstringheader-v2-1-0f195dcff204@google.com> Subject: [PATCH v2 1/2] sh: Added kernel.h to word-at-a-time From: tanzirh@google.com To: Kees Cook Cc: Andy Shevchenko , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Nick DeSaulniers , Andrew Morton , llvm@lists.linux.dev, Al Viro Content-Type: text/plain; charset="utf-8" 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 --- arch/sh/include/asm/word-at-a-time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/include/asm/word-at-a-time.h b/arch/sh/include/asm/word-at-a-time.h index 4aa398455b94..f680f5f1d626 100644 --- a/arch/sh/include/asm/word-at-a-time.h +++ b/arch/sh/include/asm/word-at-a-time.h @@ -5,6 +5,7 @@ #ifdef CONFIG_CPU_BIG_ENDIAN # include #else +#include /* * Little-endian version cribbed from x86. */ -- 2.43.0.472.g3155946c3a-goog