Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6040275ybi; Sun, 21 Jul 2019 08:00:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfDLZWCFqRI0a1wcvQM7AfnKxKyum6BZ0KMCrr66yVEciF3HuTM0KiNGorJYhU4sZ0iGAw X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr71091868plg.62.1563721227064; Sun, 21 Jul 2019 08:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563721227; cv=none; d=google.com; s=arc-20160816; b=qpVyKDNdFHUgNs8t1w4qSLFfX5kluU4qEnSUhhR2g0tPL8QVFoslNEtECd9R4f0VGw lNcucc2+YYSk/DQSt9Qx2Go4lJV48LkQX9g+pQ4UmHBIN85Q5C+DBoOXVzAcsd394YL2 QtFlDFNlF6AUue4NBo3M+sHqGoREV6eJZfOEHvb7BzRr5380Kx9fcFKp6tQNnaWuhKzY hNpWrPqkts+oreoI2JsFFITC9Na53vamjrEpE9kgF6py2Hgf2stHro3UrLuyfv6t3s88 NMytA4vi57z7nMLVBF+vtFWZ+ujXkWJW2ZxaaXOCTp2Y/3K3qbh+QtKS4Temg93ASKYN 21Lg== 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 :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=SZy+uLkon38CCDje8/zm1tdJCwUC5JlMFjWrOj6eS5E=; b=hBunFQ5sFyNQKdU60DyI4cbO+VZ3rvUNhj7fRiNlHMjPUxrlbsNgWKE0YRQWgTyM1D VvjGT3ouTIr9gTiw9z2oBT5kFpOUx8UmyqrPQ5vB5wSNeR/vUOilB/mZ1oBxx7gsa488 gB5Z6KaGEYDV+2lp7ppfOMmLV47ZoG2VjEgTMjETEbhXUocOGcIZ9hASiZe5+KhxvSkq yMZf9fxL71mcwtLa2rA0M2DSp9FKk1EQ8rEUHxtoYEMk/PQIvRl9QFsngGnYDj4j5V6R Eo+usQZ8cfaS80lRgu3y+tyeMNP+OBNbOqEm6Fl/qRI6dWKRwwX4GeMQJeWxZoRl8dL5 jbZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=qH23uZ9j; 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 3si7104250plh.265.2019.07.21.08.00.09; Sun, 21 Jul 2019 08:00:27 -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=pass header.i=@nifty.com header.s=dec2015msa header.b=qH23uZ9j; 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 S1726619AbfGUO7T (ORCPT + 99 others); Sun, 21 Jul 2019 10:59:19 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:45235 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbfGUO7T (ORCPT ); Sun, 21 Jul 2019 10:59:19 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x6LEx85K013173; Sun, 21 Jul 2019 23:59:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x6LEx85K013173 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563721149; bh=SZy+uLkon38CCDje8/zm1tdJCwUC5JlMFjWrOj6eS5E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qH23uZ9jYoKZFGSa4P+aIP/0pKT4Oc/bJ3c6w7GaRDLnPIyqK8dpvnySzrhcyYSpt 7WrsQa/gKDQdckPN6IRx83j2Qnpm7fC9QsdEmNcIbNKXQutqHTWv56c+JVKkeHAV5A re4O/J+4puCJbnYeo9JHGNsyII4Pim3aNo2+4M+x6X7Z6xMcNx1o8xz3xCjGaw3KTd qx6TLL3BUk+ag20qdZUCUbC0m5vQQ8Md2v9vJ2/VYwx9+dTvM6PH+ld/gXjwEjxOBW pe4TTQ/Yncixe6peHxsMxKL8q++3++lfzfsglYB8ZXMGeKra6pKVVm3c1ug6Rvo9fy 3jTApb+Ltna+g== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id s4so14357737uad.7; Sun, 21 Jul 2019 07:59:09 -0700 (PDT) X-Gm-Message-State: APjAAAWvXhplfvq5w3bk9JF0lwWs8qlD9G7/ZvqKUZPSAgDQXbrkuuKH 44DL8EUOPbhPRR+7FVpOWK8eeODNmx6Cj3iW3FM= X-Received: by 2002:a9f:2265:: with SMTP id 92mr25580331uad.121.1563721148042; Sun, 21 Jul 2019 07:59:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Sun, 21 Jul 2019 23:58:32 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Question] orphan platform data header To: Arnd Bergmann Cc: Ben Dooks , Linux Kernel Mailing List , Linus Torvalds , Greg Kroah-Hartman , DTML , linux-arm-kernel 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, Jul 21, 2019 at 11:15 PM Arnd Bergmann wrote: > > On Sun, Jul 21, 2019 at 2:13 PM Masahiro Yamada > wrote: > > On Sun, Jul 21, 2019 at 6:10 PM Arnd Bergmann wrote: > > > On Sun, Jul 21, 2019 at 5:45 AM Masahiro Yamada > > > wrote: > > > > On Sat, Jul 20, 2019 at 10:55 PM Arnd Bergmann wrote: > > > > > On Sat, Jul 20, 2019 at 5:26 AM Masahiro Yamada wrote: > > > > > > Another example that I have no idea > > how it works: > > > > drivers/net/hamradio/yam.c > > > > yam_ioctl() reads data from user-space, > > but the data structures for ioctl are > > defined in include/linux/yam.h > > That is different: the hardware attaches to a serial port and may well > be usable, and the user space side just contains a copy of the header, > see https://github.com/nwdigitalradio/ax25-tools/tree/master/yamdrv Oh, I did not know that user-space had a copy of that. > > If we want to fix this, we could move it > > to include/uapi/linux/yam.h > > We could do that, or just leave it alone, as nobody would > tell the difference. When we are changing structures in uapi, it is very likely a red alert. On the other hand, we can change code outside of uapi more safely. One benefit of uapi is we can catch the compatibility level from the directory path. > > > But, if nobody has reported any problem about this, > > it might be a good proof that nobody is using this driver. > > > > Maybe, can we simply drop odd drivers?? > > Both the kernel driver and the user space side have a maintainer, and > I see no indication that it is actually broken. The driver is clearly > a relic from old times (earlier than 2.4) and we would not merge > this driver today. > > It seems more useful to keep looking for drivers with a platform_data > header file that is no longer included by any platform for candidates > that may be obsolete. OK. Thanks. -- Best Regards Masahiro Yamada