Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4001147ybf; Tue, 3 Mar 2020 17:37:45 -0800 (PST) X-Google-Smtp-Source: ADFU+vtMg4JxXEJCCsPUkc64HPFLQVp+qRvHk9uCk6qRyWtSk7ORM0bOgmQ+0wQ60N3rQkf5bclb X-Received: by 2002:a05:6830:1c8:: with SMTP id r8mr592543ota.63.1583285864956; Tue, 03 Mar 2020 17:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583285864; cv=none; d=google.com; s=arc-20160816; b=JK1VZuSMW4E6cIOHYogSalsrBA8M/du09kgubfieSS6bdixYSpoh+kjVw4kpqwPBuJ iI8VZ9K5Vd4r+DpUN+YkmzjoJdT2/Wwcf4/JsGEJAw2ri9ALhRg/n3ZsjPEfsVckofZW 6dmNlpChIltCJvJsPYzuRjsHe8+CcN34g0bLxmgOrkYfXV41/sjVnH7ab5rL5BW506Ss p4dktmVfektIN1OEANHfsCUNVt9w1tSv73FE95VPncaZjTqmKs6IxcyrFzF0+w0/4mZW vz07wSBKnKTiw691Kk/eJbzy0LBPiS9ReiqjsiksT0fFPwfi0kuADrRAh3ILqpHeC/lY 4waw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CpYmXvRb3X1IttU7A8yHjd4RhEypbmbgRIYWPYo+DqM=; b=S02zFn1QRWcbhqyBZOzWBS62MLc0AE60O7uokp+UQxCwxbfITL1w5wDWawdIFS6bhh 5Kq2468zDwEqTAmzs73gcL1z22a4YjMClR6rD22qtwVVkVwGakHZpYgaocgYaSsaV/oA wuV/VvuzYHUWRMEYDJVhJrmh3SBXwZx4kkw+atmzMHYCDs4V8oqN3qpgHjwHybUqj25i zmSBCBzH4suhMWl5MNnQg9ToXZaWEnp+cOk6njYC7dEYEQGP1vjwEtMCB0x1stVgbqCK +F/SvALJdgeD2XGseE6aCKe4ys/PzRzs6R5sFALtWGTEYemA3XdoNNUgj+s5HpjSYnpu cfWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VxsZeNI3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si197570otk.120.2020.03.03.17.37.24; Tue, 03 Mar 2020 17:37:44 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=VxsZeNI3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728390AbgCDBhP (ORCPT + 99 others); Tue, 3 Mar 2020 20:37:15 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:52973 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbgCDBhP (ORCPT ); Tue, 3 Mar 2020 20:37:15 -0500 Received: by mail-pj1-f68.google.com with SMTP id lt1so157998pjb.2 for ; Tue, 03 Mar 2020 17:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CpYmXvRb3X1IttU7A8yHjd4RhEypbmbgRIYWPYo+DqM=; b=VxsZeNI3Syj7iboIQxJxZI9ybRfCz86rYEwBbH1AsDXtFfX6/zyIGMedLNsnkEEtEi ApEJBn+OvT/x4NTMeMvxGPUjhyJg+AOswN3Vd0Ghej2tDGLiNgnHbkvqumwGTZ2CvBBM fcurnqvi1KQOouFysKBEbtE0qTmVqJfS9acQQ6pllC2CPSL4RhQQWM29zyn+zGvSTqXO /KJbEXinbuwavgh+yjvFodofL+vUNOsMdZfuugssjtWHOAHNbojkQPRpWH9XlexLR72h W7uKDGA0A3njS3lXpEFDnZYWU8UZa6oKsGhEzwOMJVjT5+Uqj77mV2nrt03EvaRf+Ptl YsXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CpYmXvRb3X1IttU7A8yHjd4RhEypbmbgRIYWPYo+DqM=; b=GLZlgyDEt0WWkuKYP8nP6soMdwYbW0PVsLs/o36g5InqX23SywzmPt3PKKUfkAJV+f ubxDBlpl2noughmPaL8lT3sAGBZUVBfwn0zG8TRVGc8/DsTMgp8q9Z2EnWkdOqrpgW5G bE/QH2Q9SFkFi/9zwz6jjAq08kohwsmL3U0euNyJs4Wi1liAti+gQk+klVt/9UHFDZfd v4T4FjTZeAmIeWJOSFaZwIYaSc6M0ZfRbLJyT+wlU75Many1gFq+uWBwX/qtFaAeLdi3 +ZKA8EEHHhSiC2KSoLCmZKmLj3EVFNzrbG3DbEvhJ3mS8Ic49tAd1xM2/JJOeGjgKhXG Q26Q== X-Gm-Message-State: ANhLgQ1dPHhRVU+KWGormzHcDbchKfJe0oOOeVVGfNzxjPPxv7/mIVFv s4gK6tx7LuRkcyNFB6/I1IWNb8R9Xs0= X-Received: by 2002:a17:902:9a06:: with SMTP id v6mr760458plp.304.1583285834188; Tue, 03 Mar 2020 17:37:14 -0800 (PST) Received: from localhost ([106.51.232.35]) by smtp.gmail.com with ESMTPSA id c3sm26006283pfb.85.2020.03.03.17.37.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Mar 2020 17:37:13 -0800 (PST) Date: Wed, 4 Mar 2020 07:07:11 +0530 From: afzal mohammed To: Greg Ungerer Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Finn Thain Subject: Re: [PATCH v5] m68k: Replace setup_irq() by request_irq() Message-ID: <20200304013711.GA5470@afzalpc> References: <20200229153406.GA32479@afzalpc> <20200301012655.GA6035@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Mon, Mar 02, 2020 at 11:32:53AM +1000, Greg Ungerer wrote: > I have retested and everything works as expected, so: > > Tested-by: Greg Ungerer > > I have applied this to the m68knommu git tree, for next branch. Thanks > > void hw_timer_init(irq_handler_t handler) > > { > > + int r; > > You used 'r' here as the error return value holder. > But in the previous cases you used 'ret'. > I would have used the same name everywhere ('ret' probably being the > most commonly used in the kernel). That was a circus to dodge 80 char limit, i did think about it while making the changes whether to do or not. If 'ret' is used request_irq() line had to be split to two, slightly affecting the readability and since 'r' was a local variable (though conventionally 'ret' or 'err' is used) went ahead that way. Even if 're' is used as the local variable, it would be 81 chars ;) Let me know if you want to change it. Regards afzal > > - setup_irq(MCF_IRQ_TIMER, &mcfslt_timer_irq); > > + r = request_irq(MCF_IRQ_TIMER, mcfslt_tick, IRQF_TIMER, "timer", NULL); > > + if (r) { > > + pr_err("Failed to request irq %d (timer): %pe\n", MCF_IRQ_TIMER, > > + ERR_PTR(r)); > > + }