Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3846990pxk; Tue, 22 Sep 2020 04:20:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymLkFgKrU+iElcjMyRaakqaYQUIvfu1JHs1OehvFtHqtfZcOgouG29J2rB/bI1+d8xLSIT X-Received: by 2002:aa7:d4d2:: with SMTP id t18mr3286821edr.55.1600773620535; Tue, 22 Sep 2020 04:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600773620; cv=none; d=google.com; s=arc-20160816; b=U8w2eGbOcnEmk6oHQceul6gr98MKpxGq8KrYHmUh/jyZ8nrO3lc4ScvAgs5HOjB8ry XsVBtKT1iV0+lNA6NjKO0CXdIXjAwKeyTQn9B90RcMgvV114AfZCpZowUKYStYBy2hFm m+OIH5cFKDptZLd7mf9fvjQAZH/OhP9Cf1HlcU2fd+fVgts7LhHrgDOnq87XFssCprnE 5pLhxxgQXV9zftOZsu4kU6trt1oI+A9MSBLT/99a7ydHM+l3Opzi2a/I7JlagKUXgCBT Ax7oMncdO5qbav8eFM6VOkUbnND7vAgVAoFkIXy9xkoH80/xJ1l3YCQU2BWxJC95+GtM fNvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=k3HSS0ClEKtUID11bt+9mlg9/JzWHzYcYBuz+n+8XtU=; b=kA/MAke4Dup1I8LLBZ/zFSED/AQyMKxxlWcwDs77c4M87ytv06CW36hP/qab29fBCJ q4igsPBTeCVoYxKLy0XB87XOI5qlr2/Gzr8RW3K/p/PUqiFsnM0kgsmWnFMnnewHJs3R Fm2ZH/UKkwa9gIN89+iALm2lxL/Op4sI6ZR2aTBy1D7zVTfoqsVtVUwtJpdGg5ZQl1Z8 WDSA5UkiGuZRFgVJKD8xk2U/nd3OL6xEJKVHQ1/xRq/n9THOve+w59ZYJ3oYZ/Czefpd oPiuJkwg+Y12CSS7TaX8wvRln4wGBlfWevdffRii4fAf4DrsDkfV2h6GwzYB0kYbRjw4 zAjA== 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 dr21si10328337ejc.186.2020.09.22.04.19.56; Tue, 22 Sep 2020 04:20:20 -0700 (PDT) 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 S1726550AbgIVLS6 (ORCPT + 99 others); Tue, 22 Sep 2020 07:18:58 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44734 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726487AbgIVLS4 (ORCPT ); Tue, 22 Sep 2020 07:18:56 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 33E77EE2DB2D97553BC3; Tue, 22 Sep 2020 19:18:53 +0800 (CST) Received: from huawei.com (10.175.104.57) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 22 Sep 2020 19:18:50 +0800 From: Li Heng To: CC: , Subject: [PATCH -next] ide: Remove set but not used variable Date: Tue, 22 Sep 2020 19:18:49 +0800 Message-ID: <1600773529-45805-1-git-send-email-liheng40@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.104.57] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This addresses the following gcc warning with "make W=1": drivers/ide/ide-proc.c:457:37: warning: ‘ide_media_proc_fops’ defined but not used [-Wunused-const-variable=] Reported-by: Hulk Robot Signed-off-by: Li Heng --- drivers/ide/ide-proc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index 15c17f3..2fad809 100644 --- a/drivers/ide/ide-proc.c +++ b/drivers/ide/ide-proc.c @@ -454,14 +454,6 @@ static int ide_media_proc_open(struct inode *inode, struct file *file) return single_open(file, ide_media_proc_show, PDE_DATA(inode)); } -static const struct file_operations ide_media_proc_fops = { - .owner = THIS_MODULE, - .open = ide_media_proc_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, -}; - static ide_proc_entry_t generic_drive_entries[] = { { "driver", S_IFREG|S_IRUGO, ide_driver_proc_show }, { "identify", S_IFREG|S_IRUSR, ide_identify_proc_show }, -- 2.7.4