Received: by 2002:a17:90a:b81:0:0:0:0 with SMTP id 1csp700982pjr; Fri, 9 Aug 2019 04:55:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/1cbsXujBQewgkMyljEXOuOFBurvhJJz3cxwKDdKjbTSrTDJFkvjVC2iABhsUvXuSRS+q X-Received: by 2002:a63:7a01:: with SMTP id v1mr17569746pgc.310.1565351724207; Fri, 09 Aug 2019 04:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565351724; cv=none; d=google.com; s=arc-20160816; b=H2JYQX+/c16eLGcFZb69PFa2v+ZGz9Y4kmyE0E2Nu3Z8mnW40ar4hjWz90PifKDfTy zUsFvqPNBZANG5Dtdr+101ANHHGrB9MvE8SMMBEIO0UcSxbAlmmj1Mf0oCdpzAtVwHjp Q+2o/xz7vDuGcw/xmalZbvoHlJen70+ihr5JVKCM4K1mJrWb0AKQndlGLVWV/lTFv4em /7VDqfg3Augu0P7kQu+W0QPqwmypVehTffq5gmn6orZcsExgcGRm/1mRaN49RT3/KTEJ YhrpmLSR2hWuW3p1ZZHXHmjaspHvh1FnCcnO7W/9MRzg2iQOCNyBhX5hyKpmVXa2pbWq sJDg== 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; bh=gRvZxPuek6JRQruqkUJVQMjk/VZ8xO7dmw6h4WlzFd8=; b=axQgH+6lz3gw/iV0kzDpDhMDS480ESLQ1RJTeJvtEPvBnziWf7uvvuOfQVo4GAQAHz SiPdq8fDPGEYZdBbAjebhnRH3gs28EEXABF88V0m6aHrckCoMU2hVo59DKsxIwZKx5pT klve47aRPIBjRYrC/7FuFezABxGAc2X2sc1HjYKFKKKQogkKBFNw+51oGJXDyXbRbZ1d DXvOnkxS1WIAAZcWs79SXv0+FtPByzvVBUcfNGWcGcEFz46yqLvSHkGxToIfj3kHH/G4 f6VflbsErrv0yku9MYNpgE7g4lnZdqyt9dOTZQP9jC+kuN+bKb6V6kb8W3xqgfxf2ZQL jv5A== 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 q8si54257302pfc.155.2019.08.09.04.55.08; Fri, 09 Aug 2019 04:55:24 -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 S2405948AbfHILXl (ORCPT + 99 others); Fri, 9 Aug 2019 07:23:41 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43210 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726152AbfHILXk (ORCPT ); Fri, 9 Aug 2019 07:23:40 -0400 Received: by mail-qt1-f193.google.com with SMTP id w17so14770656qto.10; Fri, 09 Aug 2019 04:23:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gRvZxPuek6JRQruqkUJVQMjk/VZ8xO7dmw6h4WlzFd8=; b=WuaD4yAT13VVQavIIanPYMWs5+oqp9KI29Q+xHlYVB7kU1d3Zww6FUKKWuzIx+8Ktl yFhaN69ky24Y+DsAc/997F3Xl3ggb4Wb5Dd2/mk1RhiuEChJfypa9YPl0vS/y6eB+2Se tfQ181d5FukxVH1ASnDRfBSxV3SrXHjKPqv3Wgv0XatKegTLK4Z/Hku3xpysOjWMxTer 2ftZ0PYk9on7TntwuR2xA9cKHJJcBW03NRnEfOXVxDErysGr9GBcqou102NSjouL4td/ sIqb3ekeKlBEGRZgodiMOImiOGmsUgMRfblRrq/XJdd+zH/ckKW4ZnwuuvB9qSOzWr63 gzYg== X-Gm-Message-State: APjAAAWwrlx+lQ20E8NqbfqMQZA0AuztnVm6ZDx0IgJcQC0vY+6vN5Pd jpXZjC7siOENGeQgOWEgVHmXRss/iMgo1GmvfMU= X-Received: by 2002:ac8:5311:: with SMTP id t17mr17162360qtn.304.1565349819769; Fri, 09 Aug 2019 04:23:39 -0700 (PDT) MIME-Version: 1.0 References: <20190808212234.2213262-1-arnd@arndb.de> <20190808212234.2213262-14-arnd@arndb.de> <20190808214257.GF178933@dtor-ws> <20190808221950.GG178933@dtor-ws> <20190808233941.v6elo2mdji5awylu@earth.universe> In-Reply-To: <20190808233941.v6elo2mdji5awylu@earth.universe> From: Arnd Bergmann Date: Fri, 9 Aug 2019 13:23:23 +0200 Message-ID: Subject: Re: [PATCH 13/22] input: omap: void using mach/*.h headers To: Sebastian Reichel Cc: Dmitry Torokhov , Aaro Koskinen , Tony Lindgren , Greg Kroah-Hartman , Linus Walleij , Bartlomiej Zolnierkiewicz , Linux Kernel Mailing List , Tomi Valkeinen , "open list:HID CORE LAYER" , linux-omap , Linux ARM 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 Fri, Aug 9, 2019 at 1:39 AM Sebastian Reichel wrote: > On Thu, Aug 08, 2019 at 03:19:50PM -0700, Dmitry Torokhov wrote: > > On Thu, Aug 08, 2019 at 11:46:45PM +0200, Arnd Bergmann wrote: > > > On Thu, Aug 8, 2019 at 11:43 PM Dmitry Torokhov wrote: > > > > On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote: > > > > > By using the new linux/soc/ti/omap1-io.h header instead, > > > > > compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM > > > > > conversion of omap1 may eventually be possible. > > > > > > > > > > The warning in the header file gets removed in order to > > > > > allow CONFIG_COMPILE_TEST. > > > > > > > > Given that we want to migrate people off this driver everywhere but > > > > OMAP1 I wonder why we would want to improve compile coverage of it. > > > > > > Mainly for consistency: I'm converting all omap1 drivers in this series to > > > not rely on mach/* headers and to let them be compiled standalone. > > > The other drivers don't have a replacement, so I could treat this different > > > from the rest and skip the Kconfig and platform_data changes if you > > > prefer. > > > > Yes, because at least with the version you posted we are losing the > > #warning telling people to move to matrix_keypad. We could do: > > > > #ifndef CONFIG_COMPILE_TEST > > #warning ... > > #endif > > > > if you really want to allow compiling standalone for testing. No, I'll just drop the compile-test portion and leave the warning untouched, leaving only the header file include as a preparation for multiplatform support then. > FWIW the driver depends on ARCH_OMAP1 and the warning is > only printed for !ARCH_OMAP1. In other words: The warning > is never printed at the moment. All OMAP2+ boards moved to > matrix-keypad long time ago and the driver does not support > OMAP2+ anymore since f799a3d8fe170 from 2012. Right, it also seems extremely unlikely that any new platform would start using the header, and it also doesn't look like anyone is interested in moving omap1 over to matrix-keypad. Arnd