From patchwork Wed May 9 08:46:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 135222 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5371385lji; Wed, 9 May 2018 01:46:52 -0700 (PDT) X-Received: by 2002:a2e:7c02:: with SMTP id x2-v6mr31469415ljc.96.1525855612938; Wed, 09 May 2018 01:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525855612; cv=none; d=google.com; s=arc-20160816; b=ymlpSP5xwure2dzp3pyy/F0xQyVy9AsR49ryIPwyL+R6JTvf7lia98xQw+j/KXzEvr K7f7lnnGPkW5nR0FglrjhNYVEt2ItWFK5/2SOKpHb0JdJc63Gpy5OAbD/eT+xKO+SPjF M4mhpP/aYJW2mXPg7BysR7Vo3fssnGp8DwCpmcd6iKehUntU3Mqus6Ml0vJwdqBUayFz 30tbAzPm4fmrq07O/q4SNx7VqlJQbw+SyIXTdqLyOjb8RKOtxm9cUEkWkjQ67UcYT2q7 QVfY+BNQf9Qo6PwFp98050WnR+Pw+Nj4LGi/RDvzjLUeNXxo3cRXxMmB25wm24ufjBGV 7D3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=8rEyEB+WKGUrZ9wyoCfEaRbEHk/6WIjKXjkc7DXIl5c=; b=Z3F8MKsLeWJjM0TTPWTNIkxZXTcDaGOWifjr+wP/CTjQ5Z+wZdDAhaJG5iUB1B7a8t GSWExDwF9qjCl5gS7KRdO7721YNV1B0itJukgRzv2i4GP+mkv1Qgr8/zp+9g80L9ALDD 1wNkl7UjQ+h/chUtFHtJM2bHgwlpz8tcBBEyw0RST1Jnb2zEH3udvzYkIlE+2R+4vnKR 8FQ+zfNYQUjIkkBkDYIAuSp6RU/yGQIQkuyuqr98ODYBvuL8PRTjpGfcfjq6aj7Jv6La vU3KfvApYEgJuVCkWyZ4hjVQg9Myq3svRyP9l2AYyYGt3xvUtyVhu15UwJ+daHfTxK5e /vSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hw900pk8; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l5-v6sor6328153ljc.37.2018.05.09.01.46.52 for (Google Transport Security); Wed, 09 May 2018 01:46:52 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hw900pk8; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8rEyEB+WKGUrZ9wyoCfEaRbEHk/6WIjKXjkc7DXIl5c=; b=Hw900pk89GQh83pgqwXWfrQjoTfDMdqemgzuI0qioyeGIULhIrOWjwF6mLpoBMHcif vc9DMcd8oAT9pP/bgKDb2r4N+iepjLXxuBTKs5LXIxLbe4JjTzYvsRerkm03p/77H1Px f5fg8rHyxwwXcl4wQgHrKamxiznMh6B1eN6eY= 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; bh=8rEyEB+WKGUrZ9wyoCfEaRbEHk/6WIjKXjkc7DXIl5c=; b=G4vgKS+FBbXyEjbqxixpwQ838V6dG2he5Kutk+iCoOnBJVMb0lh+8v/K2R3+3Ta8O2 89Mac98p2iIXMbKijquc5Q2nX5g992b/JSbYiiaiVS/YKCKPy7fxFeDDTtOx1JwXfVrG uHrvKYEPlsViWzBhqYWPs37NzUUOHh3xhoj69b4PQbyB1q1+yW4myEqJMf98Pf1IXBeD JVqX69oKtWm1UWM8y1Tb/n39yQqulmV7QECuv45KuKjz+TImFnrZY4yIPkfKvaOX4pzD QaNL17P6+QbgIneOBhsjsimEBf6n1jTRfgyDVMOAa0wUFH7PIi8UmXRz8Tyeq43w6PZF /0Kw== X-Gm-Message-State: ALQs6tCcUitqXrwj0BJqCahZrfEwEiPE4rZmON4MU7vnW4xTIMUUoNN0 fVM63rQlAqrxaKCB8+M0CWnUqCDnv8ShVg== X-Google-Smtp-Source: AB8JxZoX+oaTMgnI16wm8rCe9uryACJiWJN/FDyqPiA/ZNaq/YluNvAyl6u7SEpHujLs4WaWeH+vCA== X-Received: by 2002:a2e:9047:: with SMTP id n7-v6mr28944480ljg.50.1525855612771; Wed, 09 May 2018 01:46:52 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-5eeaaa12-74736162.cust.telenor.se. [94.234.170.18]) by smtp.gmail.com with ESMTPSA id l124-v6sm2048330lfg.62.2018.05.09.01.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 01:46:52 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Viresh Kumar , Tony Lindgren Subject: [PATCH 4/4] PM / core: Drop unused internal inline functions for sysfs Date: Wed, 9 May 2018 10:46:36 +0200 Message-Id: <1525855596-18116-5-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525855596-18116-1-git-send-email-ulf.hansson@linaro.org> References: <1525855596-18116-1-git-send-email-ulf.hansson@linaro.org> The inline versions of rpm_sysfs_remove() and wakeup_sysfs_add|remove(), are not being used while CONFIG_PM is unset, hence let's drop them. Signed-off-by: Ulf Hansson --- drivers/base/power/power.h | 3 --- 1 file changed, 3 deletions(-) -- 2.7.4 diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 78bbb5d..c511def 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -87,9 +87,6 @@ static inline void pm_runtime_remove(struct device *dev) {} static inline int dpm_sysfs_add(struct device *dev) { return 0; } static inline void dpm_sysfs_remove(struct device *dev) {} -static inline void rpm_sysfs_remove(struct device *dev) {} -static inline int wakeup_sysfs_add(struct device *dev) { return 0; } -static inline void wakeup_sysfs_remove(struct device *dev) {} #endif