From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933018AbcBPPio (ORCPT ); Tue, 16 Feb 2016 10:38:44 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:54092 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932371AbcBPPik (ORCPT ); Tue, 16 Feb 2016 10:38:40 -0500 From: Arnd Bergmann To: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Russell King , Bjorn Helgaas , Alexandre Courbot , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Ralf Baechle , linux-mips@linux-mips.org Subject: [PATCH v2 0/5] gpio: clean up irq_to_gpio and ARCH_NR_GPIOS Date: Tue, 16 Feb 2016 16:37:59 +0100 Message-Id: <1455637086-2794174-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <20160202194831.10827.63244.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20160202194831.10827.63244.stgit@bhelgaas-glaptop2.roam.corp.google.com> X-Provags-ID: V03:K0:JFzbTPFeKRdnhHmikA96klwWmUpSvhV65sgxC4YgpbHpv0xerOU CExuMFulT5gUe9q0rLJWpJ3b3RtGATT40yQKK5B3L1ICv5HJ2UmmHnJ/AsnDL/H7w0BxxYe mRmbqXGtoGFnK4L17v8v6dGPDWC88EMl4H9WP6bStTg8FOS8PbwnPoSdU6xu5SoOReEgwfF n43ZQ2kyB8kAuF5Uo3Tig== X-UI-Out-Filterresults: notjunk:1;V01:K0:dCPvDnFK6YE=:G65Mn4XQJe6A3zY4R6jvTC D+cwCFCg8yjW/WNrcH2go2/MtIsenfNfHXZWSdBvJdlVHo/nL98NFC1d0doq2WfKA1BMCyAUW GBT+vdTOuYmtc+IaiNizz0uwn37l5Jan41CLHNqhVKz3DcolQAveY1toS6Kc14a6K5lHqpO6V 73hlBBJt3AdNECpK0GiFt/T94SUAWbAEwbPv8t8HU7eOQvBxOBn175Gh01FdSMui+W/hK4Dsk 8ob4ufrIBJQ4NnRRZ8cKgzouJ0Mu62+VOBvMZEOEGjoJrxNTgc9QMCxu7K8sXNs48W5uxDLWV Suz1OedTLK1jds0TBvdi/9ULJZDy4eEbeGE4Yr2hBGdnUfsjfOhtW5ElbX7t6eGf3s0st0hbW QLPpyI3nAO5/CPAMh506Ak50zu7MubbqIHUhm8QoQgRaRB1YU7FK8rGggW0QpZiydvZkFkDzy 3MTHXfAWfegAMj7oHObSeyo7/JcbEuspS4S9LHvXZp8MFXYNwQdDYkQHztgXM8As68Mv7Ef21 86ptamT/CicZsR+kuE8WSO430azcuyD3zrCDXfu7Bmuw2ScKqK118H+MrvyRIUWrNx/GCZ+NB L0+Is66prhFkCvgMnWEGsXIV4ET6y0/BF5FBq8vabx/xVa+yk11mcRJM532l3b3XENS5CCfWz fPZ02Fkd1tgviowhqfD6gbYXcUeE8tPPSZZGQnG0MN0nJHUT07ASidiO2x+IbxG20DQg= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I noticed that arch/arm/include/asm/gpio.h can almost be removed, after we have already removed the file for most other architectures now. When I removed it, I ran into problems with irq_to_gpio(), which we had already killed off in ARM, but it survived (barely) in the global headers and accidentally gained an invalid user This kills it off some more. The first patch should go as a bugfix into the MIPS tree, the other ones should only get merged later, but I think that's fine if they get submitted for 4.6. I left them as a series of five patches to clarify the build-time dependency. Merging patch 2 before 1 turns the MIPS runtime error into a compiletime error. changes in v2: * the MIPS change should now correctly fix the bug, thanks to Lars-Peter. * I left out the ARM specific change for now, and just adapted the generic file so we don't need that any more. * Fixed the bug that Russell pointed out Arnd