Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3843376ybv; Tue, 25 Feb 2020 08:16:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxPyaspYQH1iRWF/7blPT59FVvO36stXmq4DCUL3Bc8BSccoOrmi3FgBTl5zTCRVkbM+NuK X-Received: by 2002:a05:6830:4cd:: with SMTP id s13mr44442426otd.181.1582647403060; Tue, 25 Feb 2020 08:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647403; cv=none; d=google.com; s=arc-20160816; b=plo61BM62ye9osYkYkq5+DM4fKzSsCv9km2lIFE8Zv/CyS/lQmWSnf4lPeusolEbSl FuQr4Gi246iKdOscX4nqk8AaaoJOz/nxP/xthmWN1dNbfuBM00ZPtB27ibRg4DyGt3Og qU+8aqRAjGA4AT7vrUQpxJBD0nm5b4xUMUShJNM0/KZk2tcFaX7N+bVyug7PKQeTqHia nAFFjHyTWraRuH4fcP0GO89hsXljpxU5lRqHzRRA5WvJGBRop3k0ayOYATXKZ/e++3cg dkdib750Xb+b6EDNkbeLRwdgFDt4DOa7CjL/5zUhL2GaQn7uv9/R1FKMyhngp69il1r2 PWcQ== 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; bh=QOXGIluay/G8lb4R9dfH3afve3NOrZcVHUtWwHRteIQ=; b=JGHbyCBpGMirgUumMTJroybUpgLiLVKBUBFnCRwlhyxxnPE2uNUB51Ex8CeNUueXUj X8eBSADcxmfpP2yQ/c7paKIfDDD19rWFt4pnuROSKAJqC2+hQYxYztsLEdiHNfDvqP6V LK5VtqfFbW26wfIiQaRDljzL/kXaaoIaCUKcO/C+jgFAA33/xMba5a2MPISKQhtD+8Pq tSiVYilT4t9Ethjvst6BFd1LJlpIpUBLoJ/6sj0TQ7l0tgq3VT+mwOagGIu/9W+IegRd B1IUpDcNeNUE5HFUIKm25jb3dEkOq5FBu9laOdUWWDOESR7vQmBDvnFTeKX03zDOoho6 OiDA== ARC-Authentication-Results: i=1; mx.google.com; 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 r6si8493769otn.216.2020.02.25.08.16.31; Tue, 25 Feb 2020 08:16:43 -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; 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 S1731231AbgBYQMm (ORCPT + 99 others); Tue, 25 Feb 2020 11:12:42 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:31532 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729207AbgBYQMm (ORCPT ); Tue, 25 Feb 2020 11:12:42 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 01PGCUr0032043; Tue, 25 Feb 2020 17:12:30 +0100 Date: Tue, 25 Feb 2020 17:12:30 +0100 From: Willy Tarreau To: efremov@linux.com Cc: Jens Axboe , Linux Kernel Mailing List , linux-block , Linus Torvalds Subject: Re: [PATCH 01/10] floppy: cleanup: expand macro FDCS Message-ID: <20200225161230.GA32037@1wt.eu> References: <20200224212352.8640-1-w@1wt.eu> <20200224212352.8640-2-w@1wt.eu> <28e72058-021d-6de0-477e-6038a10d96da@linux.com> <20200225034529.GA8908@1wt.eu> <20200225140207.GA31782@1wt.eu> <10bc7df1-7a80-a05a-3434-ed0d668d0c6c@linux.com> <9c22a4ce-1108-d1aa-49c3-5fe7c3bb74f1@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c22a4ce-1108-d1aa-49c3-5fe7c3bb74f1@linux.com> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 06:39:05PM +0300, Denis Efremov wrote: > On 2/25/20 6:22 PM, Denis Efremov wrote: > > As for now, I can see that only floppy.c includes fdreg.h file > > with define FDPATCHES. If it's true then #define FD_IOPORT 0x3f0 > > branch is never used and we can try to fix remaining FD_* macro > > in the next round. > > Ah, I forgot that fdregs.h is uapi. Thus, we can't simplify FDPATCHES. Yep, that's why we can't do it. I also agree with the other change of fdc->current_fdc in floppy.h, I think it's the most reasonable. And if it breaks anywhere, it will simply have uncovered new latent bugs because it will mean that it was using the wrong fdc. Willy