Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp272755pxj; Fri, 28 May 2021 03:45:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxp/ts1Xy8/j1A3eZDjZG1mi5dYs1xmyj03t3IEhsVcmvsRk3akRDgiSUPimjxRA5yv4ju X-Received: by 2002:a05:6402:128d:: with SMTP id w13mr9033610edv.253.1622198703290; Fri, 28 May 2021 03:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622198703; cv=none; d=google.com; s=arc-20160816; b=E8tGiEaVG4uGVZYHg5/qFsMvOSueu/O4fXQDuYglLE0gnRPkyUtgJJ+xO+NnmJ8Dr2 0iOt7F11ZLrQD6DWnKTl9NsCs6cEp1tz/5tjXBkl+02NJiiwF8WlGATE1BbTYBEgKKwL kw/eypC8YAKKIY/whJXD8bIRPqKqndZSAiYhoNORDhwdypsyzdcRuv1r98/00h8Wqhwb Hx2opObXmDRfykAXIk/nGsbyDeZc3mgVeOPs6QBTclViqOgAG7L62/lzxe3cP3jEqv5F YRHYaLih+ZpQUAplS3EtGKcSAzPdzZxtvx1qva8oQ6t3twJ9uNwUQp18dgo/msXzpunc kZeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=8FqCp3qbGvWCLn2LYgz6owYy0r+G3pZcQAxYzbdpNV4=; b=oA9A74Kw8tZ8TN0XrrZxTIoCUDDWQt4x8KYUzolDfLl0NhvNCKF8gelbo5KNRYcqv3 aQ9mY9UA8U2oukhNE5IZRhF8sjST6GgmrbuYeAmzQ+qvCL0U+3Fvca3xAKu+qeWJllH3 pPyveb3njm/k+vJ2hW2dO9uAwJ/FJSDtATNxVZRW9wD4g4Us0Xh8//nTCG92Z+A4FEqw nfpXJGuhHZd3q1wAr1x+itM/jglctdMg5DfIkPiRNrvwKtHSgWv5osE5qnumjbVukG/X W5P3IcuSWvdvBja/XC/IjBiEMdNMHwBkndAK7U4DFPsd5KCSvL4A1D/HhCGNW/XrISU0 Ha2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si4395465edt.513.2021.05.28.03.44.38; Fri, 28 May 2021 03:45:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236436AbhE1KpT (ORCPT + 99 others); Fri, 28 May 2021 06:45:19 -0400 Received: from mga17.intel.com ([192.55.52.151]:25346 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236170AbhE1KpS (ORCPT ); Fri, 28 May 2021 06:45:18 -0400 IronPort-SDR: maLhZ/sS16zBokSIWB599AdiNnm4fn8tAIYz9BX0MLZadxBJwIRyrXIAbsoU+yNevj7gUT2KF6 h8QexolRDHvw== X-IronPort-AV: E=McAfee;i="6200,9189,9997"; a="183275093" X-IronPort-AV: E=Sophos;i="5.83,229,1616482800"; d="scan'208";a="183275093" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2021 03:43:42 -0700 IronPort-SDR: EtPyt9w9JFgSEpsBg4bNlGZqiU7Afai+eL8UZ+rWH/opHFcGGFxp8So0AfJT23vW0uZdpy5GDY 7yrQmG3GAXPw== X-IronPort-AV: E=Sophos;i="5.83,229,1616482800"; d="scan'208";a="445581365" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2021 03:43:40 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lmZxp-00FIBp-B4; Fri, 28 May 2021 13:43:37 +0300 Date: Fri, 28 May 2021 13:43:37 +0300 From: Andy Shevchenko To: Pavel Machek Cc: Amireddy Mallikarjuna reddy , Linus Walleij , Marek =?iso-8859-1?Q?Beh=FAn?= , Abanoub Sameh , Dan Murphy , Krzysztof Kozlowski , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Jacek Anaszewski Subject: Re: [PATCH v1 02/28] leds: core: The -ENOTSUPP should never be seen by user space Message-ID: References: <20210510095045.3299382-1-andy.shevchenko@gmail.com> <20210510095045.3299382-3-andy.shevchenko@gmail.com> <20210528100339.GD2209@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210528100339.GD2209@amd> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 28, 2021 at 12:03:39PM +0200, Pavel Machek wrote: > On Mon 2021-05-10 12:50:19, Andy Shevchenko wrote: > > Replace -ENOTSUPP by -EOPNOTSUPP when returning from exported function. > > > > Fixes: 13ae79bbe4c2 ("leds: core: Drivers shouldn't enforce SYNC/ASYNC brightness setting") > > Cc: Jacek Anaszewski > > Signed-off-by: Andy Shevchenko > > Are you sure this is real problem? (Potential) real problem, yes. ? This does not sound like an error > path that should happen. Before crafting this patch I have checked callers and _luckily_ they haven't tested the returned code. But if any of the user decides to check -> real problem. -- With Best Regards, Andy Shevchenko