Message ID | 20231221012040.17763-3-warthog618@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-7720-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp120150dyi; Wed, 20 Dec 2023 17:21:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBOSq6Fg2IZdVxyYnqZcWTVXfTHgWp2XX8jr14wQkMX3FmB3Qvnj0w/9u1lKJi6NWfKH3W X-Received: by 2002:a9d:4d91:0:b0:6db:9eec:f3e1 with SMTP id u17-20020a9d4d91000000b006db9eecf3e1mr3708254otk.28.1703121705909; Wed, 20 Dec 2023 17:21:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703121705; cv=none; d=google.com; s=arc-20160816; b=KZ3putB6WvX2cU2wrQgL1kYiKyt96vPUPeJHGqPyO8Tx9RGbb73/0mgq/LWP2MGaF7 rfCz5vK0wcXHBHvX4Ssa+Pd/qGV+RBBsteGRZDHjDcbtQpWqlIIURtsI0B68MiNpI+Im fqDRvrOdWKGz9H7RS4D7E7n04aGP7TyMPP5kKNsUbiOyN8Nrt8Qlq3vyu1qavSGHnqr1 aW1nJzdhYCd4Y/KB3dCoT2I0W92F0Y3dJHMTIo8QIXJ4wuUsTf+pIWNgu1ztcaAM9Nhg 2Q2JeJFdl8jnI4JM5wpksEkG6u2ftNclLBSsEoY4k1G4FTvWX82wDDnDmdhouqB9IXkU Ur/Q== 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=H0+OiIGPu+HUKHHy83yKhozaVuLruzud+CSwPTxOtko=; fh=GNOA1jdeAuH+tfAEzFx15vIukVGFZnqrW9xHApUHjl0=; b=WiRmz7HliBT9Z1FEfyjhaWmXxq5aTc38d7Ff98YWYXQHvq1grN6kbbkjlfoJBwQWcZ 5+KBVCrBavuEWvm0AFN8YUsRHC7xfALzn0UoetvPAQoRnAhRflChRVxGAhnCH8PDXzHk JFwwIsAUxd7C9k9LKGTVBEQAl9Pqxak92cPsOSXQARKHBDoyx4zWNNYcN29k3+kHMDYO jIX9Dy7yST1JcBJHj5wzzQeMdKyM6k32suW9PDT+Gkmdb3H58TmwRE8RWuuuYo2Wufqg aLTfwIkrTjSQPqxhYWkFDS8VUSRw+PbAVPZVSx1XdaIaTX7Pefl997KHkDUfHW7jw2XW cquw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hgbhec6t; spf=pass (google.com: domain of linux-kernel+bounces-7720-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7720-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 p8-20020a63e648000000b005cd88585706si608481pgj.828.2023.12.20.17.21.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 17:21:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7720-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=hgbhec6t; spf=pass (google.com: domain of linux-kernel+bounces-7720-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7720-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 EB0C4B2427A for <ouuuleilei@gmail.com>; Thu, 21 Dec 2023 01:21:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F6343C02; Thu, 21 Dec 2023 01:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hgbhec6t" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 3D61B441C; Thu, 21 Dec 2023 01:21:30 +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-pf1-f172.google.com with SMTP id d2e1a72fcca58-6d940d14d69so212279b3a.1; Wed, 20 Dec 2023 17:21:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703121690; x=1703726490; 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=H0+OiIGPu+HUKHHy83yKhozaVuLruzud+CSwPTxOtko=; b=hgbhec6tvgvwNiiyP5nKYCA6iNmD6dQGhr9/zh0FhG8eWSliw9VBPzfKxNxi7yBhJr b15+szLGoY7oGoedeG05KwiQEPwetJJMXfbwm2LtZ0esMx1nipPAoDKlXFLOakIhK/Oh OU/WcgmhyXr4IHCKOdCRWrF7kWDcl7c4aQjg7K2CBRcjePORavqbiO6ZBmSJETwfMZqR jX0eBV2gj5ZHYFasrqiMtvVLwYtGgJoT7HVpVmd7qv/jHT5k6YUC4pmnhyMy4IrfClat 5aruZdTW+FYTVS9LCIahbfHm4FOGn5+5YU5y5idSGi7Ukfk/U9cDLtgSTods14WSASlf P5zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703121690; x=1703726490; 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=H0+OiIGPu+HUKHHy83yKhozaVuLruzud+CSwPTxOtko=; b=X2/UfVVMofnIUY873y92NtgNwxfskjmVBwQn+Bs8IBoO+pcSeLvFgA1RixubaeiChz 0O53iT4bcM8b4NxgB3dp9BHuBskSrIuEMuUHMp5hRzPX58p4TsALBFDuBiuwC1Tlw2VK Vk77+7RBH9T7IvkzUZ26mBYRjwtjzROW10yQRNVvZuUzY6N3Bf9SoG3Fd3EdtFPI8tba LTHcnpM8rOmUY+sZ7yu13PgUEv1iYEjDi8R1+b1EWr7DFV4LToCqdbrwuFkQTbRbJlFi XqDpKdpqlhWDkgfvLUssZ+en54+pnIS3yqhwylOOuG61NInCHrYXIY/v3pj0lgcwcwPC MMSg== X-Gm-Message-State: AOJu0Yz9MRCTxf38P4f1JJonfW/kHFmZhYbY9y/mtB3aB9Remuh7sNs/ uov/qXf+7AtrgyD5v3CMsyaY8H64Qy4= X-Received: by 2002:a62:b40f:0:b0:6d2:6b1f:b82 with SMTP id h15-20020a62b40f000000b006d26b1f0b82mr5942972pfn.67.1703121689794; Wed, 20 Dec 2023 17:21:29 -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 x1-20020a056a00270100b006d088356541sm375959pfv.104.2023.12.20.17.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 17:21:29 -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 v2 2/5] gpiolib: cdev: include overflow.h Date: Thu, 21 Dec 2023 09:20:37 +0800 Message-Id: <20231221012040.17763-3-warthog618@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231221012040.17763-1-warthog618@gmail.com> References: <20231221012040.17763-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: 1785852545720617458 X-GMAIL-MSGID: 1785852545720617458 |
Series |
gpiolib: cdev: guard tidying
|
|
Commit Message
Kent Gibson
Dec. 21, 2023, 1:20 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 9155c54acc1e..942fe115b726 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>