Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3709988imj; Tue, 19 Feb 2019 08:08:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IZXXsgPD4wSgkPUWwt62AFwxhqA25CUy+qn0Nz+zkzbedwtyAHhk1i8xEucqueGaUBGfby8 X-Received: by 2002:a63:ce18:: with SMTP id y24mr3667370pgf.321.1550592526701; Tue, 19 Feb 2019 08:08:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550592526; cv=none; d=google.com; s=arc-20160816; b=o4jD0f0si9c/gRtU65Ys5I+Je1sSfvj1sw5o8aK84wUdKNTPtBJIRuAdhHc3p23A7b eWyBgpwwCj7ny3iC39/aXdvhwkLoNfTzj9RoExvqXgvStCo0BXmLsiZQb0yw3U4raV8W 706hzqTw/N8GpccSaIwGM0bp/e8OfyjNpbc5UV5WgpEeyTXPT0uUs6LZmlpFNAg9/Xtw wQqkovFJnedG8XgEEqlUdo1iNp+K5aNQ0re1HB/+tEvorkDoY78ZgGaLeX6kc3T0KEuA mjg5+rl5NNTP87Co30kDUjPsPwU/NQHjm9AxdR3BB0iDCbIwFE2UI0sLxZYDvisWOCFK ZtiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2krnFxmiomVyVDb/8h+/xtPx5s60ffpJQDYiPXgWEoY=; b=UKedpQ1ec4dvcZkGmAhjt4RcnUeA7MRX6+elma27ZXv4Yj6eVcuOt+gM3SUv9uK7Id NGIwXrQX6xVSWp+6GUsGcDiNEaoRBSErzDM3SVMTeGNJCDPp1OxMRzuvmiAaU9U5IaWz fXZ5Js6RugaTNmrUOPPsOm9IGJXAUnVSgz+U2aiwkeAH5dquQu0e6HdOJsHKy24/rdtB rH3Wa+eDEylrUu3XJ0vK7erJs9YDy4CArmRsyHqgqabHEZomSBQfc9/lmo0vwSOfp6Z5 fLNElzCwDVQMBjjX2J1LYjt4nveDTxQ29gr6ujJLrNc88rKlMwMwLk1Yli6iKTRHGR+C pTZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=jpYfl8ul; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j35si15789359pgl.223.2019.02.19.08.08.31; Tue, 19 Feb 2019 08:08:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=jpYfl8ul; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729214AbfBSQHX (ORCPT + 99 others); Tue, 19 Feb 2019 11:07:23 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42360 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728899AbfBSQHE (ORCPT ); Tue, 19 Feb 2019 11:07:04 -0500 Received: by mail-wr1-f65.google.com with SMTP id r5so9232667wrg.9 for ; Tue, 19 Feb 2019 08:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2krnFxmiomVyVDb/8h+/xtPx5s60ffpJQDYiPXgWEoY=; b=jpYfl8ulWndgrJ/cRqORQPOf82zZX4AJtKgIiXmammQZTopnQDCby/OkvHIum36uPe oChw+vyw2hjvUoGtGtajuqhtkin2RdgfZFbcaPvb3knOzX6+YA0cpsbYMUx465C4qkhR U0uURrdIoP9I2syzaNq7rKYhe7K+12CJfqEve/JPl8sC9kqtcO0nTLdaevCtKvRkApTL 5y3KFb7GwVliy3/naqCl/miOwh0XKJUphV2OVIbZWlzD47yKMdjRNebH1RGJNP79bL4j R7J6UZ/i2hfav102ih83D/4+MLRvANmmpS37SvjAKGZgt7ibvzEZDfN4Fgbdale2iwoc hiDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2krnFxmiomVyVDb/8h+/xtPx5s60ffpJQDYiPXgWEoY=; b=pqu9vsWReVm2oFfHCGQtm1r0itZPOyxob6w3dVjqvNpzNqjJuL9qrQB0w8RxyEORze ojBK0MQMqlOz8YKOZiQwfsHobk7wdjDcIbRY8w2OJSk9dF54Dh5cGM0KtUa/0wDIoTRV u+Nejw4xf3F4wai+COHccRgzAaB0dmyYtGtgLMgDtOAfW/768uEZCCDW6RgFwESPas6v S+BrOKAcC/Jyuh4QHv/Uiww1cGt807VKG/3o8juebkY459OQWA+A1BfRFdeP8SKzXXfY iPX1ql1jm+ginRpvGyRfzRVEJheBEf60GD9Ma+GzGH4CP7I8lfrAtZoAuERzXTtOn1sq rRAA== X-Gm-Message-State: AHQUAuZ7sw6FfB8d2kAIxiI57ox02iAR9IDY3D9iXIYBLds4c4LX2aHv IjVELNELPHZAawKgmvEIQ6Z001/NFHM= X-Received: by 2002:a5d:4702:: with SMTP id y2mr23155016wrq.149.1550592422186; Tue, 19 Feb 2019 08:07:02 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h17sm12161381wrq.17.2019.02.19.08.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 08:07:01 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Thomas Gleixner , Marc Zyngier , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v6 5/7] gpio: mockup: change the type of 'offset' to unsigned int Date: Tue, 19 Feb 2019 17:06:48 +0100 Message-Id: <20190219160650.9614-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190219160650.9614-1-brgl@bgdev.pl> References: <20190219160650.9614-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This field can never be negative. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 0317917a3678..433adb3b4617 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -60,7 +60,7 @@ struct gpio_mockup_chip { struct gpio_mockup_dbgfs_private { struct gpio_mockup_chip *chip; struct gpio_desc *desc; - int offset; + unsigned int offset; }; static int gpio_mockup_ranges[GPIO_MOCKUP_MAX_RANGES]; -- 2.20.1