From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B12AC433EF for ; Mon, 20 Jun 2022 08:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238619AbiFTIv4 (ORCPT ); Mon, 20 Jun 2022 04:51:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240087AbiFTIvp (ORCPT ); Mon, 20 Jun 2022 04:51:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE0512D05; Mon, 20 Jun 2022 01:51:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF52A61341; Mon, 20 Jun 2022 08:51:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 208DFC341C4; Mon, 20 Jun 2022 08:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655715103; bh=re/LIYFaBcxg1SjWjXGFFxl9Hd6mgfMNrzdReDBPFsQ=; h=From:To:Cc:Subject:Date:From; b=nPJkKch4UQztDtvVOyXeFY7RIebmIdoIT9uPlryPezOsuLMMs+gjQIYXSRFblLehj /hrBxK+fWfzjS99sHdADkVubsXzqPCNUl3lLuDbGtpda3T0pSAyM51YdJwQa6+Btmr uXHhBSS6LmZg1yJgWP0u3uireUMMMon5ucsD1e/oRkIvWMVv4gxwGKTP0SOvWtX7RZ 9XbQl4TLj+q+39Si1Hm91kdCybOcVag3aoD3dybwybnDH+RyXdbfhvArOWJDt67qcB HztQZWX4+ELiDYvBd11WkwKj6GMz5Fw2WsnGKB8l3cHbGq2xM8hC227ctYt8a4HuwL YVjs8HfCc+tjg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1o3D8F-0005Tm-Ho; Mon, 20 Jun 2022 10:51:39 +0200 From: Johan Hovold To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] Input: usbtouchscreen - suppress empty array warnings Date: Mon, 20 Jun 2022 10:46:26 +0200 Message-Id: <20220620084628.20894-1-johan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org I ran into some new (?) compiler warnings with -rc3 this morning. Not sure if it's after updating to GCC 11.3.0 a few weeks ago, or due to some other change. Either way, making sure that the device info table is non empty is straight forward and the sentinel value can also be used to protect against potential future bugs due to the somewhat fragile driver ifdeffery. Johan Johan Hovold (2): Input: usbtouchscreen - suppress empty array warnings Input: usbtouchscreen - add driver_info sanity check drivers/input/touchscreen/usbtouchscreen.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.35.1