Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbbLGIba (ORCPT ); Mon, 7 Dec 2015 03:31:30 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:35578 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbbLGIb3 (ORCPT ); Mon, 7 Dec 2015 03:31:29 -0500 Date: Mon, 7 Dec 2015 11:31:09 +0300 From: Dan Carpenter To: Saurabh Sengar Cc: devel@driverdev.osuosl.org, kirk@reisers.ca, Greg KH , speakup@linux-speakup.org, linux-kernel@vger.kernel.org, Samuel Thibault , Christopher Brannon Subject: Re: [PATCH] Staging: speakup: kobjects: Return the error type to caller Message-ID: <20151207083109.GC18797@mwanda> References: <1449240153-3927-1-git-send-email-saurabh.truth@gmail.com> <20151207064847.GA18797@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 30 On Mon, Dec 07, 2015 at 12:46:37PM +0530, Saurabh Sengar wrote: > >> @@ -688,6 +689,8 @@ ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr, > >> > >> if (ret == -ERESTART) > >> pr_info("%s reset to default value\n", param->name); > > > > Is this really true? > Sorry, I am not sure here what you mean here. > I have not implemented it. > > > > This function is so weird and broken. Please look at it some more and > > fix it harder with a mallet. > You mean I broke it ? No, I mean it was broken to begin with. Write a more extensive patch to fix it. That printk should be moved up to where we actually do the reset. Anyway speakup is actually really bad and there is a lot of broken stuff so you don't have to fix this function if you don't want to. Just fix the -ERANGE issue I mentioned and resend if you want. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/