Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2259849pja; Thu, 26 Mar 2020 12:12:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuha11mT2yd5qHyupE5gj+/uKkb/ZzGJingmgI+w9VOqqSY3B+wBjbhELpOhXSFKC9gjeSf X-Received: by 2002:aca:c608:: with SMTP id w8mr1389258oif.163.1585249921136; Thu, 26 Mar 2020 12:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585249921; cv=none; d=google.com; s=arc-20160816; b=BGBNN5yqwykTC9rY1UbJdbqMelQncdtNb5gOGoD+Mv//nn5/eHBgLyDQS1Kahq8nhU q9SdLEWR6LEmFMBuEmpDLhoEJ8iGAlzVUDSgftPYac4M6lCCVCHpv3CbRVU27tmSIoUZ RfxVuGI8c2P5Dn55YfwLXKEbQRKK9P2imdUFQbzDZTOm2e+EvzG3aH70vJz6PJbtAeqC HKEiO4c43v8QMLeSbr3i3Z5OR4gFmKqCbllRw7kyr/mPe1HN3kySK0YNBesS6U4RztNV tJsQ/x/gZ5T+YsGFZV0Z9R0nyfnSOPoG1Vl/6C/xRsCyJZLlOtLUO9jqEElaLNJyW322 yHvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Dl6TS6QBvWF3TrGsODa6YxrD+hVpbT53C2smrTPgLT4=; b=wM3T3cAMhclkIKrU9R+Em88F33O2xmmGyxRT6a1194fUBrPNTaQ5Q+ZriLie1kXzqF s4HlV1A+ktSqDu2C9h/BTzaXsjAtLov/6T8utrdkgGorwk/ZuGivjPaPOmERSX+Eu0bx K4qKI9s8ZOOtIEOs4O7Iohl65FpWqNjHkzB0j34tpTXHRKUVuz98hGq9K7GnQDIkO0tQ fs4Gor9YlOB4vnS6qQiL2BJtfuGqMCqDFuQ50HlQypHVKdz3kqagwB3DwrEPqP+11XOS zUsuDDc8mveii16dfKLDIIsdiUiodn4Y3gWfgR40ns3QABwD8T/UQJxz3VcKY5gAf0eO 7feQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HnfiJQjT; 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 c31si1326969otb.281.2020.03.26.12.11.45; Thu, 26 Mar 2020 12:12:01 -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=HnfiJQjT; 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 S1728613AbgCZTI3 (ORCPT + 99 others); Thu, 26 Mar 2020 15:08:29 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:37480 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbgCZTI0 (ORCPT ); Thu, 26 Mar 2020 15:08:26 -0400 Received: by mail-ot1-f67.google.com with SMTP id g23so7131924otq.4; Thu, 26 Mar 2020 12:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dl6TS6QBvWF3TrGsODa6YxrD+hVpbT53C2smrTPgLT4=; b=HnfiJQjThJ5iKDAcy6e28H2bTWz3h+7ukb3iastcuVo6tsxFDsufGRswRjEd3/p4nP h4kgQ3p+8D5rEY0iX23Unfqyk9+3cMD0mA+4t3vM1tewL7yK0X3EZK3uWNR1QxefKqzR vmTnj89BtBQg70aZdXkIbtXiMJYNvXVwjmNPgI7kl3/vjCIbLsuKTZ+IvtAq3WnNPmbH aXu5KiyDX3u3R9PyInk/GsKGqRc154RaCR09iyqc+BMb/0v8jRvQEJppjcFkflXmBYPW NosMJNxZTKIHrYuJd2e68OCzTxmJxMeIQMCPayWVKvJfOhArgn8y2uFyRy9Jzxxq7h9L d6hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dl6TS6QBvWF3TrGsODa6YxrD+hVpbT53C2smrTPgLT4=; b=ZSEEdN+cMZPHeIgQ4rjYvF7f2HoN0Y4Z5v6xgKePF5/Wkx7d1wWftImSTMyRHfwfFG CUoiH94vU97lvBxCbqEdRUgXCTbcRIjVJdeC4DU4erVVcalt9D+eAP6w8qH6ePm5b4hR RmFAc6LvVdfCNwn+6cjvoGd5qZdKX0IBv8TO/s8lwknofBvX7hUFzl8JWkeyBpEI5T1x hQSvN1e3MluGZQq7v24X/LeY7QauLcIrCbAtJQHe6YwNm4sflIzsA88BgH8hY9LoaUup GSQpSrNeFeBJ+jeFVhhwFNzD06iwBCZK5Q21GNlxqHilMLBSgekB5TJVHur87zIOjJTO +v0A== X-Gm-Message-State: ANhLgQ0AIOCoa1CPC/11HBJrE2RP9f6WD3dmq8k1eYoY7/brF2RBoVux s0JlCDAuYSKJV7Vh8ufQ+k0= X-Received: by 2002:a4a:3bd7:: with SMTP id s206mr6363529oos.89.1585249705771; Thu, 26 Mar 2020 12:08:25 -0700 (PDT) Received: from localhost.localdomain ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id 76sm823838otg.68.2020.03.26.12.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 12:08:25 -0700 (PDT) From: Nathan Chancellor To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger Cc: Julian Wiedmann , Ursula Braun , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH -next v2] s390/ism: Remove PM support Date: Thu, 26 Mar 2020 12:07:44 -0700 Message-Id: <20200326190741.24687-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200326190549.24565-1-natechancellor@gmail.com> References: <20200326190549.24565-1-natechancellor@gmail.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang warns: drivers/s390/net/ism_drv.c:570:12: warning: unused function 'ism_suspend' [-Wunused-function] static int ism_suspend(struct device *dev) ^ drivers/s390/net/ism_drv.c:578:12: warning: unused function 'ism_resume' [-Wunused-function] static int ism_resume(struct device *dev) ^ 2 warnings generated. When CONFIG_PM is unset, SIMPLE_DEV_PM_OPS does not use the suspend or resume functions. Power management was recently ripped out of s390 so CONFIG_PM will never be set and these functions will always be unused. Remove them so that there is no more warning. Link: https://github.com/ClangBuiltLinux/linux/issues/950 Fixes: 394216275c7d ("s390: remove broken hibernate / power management support") Signed-off-by: Nathan Chancellor --- v1 -> v2: * Fix issue link in commit message... drivers/s390/net/ism_drv.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/s390/net/ism_drv.c b/drivers/s390/net/ism_drv.c index 4fc2056bd227..c75112ee7b97 100644 --- a/drivers/s390/net/ism_drv.c +++ b/drivers/s390/net/ism_drv.c @@ -567,31 +567,11 @@ static void ism_remove(struct pci_dev *pdev) kfree(ism); } -static int ism_suspend(struct device *dev) -{ - struct ism_dev *ism = dev_get_drvdata(dev); - - ism_dev_exit(ism); - return 0; -} - -static int ism_resume(struct device *dev) -{ - struct ism_dev *ism = dev_get_drvdata(dev); - - return ism_dev_init(ism); -} - -static SIMPLE_DEV_PM_OPS(ism_pm_ops, ism_suspend, ism_resume); - static struct pci_driver ism_driver = { .name = DRV_NAME, .id_table = ism_device_table, .probe = ism_probe, .remove = ism_remove, - .driver = { - .pm = &ism_pm_ops, - }, }; static int __init ism_init(void) -- 2.26.0