Received: by 10.213.65.68 with SMTP id h4csp2606154imn; Mon, 9 Apr 2018 06:18:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx494uWKD+GvfaNQAVqek/QnwUqyD8lGXsfeZpM17Zz8A4qYBUv+cCn5cd2+cKniJN5JbnFw2 X-Received: by 2002:a17:902:9305:: with SMTP id bc5-v6mr38170262plb.18.1523279925326; Mon, 09 Apr 2018 06:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523279925; cv=none; d=google.com; s=arc-20160816; b=oDZHwrAwsQyxn8TGyE6+HGaLhAseCl72zJ8P41IaUVVQBSyuE5gBbUJGRxZuwfHVvM YoBFsBA1qoO+RmFaF8NgR33MeaKxL5ZdHkirbw7wFFYlYkzfasjgoREKUS3QLjoLGIHT zPVoJrvShklfrwq1vzyW6OJ37xkncFHZReAl1bgsKTfPcutrsLrlvHo/UqE+rsZRG8Cj W474vqwCUQLGB87mYVFJ0dBd07YGv7Lu8hzCIhgJ3dfwPLPX61N/++aK06fjRSgzOdsq ui5kLNnaivomuve93AsjAQkbnaBy8TMxNjKMapq97mq6EsRi7lm1pY/yAoKqtGw17KnQ 5Tiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FVwg4jkmJLVcrRDl7MdF84BC+0ImQGCJOgt1YvhVwP4=; b=kUaX4kD8N5JofTMW1jR7B5iWZCzABpNKw2N3EJ1cjJfbtX3a3HKm3kH8XGhwmjqrrh T9K5vrHHCfXMjCeGltVOJSdLTGzTAsmDVvpA1RffKMip7fHaNDmSEdlOJVQf90PNf1Xo RLHsXXO+V48u5lWN7QkcAOYsV2fjM/2YHXtBJhk0i0+mC+2/hjf/bqjLPbroJSfZlsgC /F6YLGKdoeiXpp2st4PRDo7AX9qh3oUHV/K4LM4riiqsf9KuXyxiQO1olhkEUh+Gtiez LVCPHbE4w1TD92r/k1L/VbQ2u2LIHrLqNRLWWAORgTfkQeMaIZ3w+/hBsLHY153OfZgq OyyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pJxrIbRi; 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 m32-v6si287371pld.174.2018.04.09.06.18.07; Mon, 09 Apr 2018 06:18:45 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pJxrIbRi; 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 S1752127AbeDINOd (ORCPT + 99 others); Mon, 9 Apr 2018 09:14:33 -0400 Received: from mail-qt0-f179.google.com ([209.85.216.179]:34730 "EHLO mail-qt0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662AbeDINOb (ORCPT ); Mon, 9 Apr 2018 09:14:31 -0400 Received: by mail-qt0-f179.google.com with SMTP id j17so700353qtp.1 for ; Mon, 09 Apr 2018 06:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FVwg4jkmJLVcrRDl7MdF84BC+0ImQGCJOgt1YvhVwP4=; b=pJxrIbRiDQkCR1j3mHYwQM2vulAXp1rg+2c1tl+8K2NJhRosSyQXQMZVsY2pPTHpvu 09hevd/k71Ck8ORhlXxds1FG6eSi2ZWk0iAGtqxcO3Hqq3WrwGcrxjtD2UlHEbCArUGA S0IOl1K79FfXoJxh8hzgt0To6T04SMdU8hK4KKlB1b5mTulPmAp4++t9b7Acdz4ltgp9 DFhTrQyyOBPNDbFlwAG6EFoWHLFZuv8oqrBb1Hew7pktobU/4Zb8vlkOhdW08pWISTWf DpYv4df4/TVRQzr6E/em6h2G2qPYWpOgyniKuCjxIYVIQzUIEr31cpDcbHWyUldtENWq yW8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FVwg4jkmJLVcrRDl7MdF84BC+0ImQGCJOgt1YvhVwP4=; b=VRJCXHroyB40uRvJ0KD0fPRRot2ZgNnzH7cXutwhJrTuS07kUIhzREZm/w6oQ6dhd0 e2vZZ0lN9Npcx6CMMEO4VI+VomMotE+hNQhn2OwYdBuxFAF6RX7w8jrFklPX/gG8Pg/I A1zQJKTF6lIa0GB+iS0nQCRrQXw7jT3Yjo6MKmvZZhPA//HiMqDtXK8TCPXASt53xowc 4BOYKOecMRbfnqXCV9KFlxI1T23kS00qHPdD4ovvH4yxZrLDz1v2m6wg/vmzhrRxs4A/ 2DvRB1Am/1SkpKmJ+t0vQYbJJQqJ3xHxYF8Uvxf6/FZXfmxh5tyLkWRpt06hMZpLbB5h J2CA== X-Gm-Message-State: ALQs6tAF60Mjp/6xhuzaNIPELAOcYTvHr+fS3Lav0gCQYFIPF5aLPL7b 72p6UBwYXmWMFJNk7FfMP2cyHyPtMBYjkZoRFVw= X-Received: by 10.237.43.130 with SMTP id e2mr1052803qtd.272.1523279670365; Mon, 09 Apr 2018 06:14:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Mon, 9 Apr 2018 06:14:29 -0700 (PDT) In-Reply-To: <803fabab1f0349bafe52b5589eff3edc077eee2d.1522546571.git.fthain@telegraphics.com.au> References: <803fabab1f0349bafe52b5589eff3edc077eee2d.1522546571.git.fthain@telegraphics.com.au> From: Geert Uytterhoeven Date: Mon, 9 Apr 2018 15:14:29 +0200 X-Google-Sender-Auth: CthSo3xa-y_4OawkOlmvQNz09Qg Message-ID: Subject: Re: [PATCH 08/12] block/swim: Don't log an error message for an invalid ioctl To: Finn Thain Cc: Laurent Vivier , Jens Axboe , linux-m68k , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 1, 2018 at 3:41 AM, Finn Thain wrote: > The 'eject' shell command may send various different ioctl commands. > This leads to error messages on the console even though the FDEJECT > ioctl succeeds. > > ~# eject floppy > SWIM floppy_ioctl: unknown cmd 21257 > SWIM floppy_ioctl: unknown cmd 1 > > Don't log an error message for an invalid ioctl, just do as the > swim3 driver does and return -ENOTTY. > > Cc: Laurent Vivier > Cc: Jens Axboe > Tested-by: Stan Johnson > Signed-off-by: Finn Thain Reviewed-by: Geert Uytterhoeven Looks like amiflop can use a similar fix. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds