Message ID | 20231220015106.16732-2-warthog618@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-6267-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2359198dyi; Tue, 19 Dec 2023 17:51:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8qj/xRhM/TU/4hLbx7/gbDrW40QCuDAn/78I53OljmxuwnW89rH2MzYPOTXwctS0phnCC X-Received: by 2002:a05:6808:f91:b0:3b8:7f1b:df8d with SMTP id o17-20020a0568080f9100b003b87f1bdf8dmr22389510oiw.35.1703037116545; Tue, 19 Dec 2023 17:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703037116; cv=none; d=google.com; s=arc-20160816; b=cHdZTN9vPkNMdfh1iOzVg4UXeIzUptw57YxBQvY8VaOfPwCQ4My11VpLdosjN2vTJs ecah0CxHS568qm/rAc1bte+1yBQgkh4dxUPJg48jALJzKi/f/hdas6d5eobycNDa/2E1 CnWCfwP1drPLeuW6rviA9hXwv+yET/glc0tcrcE2pzcC6Lw3fVLBRwXSjnCHUEve/4Fn AXJT2p/VsP7yVygGzRoiGAJkofbc54EGHhm8OOfRfPnoa7frfjxb0rVIs6RJZvoJRBo4 Wkhzu9Gm5mF5G2nw5MGT6qlrbrHI3Ako+G95pJ8nPJrhPEesbl964tq8KsXtTVyitnCQ keRQ== ARC-Message-Signature: i=1; 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=fIe64+aq/lZJDDELMuKdnpexZanQFZNO/4y/47rTO3o=; fh=GNOA1jdeAuH+tfAEzFx15vIukVGFZnqrW9xHApUHjl0=; b=JqTOdcV4f0mKPBEhSdr/lv0etnpk7ZOQREyujb7B3qnOJvPKwk1ueUf1rknT/Ga2Q+ lzylGq0AEL/hBGl2udMxzBNd9fwBmSuIEbz+QMeWX1WHb9FtdN38w/n9iVGo4B4+hh6k bVLyZfcT1uo+MbMzBgPnXo8kf/0TyB9uoS4K52HFahaTl/WNTwuMDZImZBTQETMfAIVm jk6Ty8GTmXxP7S/OGkb+Q/AHBSc1Xm4GfIwaAuG8GJ/HohO/5Fwv+Ur4FwoFi/J7HkXs E9axMqDaL1lLrpipgWrQREIv87AuzcyZxvZOo8wGC1tMeyLGUrylCuBBAdVtQPOj6i3X 3jZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M87ghTIO; spf=pass (google.com: domain of linux-kernel+bounces-6267-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6267-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r2-20020a62e402000000b006d92fd3b0bfsi2370685pfh.78.2023.12.19.17.51.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 17:51:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6267-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M87ghTIO; spf=pass (google.com: domain of linux-kernel+bounces-6267-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6267-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90FC1B247F1 for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 01:51:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43CFB8F71; Wed, 20 Dec 2023 01:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M87ghTIO" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (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 4D22D8C00; Wed, 20 Dec 2023 01:51:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1f03d9ad89fso3511765fac.1; Tue, 19 Dec 2023 17:51:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703037091; x=1703641891; 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=fIe64+aq/lZJDDELMuKdnpexZanQFZNO/4y/47rTO3o=; b=M87ghTIOnr0tO0BlINWetR2NqCcePFxLo02NurXxXED5SwJj0CS0HNNQZi891faa+/ 7U9VfIVbLwKF5AsbD7hC2zvhH6JJSQjv7oHvUlDmi+qkhWGUz4yg59a452L2T3Oi2Pjf C7KCL0RPK4AK5aR45TXH2sGwXdCndAg/yeHkwj2JX36a9dCsWMxXsLIpcLdeyHP29n9B LoO5AtWKicb3TVBK52HrQUlbsrlAuaZpAz8IzP9bPTu7Vbs0LEb898YFQfllQ+SRW3R5 ikXpMvdSoHERFyyNJwEiLh6gA26ZB+1caVnSAVPo4+Me6pd1SdA7fxr2TJebGZPBPHmf r5/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703037091; x=1703641891; 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=fIe64+aq/lZJDDELMuKdnpexZanQFZNO/4y/47rTO3o=; b=WybO+f22SmwUDFhC4U+0rIxVzZxE4TgLR1VMh3qX6x+yeA3aJDU1KOmzsRkmZg+yqn kHujiOqIG/M/b8ysWo0pfLASZNUy+AvUx9O7szynT87Ij9cbUYnUPcu1FzF1DjweaFm7 7NTDT3k8JQCF6JI4O+dOde5EtU67KwnE/UoEevcmHqrRmh/S8dtV+JHuTl/aQPUr1kG6 Um8qO2yI8DWXBuSLHE7esGPSkeZBHVb8/Ed9c0Yf2F0+TZfRLdb0JTHGAhI1TqavomR7 yR2riVsyI2GhyrULUDrqfxT67n+jnNg5CwY0bk+YiJ/FDGLJpswEV7cR4g364A3lX5Ql 2lgA== X-Gm-Message-State: AOJu0YyZnhYKRFycIFaf0D+r1abx2Zy0AYMIGGz34o/i1z1n4MQ3dHLQ ug2lvW7JtGgXnWo8sWnwmn7S3rBtNzQ= X-Received: by 2002:a05:6870:b004:b0:1fb:75a:6d2d with SMTP id y4-20020a056870b00400b001fb075a6d2dmr22449061oae.84.1703037091372; Tue, 19 Dec 2023 17:51:31 -0800 (PST) Received: from rigel.home.arpa (60-241-235-125.tpgi.com.au. [60.241.235.125]) by smtp.gmail.com with ESMTPSA id c17-20020a631c51000000b005b92e60cf57sm20133208pgm.56.2023.12.19.17.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 17:51:31 -0800 (PST) From: Kent Gibson <warthog618@gmail.com> To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org, andy@kernel.org Cc: Kent Gibson <warthog618@gmail.com> Subject: [PATCH 1/4] gpiolib: cdev: include overflow.h Date: Wed, 20 Dec 2023 09:51:03 +0800 Message-Id: <20231220015106.16732-2-warthog618@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231220015106.16732-1-warthog618@gmail.com> References: <20231220015106.16732-1-warthog618@gmail.com> 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: 1785763847909478290 X-GMAIL-MSGID: 1785763847909478290 |
Series | gpiolib: cdev: guard tidying | |
Commit Message
Kent Gibson
Dec. 20, 2023, 1:51 a.m. UTC
struct_size() is used to calculate struct linereq size, so explicitly
include overflow.h.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
---
drivers/gpio/gpiolib-cdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 744734405912..44d864f63130 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -20,6 +20,7 @@ #include <linux/kfifo.h> #include <linux/module.h> #include <linux/mutex.h> +#include <linux/overflow.h> #include <linux/pinctrl/consumer.h> #include <linux/poll.h> #include <linux/rbtree.h>