Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2463396ybh; Mon, 16 Mar 2020 03:48:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vssnvbl+aR7Ti56nr45epSJxJJ3xkWvyH/53n0Ka/h4n3BChjJzdaod+WbuX1PpalR8l/Tv X-Received: by 2002:a9d:5f7:: with SMTP id 110mr19858073otd.73.1584355689832; Mon, 16 Mar 2020 03:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584355689; cv=none; d=google.com; s=arc-20160816; b=mzsOs+uM3i6CSSqqje3txQLVhvxhdtLZzVFWko69N+y6AAeK3KecYB2crrrABDzNnU MouxcQVkHW9qDIOEgWsnU02oXz/Xhph7jX86qQKgD59W/vv0yc/xJBNARlpepHOb+aIH 6lo4JDoPtRHnQdBFgsAiObij7nX72eYL7Bnwj7sFHHVzju9IzZhABEIXfB5pltTgf14z opvXdPIL74BVvwwTZVlluwnRFGHYAyV7kiPYS8Lud0NI6GrwrbMv1QBE0J/PNx1hHkRO uH8PEkFOucEgmSkdGJJ0Y6HlYiYKPGpciUqNDCsgvvLBNYaNSk8+0fcBZZfpB37GDyBW qpgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc:to :subject:from:reply-to; bh=vibrpsfD5nBtWhWdlH3ux6m1+gQfms/bPDCbvYSFzpo=; b=VREzAnwY26uVNsQZgfomrZFz8HVFOgleB0xIS3ToMHwmiqfUNU9dSxzrQH6UY5e8lc DLyHo5wGA7Dzhu2eY4TIt1OkLlvIJDQrPNKI0B1zonXHX3pTxfqH2EmyLoRwF3FEVXbA JNB2JQuevQZs4CjA1UZWtBbyrdzKXuSV4iGIAQr6qLroYBYsEGSTpobxi0dXC+9CuR6G 5pGa4N2e39tR0rahrZqAKReMGxbZFotL7OcM6Wmn8YNRX7oLnf8VnNvR5MX5RYc1/02+ j5jnASwGZvPhqOQ7T+7EFVDUjtvmR6rRFeX+89cMsIFnDwAjSlKJdigSc/hph+1kvC+/ RjLQ== 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 x189si9782413oia.270.2020.03.16.03.47.57; Mon, 16 Mar 2020 03:48:09 -0700 (PDT) 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 S1730711AbgCPKrQ (ORCPT + 99 others); Mon, 16 Mar 2020 06:47:16 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46645 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730478AbgCPKrQ (ORCPT ); Mon, 16 Mar 2020 06:47:16 -0400 Received: by mail-wr1-f66.google.com with SMTP id w16so4121113wrv.13; Mon, 16 Mar 2020 03:47:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:from:subject:to:cc:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=vibrpsfD5nBtWhWdlH3ux6m1+gQfms/bPDCbvYSFzpo=; b=edUqCDWd5hANKotdVUU0tGSWv+oTEeXqrS8e1dZf78UMP6YSX+Qrc92jmvxYMq7BCF kWmeUKT4LENlzODB+Kzs66GS1vWpNByu4/fkdovwBQr1RQoNY8UVGNSgVDDr3cJ+ajXt AYWD2/bEQo8Pw+sMEHUf3+v0VbIqnUB6RdoNhuYId3GDlzcKUIXMOaGCN2D8jtgf9+rL kT16hcuaf8qW9hxQO8Aya89Z4RKwoNLIt+a0BM6/9l+Id9jOqJVLgpbDiHxlniGEhvK6 SBjZouuAEFUFM7r3krUs06SYcSsWXSz3ODb1molnNFCJr/1CuAn2OuHhy2FXn7K5IfTI pktA== X-Gm-Message-State: ANhLgQ3t0EM6VxbSRReJoxkVEYkkd7rleeXSQJ+5YDtkzTWO8skk8Bv4 JeZKAatCaWeHyWqBshE4PdVHceXY X-Received: by 2002:a5d:5586:: with SMTP id i6mr35833352wrv.338.1584355634281; Mon, 16 Mar 2020 03:47:14 -0700 (PDT) Received: from [10.10.2.174] (winnie.ispras.ru. [83.149.199.91]) by smtp.gmail.com with ESMTPSA id f11sm5988514wrq.88.2020.03.16.03.47.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2020 03:47:13 -0700 (PDT) Reply-To: efremov@linux.com From: Denis Efremov Subject: [GIT PULL] Floppy cleanups for next To: Jens Axboe Cc: linux-block , "Linux-Kernel@Vger. Kernel. Org" , Willy Tarreau Message-ID: <57ce0ee0-839c-a889-0bc0-ec46985e76d3@linux.com> Date: Mon, 16 Mar 2020 13:47:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, The following changes since commit 5d50c8f405bf91d9d9a48628fde0f2f4ff069d7b: Merge branch 'for-5.7/io_uring' into for-next (2020-03-14 17:20:45 -0600) are available in the Git repository at: https://github.com/evdenis/linux-floppy tags/floppy-for-5.7 Please pull ---------------------------------------------------------------- Floppy patches for 5.7 Cleanups from Willy Tarreau: - expansion of macros referencing global or local variables with equivalent code - removal of incomplete support for second FDC from ARM code - renaming the "fdc" global variable to "current_fdc" to differ between global and local context Changes were compile tested on arm, x86 arches. Changes introduce no binary difference on x86 arch (before and after the patches). On arm, incomplete support for second FDC removed. This set of patches with commit 2e90ca68 ("floppy: check FDC index for errors before assigning it") was tested with syzkaller and simple write/read/format tests for no new issues. Signed-off-by: Denis Efremov ---------------------------------------------------------------- Willy Tarreau (16): floppy: cleanup: expand macro FDCS floppy: cleanup: expand macro UFDCS floppy: cleanup: expand macro UDP floppy: cleanup: expand macro UDRS floppy: cleanup: expand macro UDRWE floppy: cleanup: expand macro DP floppy: cleanup: expand macro DRS floppy: cleanup: expand macro DRWE floppy: cleanup: expand the R/W / format command macros floppy: cleanup: expand the reply_buffer macros floppy: remove dead code for drives scanning on ARM floppy: remove incomplete support for second FDC from ARM code floppy: prepare ARM code to simplify base address separation floppy: introduce new functions fdc_inb() and fdc_outb() floppy: separate the FDC's base address from its registers floppy: rename the global "fdc" variable to "current_fdc" arch/arm/include/asm/floppy.h | 88 +---- drivers/block/floppy.c | 1093 +++++++++++++++++++++++++++++++---------------------------- include/uapi/linux/fdreg.h | 18 +- 3 files changed, 586 insertions(+), 613 deletions(-)