Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp257238pxf; Thu, 8 Apr 2021 02:21:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ywUOzBIwnpvoH+53LsjW5U5h1RB11ZkCfzjDs2DFHLqq4mRa6K2OZLmjZgpO/hSht+zL X-Received: by 2002:a17:90a:5d8f:: with SMTP id t15mr7339595pji.28.1617873687073; Thu, 08 Apr 2021 02:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617873687; cv=none; d=google.com; s=arc-20160816; b=dHuveVFpDZ3tgaV6l5RtRxEC28LFTmlkkbCtEje+7HFMyrZw06CghWNibFH2hZgENR 9UK+J+mWE0CpABmWqhWR4pETfqXn6stZi5HoSMVcdns8N2sOpfYK1D+cKPD4P5WOAr5f nUHpIYBfLkUraxdQuO6orzcll98RVBYWoCRVaqlNzdz28G/qYwGTZcGHX1dBqUuQhfe0 yt3ir7Yv+40coQ6pNuAP3C0Z2wHGFQlH323pINi6/a4dK/y4XV7FzObdTgbPzoQKR6qM /DWn4P4KFWwE+f2kRRg7L1Re5A2uqT+nL1AlBsai7dPEaR+lpIeg87YzFF5b+bfTaVaG RVqA== 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=pQwrL6KGMqYiB8dICEkgVw9cuNMTEz7KHKbwjN8mMck=; b=I733xmvw7p004bZenLtrBgD9nFgKbdK98MCT3wrpdsofFUcofDv4SfSDbIwv/gEHyr ykV+DQX3xwFlZDlfNKB7kJr4TLxk1RGEpEjGu1xCwu2pmLfvUefLRRUqWPCGJ4nfHJMB 6FS98E0UdpNJhOunH3itTCwRLKXQdFD2lRqfGOROwqCyP4OL3AeKIFPv3UKeao7b4c1t 8RBbWz1/c1Z188zenj6QSwW4a9MApJRlpZ4Ut03dV+QCnqIDDX7RLbDegTp+lnTre2GI 7XE54xQJSjNDFS6wPj/SmR2zMhfPQbSsJPadwKxeCz/19dLiOIrh6CmZfgwUcSeXzLlb pz8A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si27666983plk.248.2021.04.08.02.21.15; Thu, 08 Apr 2021 02:21:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230475AbhDHJUs (ORCPT + 99 others); Thu, 8 Apr 2021 05:20:48 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:38501 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbhDHJUk (ORCPT ); Thu, 8 Apr 2021 05:20:40 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUt9Xw0_1617873615; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUt9Xw0_1617873615) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Apr 2021 17:20:20 +0800 From: Jiapeng Chong To: davem@davemloft.net Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ide: Remove useless variable Date: Thu, 8 Apr 2021 17:20:14 +0800 Message-Id: <1617873614-14686-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/ide/ide-proc.c:457:37: warning: ‘ide_media_proc_fops’ defined but not used [-Wunused-const-variable=]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 }, -- 1.8.3.1