Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp25474rdb; Tue, 19 Dec 2023 08:25:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7LcIFSEkhfOO89/fjx8zq71OZEfOOnLz2TH5fa4ITP9IN0/MEoz5RBqvN9wNlLKIMzUZn X-Received: by 2002:a05:6512:3e1a:b0:50b:c08d:69ba with SMTP id i26-20020a0565123e1a00b0050bc08d69bamr10691068lfv.57.1703003137914; Tue, 19 Dec 2023 08:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703003137; cv=none; d=google.com; s=arc-20160816; b=LTvgBfj0icNy9V8Iw4VwGeieB8kDQtv96pW2CUJaputfSpGPyoN+uSXrO25cwRK+Ye DGyM4yIZs7TTGDQSBgFXNvJ8BJd8NvMw6yxtNdVHxjcXkHUxB5s94IPda3a9C2fM3i9d IjqJ9zYw820kYkevjdueL0MqlNhee3pXPhChB8GMb76qr8TUx6d1Hz/wFMan0m9E4OqM DCWKga2ALaw8MY0ETh+rdU46r1NDeTsiaVJKqpLPGO5h+8R7IA9MqA+uHlZ/tK2SGkyN uyHgw6LqaC98J5t+gYthGGBWJXc+SAacTt/8ywVA27sW8lZOVuGO9NMaIYmRjDAy0M2a 2llw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=DYZi0xUVKQjLCwKkFJ++JHdSFlP1E0i62Ei8BIy8Ocw=; fh=ilfjSyrRMN4jXeje8k8Koti5i+jLM4n3LuZrDX0FFos=; b=e18wON8I2peNNWa/F39qvzkd7GOObHxvjgTEGjvWnMwExsspqPf8WEN0RyDd53RaDU QIJN2ER6u/+I9wzcIbxylRNTFxg8D8c0ex3yK+0cU1BECTB0rx5vUATqOCRW5xU6tPA2 jmcHIFsdydsEOKCz3m0fx8PNvWF1mZlx/76VjmI+Tmj6d8j4eUVzEhX2FodtXq58zty9 XMHTS64Mpkle1VTW+SVSfydZGyy9kovqh1VzkBzZFVgi9c8iEdurj5av8oNKU3U9J+jl jahBpa8y6s92QFr8LzJkqXHbqxEZXnFT0nxnq2FSBTi4epDcqP3J1f4GIGAzgLhgE7yd 8cqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=CcFe7niH; spf=pass (google.com: domain of linux-kernel+bounces-5554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kt4-20020a170906aac400b009b2b9810d8asi10907670ejb.415.2023.12.19.08.25.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:25:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=CcFe7niH; spf=pass (google.com: domain of linux-kernel+bounces-5554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 79E101F257CD for ; Tue, 19 Dec 2023 16:25:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42A7F20327; Tue, 19 Dec 2023 16:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="CcFe7niH" X-Original-To: linux-kernel@vger.kernel.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEF101DDD4 for ; Tue, 19 Dec 2023 16:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=DYZi0xUVKQjLCwKkFJ++JHdSFlP1E0i62Ei8BIy8Ocw=; b=CcFe7niHMWXGgPgJs6n7o04aUJqUMs/JXuBAeyYgFtzyeWGtvmWw0S3r 01j1JxO8i58/DPAFX3CmmphvbRGLyiAQwN/247kHflvEM/fOdpTQoF6Uu XnZCgKYHTp8soNZNnm8Nk+pwcW9NBtFc5DUOxEUwtEOf0j149Q5EhAGOe A=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.04,288,1695679200"; d="scan'208";a="143170015" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 17:25:13 +0100 Date: Tue, 19 Dec 2023 17:25:13 +0100 (CET) From: Julia Lawall To: Piro Yang cc: Greg KH , linux-staging@lists.linux.dev, Linux Outreachy , linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 RESEND] staging:vme_user:Fix the issue of return the wrong error code In-Reply-To: <20231219161402.50510-1-piroyangg@gmail.com> Message-ID: References: <20231219161402.50510-1-piroyangg@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII The subject line looks wrong. Normally there are spaces after :. Look at what others have done on this file and do the same. Also, did you previously send a V3? Resend is only for when you are sending exactly the same thing you sent previously, not because you fixed something up. On Wed, 20 Dec 2023, Piro Yang wrote: > Fixed the issue of returning the -ENOSYS error code when an > error occurs. > > The error code of -ENOSYS indicates Invalid system call number, > but there is not system call error. So replace -ENOSYS error code > by using -EINVAL error code to return. > > Signed-off-by: Piro Yang > --- > v3: change the description and format for the patch. > > v2: split two different changes, > only fix the issue of wrong error code. > --- The second --- is not needed. Finally, it's not the application period of Outreachy, so please don't use the list outreachy@lists.linux.dev. That's only for outreachy applicants. thanks, julia > drivers/staging/vme_user/vme.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vme_user/vme.c b/drivers/staging/vme_user/vme.c > index 5c416c31ec57..9bc2d35405af 100644 > --- a/drivers/staging/vme_user/vme.c > +++ b/drivers/staging/vme_user/vme.c > @@ -341,7 +341,7 @@ int vme_slave_set(struct vme_resource *resource, int enabled, > > if (!bridge->slave_set) { > dev_err(bridge->parent, "Function not supported\n"); > - return -ENOSYS; > + return -EINVAL; > } > > if (!(((image->address_attr & aspace) == aspace) && > -- > 2.25.1 > > >