From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752695AbcDVMjj (ORCPT ); Fri, 22 Apr 2016 08:39:39 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:49347 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752524AbcDVMji (ORCPT ); Fri, 22 Apr 2016 08:39:38 -0400 From: "Rafael J. Wysocki" To: Viresh Kumar Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , 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, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / OPP: -ENOSYS is applicable only to syscalls Date: Fri, 22 Apr 2016 14:42:31 +0200 Message-ID: <60895590.AIt8jZZHh3@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, April 22, 2016 08:46:51 AM Viresh Kumar wrote: > Some of the routines have use -ENOSYS, which is supposed to be used only > for syscalls. Replace that with -EINVAL. -EINVAL specifically means "invalid argument". What about using -ENXIO instead?