Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5673843ybi; Sun, 21 Jul 2019 00:25:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyPFzczFfv5Hr9ITJA/aZBt3slbSVG7K2QyriZkbKlHP0PlFyQ0VNeyADCcCj4ofEbxaHy X-Received: by 2002:a17:902:7083:: with SMTP id z3mr28983016plk.278.1563693938839; Sun, 21 Jul 2019 00:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563693938; cv=none; d=google.com; s=arc-20160816; b=uqwVPGEeSAcAeKbULTTfFiCbbWWYwMCAc2RcZGZetxrzCNsDIGjZh+NNUSYs9z8wpC qNPwMmLDmHOtuIRi6X00lcDbH51sPvQNyZFTUQdPavXrU0XKBjqsL5DtNIXYB/WAlKbh Jo22KQYJ5A5LUyGe5TqxWFULNzbHEAj6j2+iJ53J2jtnPbiCKuYuJgc16rgAJrURyLmm jkSIInEOsW9DmVsTI8higEF2BbJD1/i5JV/1g0+gjJ90kgdF69YXb+dAXqN9oJrGgWpz zS/oDSdTGpqEuPbd+FInq/AoMkLZizdAXh2vk+6EqMxnWGAQzdiMrtvyv5ehGwozcv+l lrEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/nSIcquNpPyNnZ7DklkJMd6V9hdvNBFGl3lMPzNM4NU=; b=dgeaqHsnjNfI/0T/LuRJSZZubp4MHlz/7cNBRLurMk4uuDvoNLsi0S6GC2QxS/Ld+S hOhBsQyJvXhKh5G0G3N0ixysXxL/KhVUM1DIaRD9SdC5/t40BohAqEAKxbTuyfgdq8lJ Dx2bHnAZq1AqMpeMO/LaPEdyVCf8UDKENQssCmlQ+gfUB9hhTAJOxRy/46IhbERK0V2B +FCNZVV71VqCKgFWYCAmehjx8qk6eeR3C3tUYDIOBP7BIz/p2HjsqqTbcu8RmB07C89u q2L/bgO7wQZ0kaZkknwCWpypzfDzS04oN1OBZsZCxzgQhr79CwjPf34ieSn+aMRfMAPX ROTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bJmPgxcF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si7371100pfi.240.2019.07.21.00.25.22; Sun, 21 Jul 2019 00:25:38 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=bJmPgxcF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726328AbfGUHYc (ORCPT + 99 others); Sun, 21 Jul 2019 03:24:32 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:34580 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfGUHYc (ORCPT ); Sun, 21 Jul 2019 03:24:32 -0400 Received: by mail-lf1-f65.google.com with SMTP id b29so17171711lfq.1; Sun, 21 Jul 2019 00:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=/nSIcquNpPyNnZ7DklkJMd6V9hdvNBFGl3lMPzNM4NU=; b=bJmPgxcFVupOQf/vSmJM/dH3zfqFjfLjzBujbSs+uWa9AWUKY6gakLh3AZM6/DevUg WFF3jP8aJiWaDWiXUQp7gozDaJdUNI/WCHHpjBc9tG/j5rWmaFGl0rGZ2uMIzBUEesB+ dQKlSt8B2lqQCsCp7YVGAJISsMgXioLJsbhLoAJGJJPgLeEaS9Mfm6cKMftvo1dJ9jIg RcVQNUeBVWqfGH/qRrO9+FsadGceW3s55TPYWyEnd86If9k3XoOISzcxbi9xSE/Ijy3+ VBneTeV+gQJ4Hs3my5dYqUMcKViRRCOO3O0Bg4JralZTDY9KU9v5wg22rjisw6ufii/U SfDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=/nSIcquNpPyNnZ7DklkJMd6V9hdvNBFGl3lMPzNM4NU=; b=bHDmo6AOYdZbC83q4q3G6Na4lMGuUf8LZe15PRjzTx5bRU9ZRN8rwIl5FNBMVvwMV1 FuhKVMFCxjfOf2CqGFBlAr8DawQlN2k4IUu002IJ+uWUJBQidOib+K5kHnsv0uCtoPwY U8941NL6zAUOMomyWGrOPZhCs3ocTWmv6qa8OufMAbqWq8CTouSFeSNkgRJrWx5zBpa9 O7k4v4SHmRFl15p2nBzH2kXyAlhGH+L/izqrMt/Bu/OkNBUGzjVmRLYCJfTL3EKSjIXR LFGllR/E4jHXPpdxLTzQh5mBkQlWgizHycYR2zbbkmZs3Yo1w54icR3swqWBB5jAquyF I1mw== X-Gm-Message-State: APjAAAVrYF55f98ne+IU0OyBFXtk8nxu+xU/r0f0hLDLwMQIWYFkXFmx HBz5qwNbMFAnJl5hgkPEFMc= X-Received: by 2002:a19:ae0d:: with SMTP id f13mr28105098lfc.123.1563693870470; Sun, 21 Jul 2019 00:24:30 -0700 (PDT) Received: from localhost ([188.170.223.67]) by smtp.gmail.com with ESMTPSA id k27sm6152939lfm.90.2019.07.21.00.24.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Jul 2019 00:24:29 -0700 (PDT) Date: Sun, 21 Jul 2019 10:24:27 +0300 From: Dmitry Torokhov To: Ronald =?iso-8859-1?Q?Tschal=E4r?= Cc: Federico Lorenzi , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild test robot Subject: Re: [PATCH 2/2] Input: applespi: fix warnings detected by sparse Message-ID: <20190721072427.GB607@penguin> References: <20190721070629.24932-1-ronald@innovation.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190721070629.24932-1-ronald@innovation.ch> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 21, 2019 at 12:06:29AM -0700, Ronald Tschal?r wrote: > Reported-by: kbuild test robot > Signed-off-by: Ronald Tschal?r > --- > drivers/input/keyboard/applespi.c | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) > > diff --git a/drivers/input/keyboard/applespi.c b/drivers/input/keyboard/applespi.c > index d5defdefbc34..00cd8dccd4f5 100644 > --- a/drivers/input/keyboard/applespi.c > +++ b/drivers/input/keyboard/applespi.c > @@ -998,10 +998,14 @@ static inline int le16_to_int(__le16 x) > static void applespi_debug_update_dimensions(struct applespi_data *applespi, > const struct tp_finger *f) > { > - applespi->tp_dim_min_x = min_t(int, applespi->tp_dim_min_x, f->abs_x); Should we also make tp_dim_* u16? Then we won't need min_t here. -- Dmitry