From patchwork Wed May 9 08:46:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 135219 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5371312lji; Wed, 9 May 2018 01:46:48 -0700 (PDT) X-Received: by 2002:a19:d853:: with SMTP id p80-v6mr16183755lfg.36.1525855608220; Wed, 09 May 2018 01:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525855608; cv=none; d=google.com; s=arc-20160816; b=lrdDIiYX1buLE/0JCZrFbUcyx0vmXf9uwPUPRgEzpdVhj6MAeWvdQHb4WC5sr1aFIW vcbRs3q0vP88+MXWDEYzoBFu7TR4F6au4Psl+0O7/0OZQVq98KlGOxRwvcXSAWSf4TIS Z8AnYxR82v02ymAMn0LJE1sJrvwaDS/DuVrhcpT/gEIThDZ0QTfbAo4634OsbMI4cysO UYVVX+KpxegPU1+re6twLag0N69mYLTJwlK9OqsZ7sEueKMa84v0ubnRtKdoH1o2EUau BN3Fa54/2fOvUWzLOzI+pTE6TC/15BFXS8M0IZmY+KAEYqq7xEg4xaw1Mg142K1qeLy7 yHMg== 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=vgS5fCAOQsUQExSPFSMDUOvOLLKflCb8F06amDzR6bE=; b=HZFHcg5j5cBrMu01+6nCZ94nXZlLEfP1gz8ta0bL7JPGB9by1PRPygN+Mj0KLBFXD9 FvQQgCKYzObKFt28MhtSzLJykq5D7iLk5KDMl06/NhbY6rc5cR3a8A6k+4N1tml9DgcP Pr0TEB9Vu3IqH8upU+TUhHf1rUZZaYgzx2q2vxF2J/lEu48VNtR6YVtmJQN/Qw8Fhnx6 pNHLTnZOWfsLbLhdiKRok+4SCfMxaydnvb+6PR+l0iCfnNsMTVZ07CuD1uYh9F6tMV53 4sghan/hQkLLq64ChoH7jC7IsSlvhiodhDHC6TFmG7yb7cdKD6qd8hRBuexwGiA4SN2u OIZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=di53uKlK; 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 28-v6sor1327687lfy.51.2018.05.09.01.46.48 for (Google Transport Security); Wed, 09 May 2018 01:46:48 -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=di53uKlK; 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=vgS5fCAOQsUQExSPFSMDUOvOLLKflCb8F06amDzR6bE=; b=di53uKlKs3OQ38aRBSk3NkbOGZwT/M8co1iKE0db6Nh5vniKu1pPsD8PvpxUld03PB E8Ohjytk0+vSp1cbsgR4dN8of7ffbJoR0UFf4B4IJf/aHamrSUrZyUu/6XZZOprOKwBb ifAlX7BIBT+PAufMYaSlwEdLE7deaULO8ZeH8= 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=vgS5fCAOQsUQExSPFSMDUOvOLLKflCb8F06amDzR6bE=; b=nQbAmaVsXMq9gfay3GRMU5Mz3A+o2iMm9qmrOERDhNyxVywQcz/9P/Oyvta2cYiSF9 YYCN7I7ztjly08INokcJFlOjwv8cP0CCyDptoPBu99C4htDMJFgSD2ed5P+88t5jHlKZ 5d/YdPXyCCzEbibKafTs0WslAqZIS9e1ONbTH+PyE/yGljRGa5b7wAfKlCrlBzxeZ0VA lT847Dr861Rd8LVwizUdRE5E8gFBg2D90vwuCt8FAdqN9LG0GJvgUctctAw6X2XShiRL 107FhnRDx+Kh2fPVESJWbcwtNAOU0d9j07Ij/2PL6pxMrr/y9JqBiL9bUre44kKRcudL lW/A== X-Gm-Message-State: ALKqPwf0xcOv+BuuN6qFw0M5v2Oh9sdNkFS7SgmUWFdR41dsJz9ItKNq YFQTrnXXUBAXwB+GFn787ee/EkeAFEDasw== X-Google-Smtp-Source: AB8JxZq3g94OtzrRc8qXC4R2QZRzB19Zj95VtE6oE+ydEb+NlZ/33B9FHB5iYUpQ/7M6w33m7j+2KQ== X-Received: by 2002:a19:9881:: with SMTP id a123-v6mr8144105lfe.109.1525855608038; Wed, 09 May 2018 01:46:48 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 01:46:47 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Viresh Kumar , Tony Lindgren Subject: [PATCH 1/4] PM / core: Drop internal unused inline functions for wakeups Date: Wed, 9 May 2018 10:46:33 +0200 Message-Id: <1525855596-18116-2-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 device_wakeup_arm|disarm_wake_irqs(), which are available while when CONFIG_PM is set and CONFIG_PM_SLEEP unset, are not being used, hence let's drop them. Signed-off-by: Ulf Hansson --- drivers/base/power/power.h | 8 -------- 1 file changed, 8 deletions(-) -- 2.7.4 Acked-by: Tony Lindgren diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 86e67e7..f38d178 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -56,14 +56,6 @@ static inline void device_wakeup_detach_irq(struct device *dev) { } -static inline void device_wakeup_arm_wake_irqs(void) -{ -} - -static inline void device_wakeup_disarm_wake_irqs(void) -{ -} - #endif /* CONFIG_PM_SLEEP */ /* From patchwork Wed May 9 08:46:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 135220 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5371342lji; Wed, 9 May 2018 01:46:49 -0700 (PDT) X-Received: by 2002:a19:9453:: with SMTP id w80-v6mr11965671lfd.15.1525855609941; Wed, 09 May 2018 01:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525855609; cv=none; d=google.com; s=arc-20160816; b=qNwAmGIPmCgFMaYlkiKkd6zUAstJkauBlHKP9Y6YyQzVDPLZA5y4x9fmHiv7L0ix6K 2si0/tJLUAXjkccouqdo099abW15Bi2cyEydeLoSuOC5L0ybDbqw5ht6b1YkXkkTOb2Q DKoCkIigo4SOq2NQW3DdEdiIs4o2kJzH9HH15k4XgPdol0slzKo7L6OtB05NFl0Ln3Q6 8EGq39vPCVJBEKn8YzO83GhnbpbqDehC18IhuXSMAFwFyXxXWdQ2gpSjb2/vpx4w+bbN ZfU72xP1bHZxdngPuLiaEDtjyflcp0TWp6vhJjkKEFv0idQYy+jISUWx3u2/soNvUGLg 38+w== 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=R+MyGq5a7LJwn0prtuFwp3xOSS5A149EqOrt9jQOCak=; b=TGPj9RmlUIdjrFnCr4Lx1jOLqwR9Bp2Qm0AcoP4mgMYKmcLzO2MgBq2Gzy2sUpAgkv mD99A1SAyqQHMr20C0+5ojiQwOHskr55/MV9oKZSeohK4wJOSepr2E+9qS0IyD5Innnh GDWHo30AiS86u+2aGaVKgMygBub8dPaS8x+HyXjKyXkLaiOOtrhIAnRHX3nunLaYJPJq 9OksasNzeBL+gn6MVzh+PNLMGgP74M2x3MXMpWFI5yj9mDPQCOfHgCelpjLlrYs+RRVV axV+7pkXCn/IDGrefBfz2a+j363MZ5oqq771KNM1+8VKzj420/Wv5bncdLfLc1UX7qUh /NCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kMZstKhI; 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 v14-v6sor6436132ljh.99.2018.05.09.01.46.49 for (Google Transport Security); Wed, 09 May 2018 01:46:49 -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=kMZstKhI; 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=R+MyGq5a7LJwn0prtuFwp3xOSS5A149EqOrt9jQOCak=; b=kMZstKhIZTApNVy9WrXJxdV2/jb46cbl5gjViVM1dtYCmuIR+yq8huQycEe9nk1ZSW Aqqc5ANowr451gTijT4t8jdtbQuCWT+nbBTXDzEvaCkJyY/spleBexiM/01CU7UYqoR1 a9A5BiIpvysnP2hCvqwqSPfxb5GTLdXq5jY7g= 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=R+MyGq5a7LJwn0prtuFwp3xOSS5A149EqOrt9jQOCak=; b=E0fQxBegZxzz2SPrrcbHOonRKFpqAmDuKltrueVCOqJiofO9j2WbhCCSSEyCRmMKVY kIrS0xbP7vI4z6it/If5TVQCvLfieMWVe6LPJsf1WKpUxdm0I06JUvcykH1Z4wqwQJC6 lJFbHz1rp+Ev0D7ixKuvo4xaU+5y5MgFVKI/I3OJvLRiv6rWpwZjR619R7X9eDhG1frQ OQx+TdIOYMW/PgjIaI5Du+b9itf6VNGCR5aZ6jkciH9NvZie0GKLqeulV/SUlUqpby3g +nEfsdklusUq2c8lLQUlYI1CcCjh8l1u9vMpTTop2VjdH4qfdR9he5UdSej68AaDsnSu y3hA== X-Gm-Message-State: ALQs6tDO3WIDnkjawCb11AcHyFUmS7pD6ITQ18y7VSD54vjT+BLhFNak XW62tjm0duzGqmKXaGtXS/R4nX0+ X-Google-Smtp-Source: AB8JxZr99dcO7nwmG+hulJEuoufzNpY1r478sMg52nE4iIF2HMkkpNsp3C//gU96BemC2qCMBf/nWQ== X-Received: by 2002:a2e:9003:: with SMTP id h3-v6mr26680227ljg.33.1525855609748; Wed, 09 May 2018 01:46:49 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 01:46:48 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Viresh Kumar , Tony Lindgren Subject: [PATCH 2/4] PM / core: Drop unused internal inline functions for wakeirqs Date: Wed, 9 May 2018 10:46:34 +0200 Message-Id: <1525855596-18116-3-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 dev_pm_arm|disarm_wake_irq() and dev_pm_enable|disable_wake_irq_check() are not being used while CONFIG_PM is unset, hence let's drop them. Signed-off-by: Ulf Hansson --- drivers/base/power/power.h | 17 ----------------- 1 file changed, 17 deletions(-) -- 2.7.4 Acked-by: Tony Lindgren diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index f38d178..be40910 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -93,23 +93,6 @@ static inline void wakeup_sysfs_remove(struct device *dev) {} static inline int pm_qos_sysfs_add(struct device *dev) { return 0; } static inline void pm_qos_sysfs_remove(struct device *dev) {} -static inline void dev_pm_arm_wake_irq(struct wake_irq *wirq) -{ -} - -static inline void dev_pm_disarm_wake_irq(struct wake_irq *wirq) -{ -} - -static inline void dev_pm_enable_wake_irq_check(struct device *dev, - bool can_change_status) -{ -} - -static inline void dev_pm_disable_wake_irq_check(struct device *dev) -{ -} - #endif #ifdef CONFIG_PM_SLEEP From patchwork Wed May 9 08:46:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 135221 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5371359lji; Wed, 9 May 2018 01:46:51 -0700 (PDT) X-Received: by 2002:a2e:93cf:: with SMTP id p15-v6mr11584306ljh.30.1525855611583; Wed, 09 May 2018 01:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525855611; cv=none; d=google.com; s=arc-20160816; b=XMx/0y0F6SMLlfGSzak2rPdhGUsvoob/vROVxboZ60l/VmVAhb8xwlKgFKUGkmYNsG 6DrxPlfE+mrnkxLFgLVBxp2s3jecHwCnxUtBmqRuk+IBFk3HX3YWEWr5ukSJVQbAfI92 3rkk3tUhSMUxy0hr6p8J1v3N922D/gBCiAPjZ4slFX4jLSSwLZHpVA5VcGwp+IMcZ17Y Pc4cGayu7q+pBQFV8n3+HWWjZb8bpjZ5NFioEs0TpOrSFqN6eCLkQ/8Ooaz6ixuNS0j1 78uC69azMFV6AOKlDNrfrnut844F3uh7yFfo0YqUtaP/vpBlIdJmFBMZ0dK2Oy5eeMbs M96Q== 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=33tzDe8ADTEmkk0juQOGhpEA0o4oP9vqO1n2F+RmMT8=; b=k/8dbdd79JjdG+eWngyxKaMuh+othIT0Ve/KYGjOvxv9UHKlNOYd8atMDycR0QsnWx EZPHYuR82QoM+9rbs6MXE4x/gWtLRT2V4X/mq8oonbjs8wgVv5c3xbxRxuLQStRd6BgI pleekm55pA2kxJi0UvWSQ+9t94PYVBrU33+gsW3plBpBj3bJZKQatBXDovGnCiKnsdCv LP1ybfyRULR1sef+fIs1wFO4VFUW5dRnKTL7FV7YwLGf+oyhcChVf9c10Krm2hrPeAF3 XqabQXGkukmdgnp4NiLotGwukVGYp9zfxlLf6Lgop1RszcKoPF9uWjh+Assft9doDWPu EWaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isclDn6g; 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 m15-v6sor6050280ljg.67.2018.05.09.01.46.51 for (Google Transport Security); Wed, 09 May 2018 01:46:51 -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=isclDn6g; 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=33tzDe8ADTEmkk0juQOGhpEA0o4oP9vqO1n2F+RmMT8=; b=isclDn6gnq5zGJO/hdHTgsEVokuTkj7Xu2edccEHIJ/q8TfD44WNitZ5JOsIMrb0dp z6RkcUYCbyTj0aT+VvZw/2G75CO+AQcGXjy7NnDi1efZlxwRmbn3aLCUpt9+EndbtUlO EK/MJz82B1rSi6rT5elE+jGIVS7xpN46spd+k= 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=33tzDe8ADTEmkk0juQOGhpEA0o4oP9vqO1n2F+RmMT8=; b=Ax7S7HOd1S/50NUKwu1qWl6GmjbvNA+e56d8AtOF907jsUTIjDgdqHNtL1V0wyBQl0 6kmKy6HOoUgpUPrRbAGdMXTkxoE/H2RnroEL8KMYbsnWOBsbr3GnyqLSRuV7K3uqGi+i TWe/5TuhWgAJ+l1r0HWIhz/m+Rzqs7LWv588YFDpg2bmUMyR+6PHbETgcKS1An/cvjF2 caafBk86pHmXK0eF5XF7XGjIw+DZXEqQZkoHsJ7W48Kz+FCRhUJtNdCyDArnf8b8Nj4s DBXyOIRqpbydbZE0vm0g3k1MyPP6H41FZDTKw0PwDbMUGUD2qsQKyd3X1ps/AEQDFXUE NAfg== X-Gm-Message-State: ALKqPwf1xBSa1riK3SZIP4h+2GM0uUimVOrEUpw+EuiF0kDscMAXS67F QDh78583mzsqSzZrL980DJFYeReE X-Google-Smtp-Source: AB8JxZqPlduwNpVbHwHSpQaSPzL3QX4wvaeIIP+vqr/VOv4etSdDCe21SlK659TXsCMbrDDFKzy4/Q== X-Received: by 2002:a2e:650a:: with SMTP id z10-v6mr11544775ljb.41.1525855611396; Wed, 09 May 2018 01:46:51 -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.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 01:46:50 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Viresh Kumar , Tony Lindgren Subject: [PATCH 3/4] PM / core: Drop unused internal functions for pm_qos sysfs Date: Wed, 9 May 2018 10:46:35 +0200 Message-Id: <1525855596-18116-4-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 functions pm_qos_sysfs_add|remove() are available as inline functions only while CONFIG_PM is unset, but are not being used. Likely they are a leftover from an earlier cleanup in the past, anyway let's drop them. Signed-off-by: Ulf Hansson --- drivers/base/power/power.h | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index be40910..78bbb5d 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -90,8 +90,6 @@ 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) {} -static inline int pm_qos_sysfs_add(struct device *dev) { return 0; } -static inline void pm_qos_sysfs_remove(struct device *dev) {} #endif 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