From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbaCaG4k (ORCPT ); Mon, 31 Mar 2014 02:56:40 -0400 Received: from cassarossa.samfundet.no ([193.35.52.29]:41531 "EHLO cassarossa.samfundet.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751561AbaCaG4j (ORCPT ); Mon, 31 Mar 2014 02:56:39 -0400 Date: Mon, 31 Mar 2014 08:56:37 +0200 From: Hans-Christian Egtvedt To: Alexey Dobriyan Cc: artagnon@gmail.com, Linux Kernel , hskinnemoen@gmail.com Subject: Re: [PATCH] avr32: replace simple_strtoul() with kstrtoul() Message-ID: <20140331065637.GA21509@samfundet.no> References: 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) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Around Wed 19 Mar 2014 12:52:35 +0300 or thereabout, Alexey Dobriyan wrote: >> - val = simple_strtoul(buf, &endp, 0); >> - if (endp == buf || val > 0x3f) >> - return -EINVAL; >> + ret = kstrtoul(buf, 0, &val); >> + if (ret) >> + return ret; >> val = (val << 12) | (sysreg_read(PCCR) & 0xfffc0fff); > > you removed 0x3f check > > this conversion is not trivial as it seems Is anybody going to update this patch? I planned to push early this round, as others are waiting for AVR32 changes. -- Best regards, Hans-Christian Egtvedt