Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5657441pxj; Wed, 23 Jun 2021 06:19:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6TGjpiLwUlwFHgabfoxv7UlUxl0gd+8I1DfnBtovq6ubsOjHGZZAfZ7CpUhr1st7HWm5n X-Received: by 2002:a17:906:17c4:: with SMTP id u4mr10124818eje.481.1624454367596; Wed, 23 Jun 2021 06:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624454367; cv=none; d=google.com; s=arc-20160816; b=QxGjkQY7dQfIl0veffNbvK0lWKd2A+uG5+0U/n/LGbmqZTPpOwCDKGdtX8R90Sr5KQ RudTEElwYNDbe5+QZIbtt+alrktcbSMm2Cjxs/oIUG+/i1SgeyeamGNDCqPM7exjqdmS fCPYVSReCzDg0HFx2qI/nipJmHVXOEsDwT5anXlupzJOEzh/rLsM/Uo/6Jz2ao6cbuOx ZhHeb8LKbdLUSTxeM4qNmytmDbis9SaaMLOckrq0kMcDhWtMYsN643iCuC+gYKYXs3Ka KIUBsLEg7Zg5e2NPTRHF84CxI1gHGmV87sYXzzub+Ifo+RLccXPey4QEei5diUSJB0eX XM7A== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=ERdckDciyFNTbLWxyRGeHkrnGMe7T73VlR1o5K/W73o=; b=va5o4UGoVE0rtzJ3zm3sKtIINq/NsRMJQ8gaDdRXCLtdmJanZhStmcZKmlqEMseDkb UFrpIitttbVaARmi8FYQJrtnUwHsyThV3tK/NvFZN+CCuT+jk2+3SA57uvK65sbS0x2P miQk1otNhvlIoM/vfmEoC0DikoK3yrbfe+GyQdgNetfLQziZenAov9JnbAQPcqbTTErg u4Qi/YmVet3/gWQlwwZDF6NyERjLkGeyejLDvqfsx79QKVePE5bgbGop1VhgECLlF3yv rFoi3QOJTqIqUEOEp+a/3oeN2iQ3cDfBIPZoRObmYqE5MSO/IfUoEGWp/yihxiyni4TZ QU+Q== 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 g17si19279039ejr.586.2021.06.23.06.19.03; Wed, 23 Jun 2021 06:19:27 -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 S231130AbhFWNRr (ORCPT + 99 others); Wed, 23 Jun 2021 09:17:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:54901 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhFWNRr (ORCPT ); Wed, 23 Jun 2021 09:17:47 -0400 IronPort-SDR: Iajfa+PReLhQUtGxST/O/rpPO3Y5RQ7OYyh7fusDAjIJsko2dJjKi/7vV94HirIAt/SDqaKnKP o59oXVh7Z26Q== X-IronPort-AV: E=McAfee;i="6200,9189,10023"; a="187638815" X-IronPort-AV: E=Sophos;i="5.83,293,1616482800"; d="scan'208";a="187638815" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2021 06:15:26 -0700 IronPort-SDR: 5g/zksFLyxZZs31WhAZ9wcBMwnIFj2s9RS5yOHj9RFyya9cECjmoJEwaEBDmw2kUyEVWvC8o6f tz/s23u6oyDw== X-IronPort-AV: E=Sophos;i="5.83,293,1616482800"; d="scan'208";a="406304926" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2021 06:15:23 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1lw2it-004kaA-DG; Wed, 23 Jun 2021 16:15:19 +0300 Date: Wed, 23 Jun 2021 16:15:19 +0300 From: Andy Shevchenko To: Pavel Machek , Amireddy Mallikarjuna reddy , Linus Walleij , Abanoub Sameh , Marek =?iso-8859-1?Q?Beh=FAn?= , Krzysztof Kozlowski , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jacek Anaszewski Subject: Re: [PATCH v2 01/13] leds: core: The -ENOTSUPP should never be seen by user space Message-ID: References: <20210529111935.3849707-1-andy.shevchenko@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210529111935.3849707-1-andy.shevchenko@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 29, 2021 at 02:19:23PM +0300, Andy Shevchenko wrote: > Luckily there is no user which checks for returned code and actually > returns it, but since the function is exported any user may try to return > an error code from it to user space, usually during probe phase, > > Replace -ENOTSUPP by -EOPNOTSUPP when returning from exported function. There were no issue reported by bots, no comments from people (except one tag), can we do something about this series or should I amend it? -- With Best Regards, Andy Shevchenko