Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2970495pxb; Tue, 12 Jan 2021 03:12:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyd0+FRmuT4rvBejEvoAymq01TEx3V/AisDJ37KFj4M0/WGEJBEQf1z2rCkQogO7YtlBJ46 X-Received: by 2002:a17:907:43f6:: with SMTP id mu6mr1634052ejb.79.1610449945926; Tue, 12 Jan 2021 03:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610449945; cv=none; d=google.com; s=arc-20160816; b=S0oZ4Zo+c1924vqiwxz7s9Ojk5fH+XAQJDWw54xe9+wYVZHFNaOsg950K8Z0AY5UaY ld4wRRGddTgt+h3qFGGttNZkbHWhhBnjM5JcjYEWZvJI69EFrSwPpgLGucYaY3Ov8CXW /A0HLIPYb0qCYTCtjcT49xmmD4erkl240WVQ44fLp1CDzIOIbt7aZw6U2sjNr4tB1wNQ Q/SaKqVBQQHDHWOjzZnznJ6sL3mSfU9h/O3xDntbwJeSnE4yZFOh0lijtzHfJ+IbjzbX /Yu/3JtZd0wfSaF6c9C1wNTLOPLzype+QaGVQ43xEmVVjC61BIC96WVkWsDbfC25vLUi C/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ipc8dE7NXgTr6IgewnaLhVRttiMK60iF2BoBuKyfhN0=; b=Q/SZwtSFlvuEeaZWpg9L54XPJXT+MX2yWj3rRHpEeKHcBl2Viw+dTrT5vK8Z1BkpwH 8AGiBoIdRK5mzlE0y3Jp7AX1gTEkz8w3ck0f5dngp3z+c6PkHm+rLS2uuKAW0u5RZaY8 NKW1mMqSI4qOJ5uF5YAN3eUQQ/SzYfZNczqu14sNUOCtPVeEzj5e4HQ59irZQWyYoqDb BZXM/ZJQsfafeoKKmnc3dSp9vv+9VsiRGPlb2+AFnF0EHdVl+fpIvl1qYcwQ2po6F6Fe m1D758WtcCUWVMyct+cngwJkH6jiO0zTQJ2ZH3eIjl8UwoVY+hed9aqaBsx0VOILeHHW RVmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si971173ejz.557.2021.01.12.03.12.02; Tue, 12 Jan 2021 03:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbhALDVP (ORCPT + 99 others); Mon, 11 Jan 2021 22:21:15 -0500 Received: from mail.v3.sk ([167.172.186.51]:35964 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726008AbhALDVO (ORCPT ); Mon, 11 Jan 2021 22:21:14 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id A7BBADF242; Tue, 12 Jan 2021 03:16:46 +0000 (UTC) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DIWAVnSiqYGb; Tue, 12 Jan 2021 03:16:45 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id BC4C0DF890; Tue, 12 Jan 2021 03:16:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gWyR4YWaQsRt; Tue, 12 Jan 2021 03:16:44 +0000 (UTC) Received: from localhost (unknown [109.183.109.54]) by zimbra.v3.sk (Postfix) with ESMTPSA id 930C7DF242; Tue, 12 Jan 2021 03:16:43 +0000 (UTC) Date: Tue, 12 Jan 2021 04:20:28 +0100 From: Lubomir Rintel To: Dmitry Torokhov Cc: Souptick Joarder , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] input: ariel-pwrbutton.c: Remove unused variable ariel_pwrbutton_id_table[] Message-ID: <20210112032028.GB1503339@demiurge.local> References: <1608581041-4354-1-git-send-email-jrdr.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 04, 2021 at 02:02:13PM -0800, Dmitry Torokhov wrote: > On Tue, Dec 29, 2020 at 01:15:10PM +0530, Souptick Joarder wrote: > > On Tue, Dec 22, 2020 at 1:34 AM Souptick Joarder wrote: > > > > > > Kernel test robot throws below warning -> > > > > > > >> drivers/input/misc/ariel-pwrbutton.c:152:35: warning: unused variable > > > >> 'ariel_pwrbutton_id_table' [-Wunused-const-variable] > > > static const struct spi_device_id ariel_pwrbutton_id_table[] = { > > > ^ > > > 1 warning generated. > > > > > > Remove unused variable ariel_pwrbutton_id_table[] if no plan to use > > > it further. > > > > > > Reported-by: kernel test robot > > > Signed-off-by: Souptick Joarder > > > > Any comment on this patch ? > > Lubomir, would you prefer to remove the table or add it to the driver > structure as ariel_pwrbutton_driver->id_table? I believe it can be safely dropped, as the OF match seems to be sufficient. Thank you for the patch Souptick. Reviewed-by: Lubomir Rintel > > Thanks. > > -- > Dmitry