From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752008AbdJFOqt (ORCPT ); Fri, 6 Oct 2017 10:46:49 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:43206 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbdJFOqr (ORCPT ); Fri, 6 Oct 2017 10:46:47 -0400 X-Google-Smtp-Source: AOwi7QAc5uF7daGYUXB2kDSRi5MaH8sxY2S9ktE5eF1PDxMN7z69qLBT615EYy1GsTHjoudWNi/E/w== From: Jens Axboe Subject: Re: [PATCH] amifloppy: Convert timers to use timer_setup() To: Kees Cook , linux-kernel@vger.kernel.org Cc: Krzysztof Halasa , Greg Kroah-Hartman , Thomas Gleixner References: <20171005004838.GA22997@beast> Message-ID: <4b8c8f21-022b-ad5a-399e-3b4f7b55841d@kernel.dk> Date: Fri, 6 Oct 2017 08:46:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171005004838.GA22997@beast> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2017 06:48 PM, Kees Cook wrote: > This converts the amifloppy driver to pass the timer pointer to the > callback instead of the drive number (and flags). It eliminates the > decusagecounter flag, as it was unused, and drops the ininterrupt flag > which appeared to be a needless optimization. The drive can then be > calculated from the offset of the timer in the drive timer array. Applied for 4.15. -- Jens Axboe