From patchwork Fri Apr 22 03:16:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66414 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp487907qge; Thu, 21 Apr 2016 20:17:04 -0700 (PDT) X-Received: by 10.66.236.232 with SMTP id ux8mr25400158pac.145.1461295024134; Thu, 21 Apr 2016 20:17:04 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k86si4164623pfk.82.2016.04.21.20.17.03; Thu, 21 Apr 2016 20:17:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751889AbcDVDRB (ORCPT + 13 others); Thu, 21 Apr 2016 23:17:01 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35689 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbcDVDRA (ORCPT ); Thu, 21 Apr 2016 23:17:00 -0400 Received: by mail-pa0-f45.google.com with SMTP id fs9so35284701pac.2 for ; Thu, 21 Apr 2016 20:17:00 -0700 (PDT) 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=cL4CfssUGmexj7bnSQXP5zyc8NlG4tEtSz/VqcvMeew=; b=Mla+g4KjaWk7W1ezGj8zA/RJ34y0TbO9CQ4riCvELYwF6oYvJDMVLU8eVNEbXdrTiR mP9Qg0JRXcRvhufUeQkPgkFwP28hx6GK3BJWawDZJIOaQPuMVxEMMnr1s3w6Ncq4figH s5rXyLL9KqDHD8kGsS1Pw+0vLXT3rHZhn9Lzw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cL4CfssUGmexj7bnSQXP5zyc8NlG4tEtSz/VqcvMeew=; b=Uss3ibs804IVHoyn+xjNvDiCLEOfpR+uJW9zm+LnQ8xLRIpQ5hbtI2Ju/R2do3AQfR SsJeegKPtO39vHoFn+mlIeZvYz2PFNRznsUgj+WE4mByF9CyYAU8Mapt2d6CAKcpyt5e BG6+BWilfJF3+nB79L5aqMj2Utn/CsEtOI0PM/dwcxNT+4ab/ggSCaChMDQw/l+oN6P1 otpGO26cjttMWYTkLokOeeFI2XsK2hY1AFOCOQz/W09J6fz/y15FCFeXgHNPbzRwklYb AbZj2mjOtWhs4Z718UGaFYOyDQm0LdshYV3oQWJQ4kgJIcSxYhEQ6UDkX+OyIZEsg5xV cJOw== X-Gm-Message-State: AOPr4FU/zizvjnzyQtJ78oD03jouMyyBM371w5sNjhfUCE0lb6Y+s8eHeR7fRDk5E4K6wJPD X-Received: by 10.66.25.133 with SMTP id c5mr24334447pag.104.1461295019955; Thu, 21 Apr 2016 20:16:59 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id m186sm4169715pfm.29.2016.04.21.20.16.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 20:16:58 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, andrew@lunn.ch, gregory.clement@free-electrons.com, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com, Viresh Kumar , linux-kernel@vger.kernel.org Subject: [PATCH] PM / OPP: -ENOSYS is applicable only to syscalls Date: Fri, 22 Apr 2016 08:46:51 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Some of the routines have use -ENOSYS, which is supposed to be used only for syscalls. Replace that with -EINVAL. Signed-off-by: Viresh Kumar --- I am including this patch into the series and this one will be the first patch of the series. Also, later patches will be updated to *not* use -ENOSYS. I will send out the series again once some sort of reviews are done. include/linux/pm_opp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index cccaf4a29e9f..2605ed66f1bd 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -199,7 +199,7 @@ static inline void dev_pm_opp_of_remove_table(struct device *dev) static inline int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask) { - return -ENOSYS; + return -EINVAL; } static inline void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask) @@ -208,12 +208,12 @@ static inline void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask) static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) { - return -ENOSYS; + return -EINVAL; } static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) { - return -ENOSYS; + return -EINVAL; } #endif