Message ID | 20240205124513.447875-2-tudor.ambarus@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-52632-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp863250dyb; Mon, 5 Feb 2024 05:11:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7C6W+vMtf4xGtEjqpa5/tczTwDqC178WJ1mPJxNWL9ZwsQvZWjS0itfOg4NViNpb9PTzx X-Received: by 2002:a05:6358:a088:b0:176:d35f:9ad4 with SMTP id u8-20020a056358a08800b00176d35f9ad4mr14301467rwn.24.1707138708810; Mon, 05 Feb 2024 05:11:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707138708; cv=pass; d=google.com; s=arc-20160816; b=nsMLjP+H+yQAP8TUUAPRy+8lRuSTZszu5fwXT6jfBuea8qkat0LaUVa6unAX/13lBv j2JNjrE1yKLGA58pd73+uwXaHo+snZPiqaBiiBjnurOxlH3EYyqgE4gx2ducyfReRo1q tGkwxK8IGB8hFCv9vbrvLwbtugJ7fNnUYAvwsBDIofwef/1vw0gUc6UbKgpVPRamXZL9 baL96EtR4xwHo0gmtSiMlYtOAcY5jbq0sshem27gnMXMFjVYy30st+tLoum6E+MvGPbl 2KvcguB4LMYOuCQl5QCn+0Zcp/NSRryGAHSSxHqnTFoxfQEV/ElrPCp2RGbXwA5lvvTS DphQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=G5ZHz3RUkQzpbVKYtYrrDh0U5BmbIjj4KbeJaOU/Fns=; fh=V1ywCIhElRCJT7N8knpwCebvvozfsjXH+F7hsfAmHxs=; b=Oz6Dpo7yTTj40MwfMBxJWh853rPB6SxI33OJXBQD5QKVOOhQ3+hlrbYe2rAk8++MHi 13jhSOs+bcxisRxPw78yhS4B1T5kdPKgUpU43E4COpp86XF31Q4GybVS1Zk4+0YraXTh kz4CCu04XhCW9EkxIHjJ/AfUEPp4WWlXlulnHvo8NznG+nqOhxzKoQvqRxiTjSRBOozQ XsQwvhsBjcM+6UFMaDUIim3yce6Ipcc0rjESB3zQsM5oWzGAfWR5Ss5hExK34GZVnPs4 hALECqLNFrBL1cTYYmdylfUCXULwjSz3G/WcOv91AHH3kVKWgUc7u/IWtWbEh0LthyHI sZig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AfrLPn19; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52632-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52632-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVHpEFY767f/ilD714fHu0qRM6uZ8RlbbCfjfUJE+7V59Jgvxh9eeHupkfhWUp3iYl7FMPzKKHF1EZlW+gKpUrliD6Pbw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w18-20020a63fb52000000b005da44f58de9si5937492pgj.79.2024.02.05.05.11.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52632-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AfrLPn19; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52632-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52632-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4A66CB20CDB for <ouuuleilei@gmail.com>; Mon, 5 Feb 2024 12:46:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B097628DD0; Mon, 5 Feb 2024 12:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AfrLPn19" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 E1D5A1BC58 for <linux-kernel@vger.kernel.org>; Mon, 5 Feb 2024 12:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707137123; cv=none; b=fP16NT9gog3kEV5JpRoTJsn87wj1IZ8w0KMa9SbWpwqIYpTv9dZwbSAQ9DpQkef0UpOwhB6qH8pteH4d6508OPKbJ4S6DfkMu58Eb6NHjMD99WI8SyRieP9YT98vL8kI+rIleM7Zj2nO/r9NfNku0LXJ7ZAg0KUFpDW+FGd+p/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707137123; c=relaxed/simple; bh=w5JFDx3igBQ6hCvWUpDTLodih1IhDobo9CBbUVJNHT0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IQ8Cw82AGaXSXvZ6Os5tLpX5Ty3/MCk6Km4vPlncKZJgAggfabLpcSFBZSiui6kgXinVti4efKvRNYksfgaOnEm9eFp5YGgMkAMvuWEZFcLIuAvpTy+E7LScjypSB8KNhIZs3e0cN66Gmnp93pS/OtxV095VmGqDQokc8n2RozI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=AfrLPn19; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40fd55c7f93so12810185e9.1 for <linux-kernel@vger.kernel.org>; Mon, 05 Feb 2024 04:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707137118; x=1707741918; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G5ZHz3RUkQzpbVKYtYrrDh0U5BmbIjj4KbeJaOU/Fns=; b=AfrLPn19rAnlYjgMSt3zmwaoRTjgrHtP6XChKelZ3zrZNcueRhteLqgKypIdnUe972 cVupn9gFODR5HHxQO7lQFSPHs596k0X1leFfVQ22iy/fQTs6ya2FEbdvEiNh3czJ6hxz 0UI7L870mEscceHvFVzz0n+7FL6u0pjMcmOfgHHWC2yd5F5NQ/GGJAI0keVdYPGiILN1 zkntVg/i6E7na+nmjzj2H6F9Lur+T02CEBYYsdwM95GRpJ2TWYVDxwBasKkVBzoC97sO DKFOGY/XjcxZ3Bi64TB8lJ0CseIqLbx3zB0K0n3Us1yvyNP2ph/WsOO5Gaio17+r6UPW fgdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707137118; x=1707741918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G5ZHz3RUkQzpbVKYtYrrDh0U5BmbIjj4KbeJaOU/Fns=; b=cuWO5xheDEbNrvijvMemEBjaaRKDJr9I6aFvzg6chfWKrskm0bjfMWB9yN5M97QUKF gU33ZMw1OStang6k/Pc4HcaU/xchVQ7orPvcAL4HC959ZvMWC9FI6fRy5b/9dA7g2yjn vZfvHzan8aMhxkLkoCeKvT2t9m/+Y4wYtVZm40dxfW9xLWy8LACyiC+JG+7aYaLYj5/0 Ed82bVaCnWkUXJ98j+0njRevGmqH/Mjt25tsdULFDz0WNz0Ns7u1bIUK/ARHNq3Vm4nL RjRTWnpAR0TIk7AFJD5bd+EeM+I63C8KXpsKhsIb3t172T7IpoSJDj9I6fWqcEzxuh3/ MEvg== X-Gm-Message-State: AOJu0Yw5dzLw0jUf6UNJ4XjJDBC7vov8eLACVxAucupKfpw0R5DKDUkT 4wHhwpqBkkMXHnBhaSvMjH+1+mvXa7fYEQ3MTgwj5+lgpzD7sqTh4FSYXaOoP4Y= X-Received: by 2002:adf:e5cf:0:b0:33b:271c:7816 with SMTP id a15-20020adfe5cf000000b0033b271c7816mr5677447wrn.34.1707137117995; Mon, 05 Feb 2024 04:45:17 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXtbBtwOp4puWrLL5c/VhRl/CPpo7l2wIBvMapxm89/G7uxlduwkxRUThQZ0QEbczFrOy48ou7ofI5BCEX40lsslzCFFjvWAjmuzT8DjVAW+riZ9tU5nE//rSfXikq78EmH1ppYoo96wXmU/vYmhOfuAEGjukCYaq+1IxulzaxLMtMl4koGrrABfSCPx1y73OJTy4thv/5CfAlkB6PpHktM7bLpjIcgTC+ms0jQsrpjKsj9eQwKOVq0sm7DJdOMsZb5s0mrIEMDqkFSI4+F7+Q6ZfhXh5Lrvc2+bBv2CzNSlKm8k8btEv14J1iv2H7Vq1pmzW9ipVGP8BFDGuKP8S0GQwg2uVB9LpURT2M7q9iuqF4qkZPx4OlNFnn9kqqrpwFtWe2qqbPhI5ju/hL9LSwSgZFo2z8/D82IwbTrrmKlgcSY9fveajc8V715ICpC2OfquSxvtrDUPp3Tj9qMg4DRZf1JBbDbcYaDoqzWM4SOw2SUaiu5kmkqiu5i1Q== Received: from ta2.c.googlers.com.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id n9-20020adff089000000b0033b35da384fsm3650812wro.33.2024.02.05.04.45.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 04:45:17 -0800 (PST) From: Tudor Ambarus <tudor.ambarus@linaro.org> To: broonie@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org Cc: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus <tudor.ambarus@linaro.org> Subject: [PATCH v4 01/16] spi: s3c64xx: explicitly include <linux/io.h> Date: Mon, 5 Feb 2024 12:44:58 +0000 Message-ID: <20240205124513.447875-2-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog In-Reply-To: <20240205124513.447875-1-tudor.ambarus@linaro.org> References: <20240205124513.447875-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790064678388212701 X-GMAIL-MSGID: 1790064678388212701 |
Series |
spi: s3c64xx: straightforward cleanup
|
|
Commit Message
Tudor Ambarus
Feb. 5, 2024, 12:44 p.m. UTC
The driver uses readl() but does not include <linux/io.h>.
It is good practice to directly include all headers used, it avoids
implicit dependencies and spurious breakage if someone rearranges
headers and causes the implicit include to vanish.
Include the missing header.
Fixes: 230d42d422e7 ("spi: Add s3c64xx SPI Controller driver")
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
---
drivers/spi/spi-s3c64xx.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, 5 Feb 2024 at 12:45, Tudor Ambarus <tudor.ambarus@linaro.org> wrote: > > The driver uses readl() but does not include <linux/io.h>. > > It is good practice to directly include all headers used, it avoids > implicit dependencies and spurious breakage if someone rearranges > headers and causes the implicit include to vanish. > > Include the missing header. > > Fixes: 230d42d422e7 ("spi: Add s3c64xx SPI Controller driver") > Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> > --- Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 7f7eb8f742e4..c1cbc4780a3b 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -10,6 +10,7 @@ #include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/dmaengine.h> +#include <linux/io.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/spi/spi.h>