Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6903126yba; Wed, 1 May 2019 23:59:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoo8aCH4xeVsZJ4TNmGEcMx12oswJtYnZSlZv0U5m0rC8NVorUt13y+dt+EqaCRiclZBUC X-Received: by 2002:a63:6849:: with SMTP id d70mr2286057pgc.21.1556780343705; Wed, 01 May 2019 23:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556780343; cv=none; d=google.com; s=arc-20160816; b=BtIy4vFdNc1cSYL0T5P564Smn/pl1a3+M0bZeFAzXUSqmWVOFWI2XEDw66FlktJTlV 8ZUON//Y5xtUr8DycATndJRE4FFperajIHlwnJMRWZf7iU9sAQ2CmQDWuuVsUQhvFb96 tzfNR1xZ2RKfyJTWkFlmr7SOkStV5JjjChbnMTvLzjUQTXwsSCU8hvqYQpS2JgWF62De PAdECBRA9t6mmg52Mu0DmWPXUa57MApVsma69Iilnz9V868i6CIgnGqq+6bbE/gsyUNk 8jUgYc1dcQ0uCtD9EdOEdL2mq629tMWZqHFT8nsJrkG3VtdQTVn2zNIRbndVZKpw6201 Z8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=1tWIqDm306vX6iBn4rFWeYUqrrvzuMcoJyS82ojMYzo=; b=AdgXLwxY9sRnKrlEdzxrbNrKFRK0tzUHV2IlkkgybFrRBPYUFx2MvTmpyxfRqOAQCu Pc+GCJtIoKSKaourW3VZ/skHLIPrVdNdTa3fLbuJPG6ySYdzPR2pfmumUyRKNnOASr4j yvstvi037/6XuZjA3FPbTKHg8dHouRIG9E40HhBJVwf85YWCOrBf+3y1niQpRssRHHSf FtTYcrhBW1BGR9TTMkaN/swidm+skpVVvk0EA+anFPBdjYJ2lP3vWRsuYImyKVztQIXv Vl6xJ9VJsIJNwGos+ymcRllsGEfGtF5xsCrSdND355zyRhp3VOZQg7TgR+M4TXOtmr7k zZ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=HvbUBX9f; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gZ3fJUS5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si7514527pgs.500.2019.05.01.23.58.48; Wed, 01 May 2019 23:59:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=HvbUBX9f; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gZ3fJUS5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726349AbfEBGzf (ORCPT + 99 others); Thu, 2 May 2019 02:55:35 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:42469 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbfEBGze (ORCPT ); Thu, 2 May 2019 02:55:34 -0400 X-Greylist: delayed 357 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 May 2019 02:55:34 EDT Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 5AD236A1; Thu, 2 May 2019 02:49:34 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Thu, 02 May 2019 02:49:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=1tWIqDm306vX6iBn4rFWeYUqrrvzuMc oJyS82ojMYzo=; b=HvbUBX9fPj2FZfqyzF3t/KWM8PUFELCat3msyWb3W6EaR4p NIP+uqNoxXmFOvIANSg6O2NIgTy5bYPWNz++QCLGTdXmFnMFIX+1K/xIKEdCLjdA jvPqyTDa1jSoAtjFNevf/lYcxTswhp7zSs5FukCqO7tM/ANWoaad7ibA+LgY3pag 1lvb/+6ZNwOhcTnbuCrz6Q8+u1QVwSWr35OQr9NPxzrMlocVqVWrjOE3hkgg/0T2 NfwCEZaXcAwYvhKwJ55OkpkxOm2Oovp603i8e94MpDexuMuUMBAin+sbYk+5q09C /dpYKeYNn6BK2yFCtbOoCegErkpPWJ2OKIMskPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=1tWIqD m306vX6iBn4rFWeYUqrrvzuMcoJyS82ojMYzo=; b=gZ3fJUS5nSD17n7aojoHnY TnjAGXUg2r+xab/A6WJtUDbVEVzeStOBhjnSTRJM3Ak/+qrctyvJ7vfoDH3m+XZY XBeUwl0DJCui9MuZ+aHearg1FGZPuOXC1D9V63Sh3zpk5NPx8hbKpN0zahTDkgdY kPuN2Hnfmycjv6ZGAxs4+psw9Lh7yEGs1kzTticQxRv23Xzn+gT5Ow0hsQvngtuX EE5hQ8jibl7g/JRRe7eCy7e+dKi1O9cQAuIUUdFIquLNWZlF8wDpwvm4Om2H8mds pgWNmjN1tc4vlCXKWnZdt8bPmxrM5CmpwZGy91t5xfiBRKR3lfIFtjTzCLmW7sOA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrieekgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghunecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A1D3C7C6D9; Thu, 2 May 2019 02:49:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-449-gfb3fc5a-fmstable-20190430v1 Mime-Version: 1.0 Message-Id: <6defa7bc-ec29-4418-b05c-fb96c03621f6@www.fastmail.com> In-Reply-To: <20190502064021.GA14911@kroah.com> References: <20190501223836.1670096-1-vijaykhemka@fb.com> <20190502064021.GA14911@kroah.com> Date: Thu, 02 May 2019 02:49:32 -0400 From: "Andrew Jeffery" To: "Greg Kroah-Hartman" , "Vijay Khemka" Cc: "Arnd Bergmann" , "Joel Stanley" , linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, sdasari@fb.com Subject: Re: [PATCH] misc: aspeed-lpc-ctrl: Correct return values Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2 May 2019, at 16:10, Greg Kroah-Hartman wrote: > On Wed, May 01, 2019 at 03:38:36PM -0700, Vijay Khemka wrote: > > Corrected some of return values with appropriate meanings. > > > > Signed-off-by: Vijay Khemka > > --- > > drivers/misc/aspeed-lpc-ctrl.c | 15 +++++++-------- > > 1 file changed, 7 insertions(+), 8 deletions(-) > > > > diff --git a/drivers/misc/aspeed-lpc-ctrl.c b/drivers/misc/aspeed-lpc-ctrl.c > > index 332210e06e98..97ae341109d5 100644 > > --- a/drivers/misc/aspeed-lpc-ctrl.c > > +++ b/drivers/misc/aspeed-lpc-ctrl.c > > @@ -68,7 +68,6 @@ static long aspeed_lpc_ctrl_ioctl(struct file *file, unsigned int cmd, > > unsigned long param) > > { > > struct aspeed_lpc_ctrl *lpc_ctrl = file_aspeed_lpc_ctrl(file); > > - struct device *dev = file->private_data; > > void __user *p = (void __user *)param; > > struct aspeed_lpc_ctrl_mapping map; > > u32 addr; > > This change is not reflected in your changelog text :( > > Please fix up, or break this up into multiple patches. The return value fixes should also be squashed into the patch that introduced those lines given it hasn't yet been applied. Further, IIRC I previously suggested removing the dev_err()s entirely, not just switching them to pr_err(). Returning an error code is enough IMO, there's no need to pollute the kernel logs with application-level errors. Or make them dev_dbg(). Andrew > > greg k-h >