From patchwork Fri Sep 28 02:08:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leonardo Bras X-Patchwork-Id: 10618875 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD1F4174A for ; Fri, 28 Sep 2018 02:08:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAEE22B5CD for ; Fri, 28 Sep 2018 02:08:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC36A2B5CF; Fri, 28 Sep 2018 02:08:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61A052B5CD for ; Fri, 28 Sep 2018 02:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726106AbeI1I3z (ORCPT ); Fri, 28 Sep 2018 04:29:55 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45067 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbeI1I3z (ORCPT ); Fri, 28 Sep 2018 04:29:55 -0400 Received: by mail-qk1-f194.google.com with SMTP id q20-v6so2896971qkc.12; Thu, 27 Sep 2018 19:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LZGk7PgCdjrbqQG3oM6AhSpqvwyDq4O1Xo1g7NqXKqw=; b=UfIqbT8ozJcLUAeI4/IN7kTUltDCrJq1Qpq3c0fDACGQ1D+70jnbae8mdeLPPp1fLV 0OrP6/IqZl8CdvJKfzDbV49n9w+1ur/dH+jSDKAn7RhRcTKd1hyqfhr9ljh5if4NhZXV tzhAmJY/AciwFHFRSpsKFOrvrKl/4opf3TDNK0dmSfTo9nKTIHtvzqn2ZfP9x536+FvY 5RYVnzH2XCFuZvaX/K/DVEQ0WlkmuV40vZYvRMLk3jF2V5YMlLugULJSUoF1RSDUt6lC OpeVRXuhk0lINTVrz1MbjpFZDRDoCyEnQwyDyGtdvS6sBL7aWf1LS2bUuAzf6+iVevR5 kkFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LZGk7PgCdjrbqQG3oM6AhSpqvwyDq4O1Xo1g7NqXKqw=; b=C1Ld9CXEjhZZaAv0NnMqyUTYuEv7TW9h1/dFAAxKK5wdLsKM9N6MPNeZeteeKadTxz rN8di/V73wnm+ZoXit2oI7WUMWM+PfJJs6mj6BWcdagbu6uqAZY9fw1fZJyi3XO1G6yM l/NUocn6TWBxlqPuvqxceB+tPdA4sMxjKZJxD6sXDbo4kRJTL6lS7SiV8lVTIbeAFsQp wsiPVYCcu3Y1Gzirlj7g6plzjEp2vA5Qla8hbC2agjRAZnC4ysNjxYIj5Ep3OHsND5e8 cs0+unkIR9cT4dHl0jVn005L9TQYpol7H7P6lLFCEZ3GJxeoNuwbgWft5ngpRbZUFGB6 C6lw== X-Gm-Message-State: ABuFfoigeXm2sYN6u7fakXZKjY00TOzPBB8X6FT5NXoVzL94eiVLF+Em 2DtHhNdT35HHIRMiawYNcF0= X-Google-Smtp-Source: ACcGV62XTM8qrwa4L5ysEjsTivaNjYbfy1mXX9wujsbB6osaFZD/xRJlOl8UjPTl2RfPWGEfbvUKHg== X-Received: by 2002:a37:1b4b:: with SMTP id b72-v6mr10255424qkb.48.1538100513257; Thu, 27 Sep 2018 19:08:33 -0700 (PDT) Received: from localhost.localdomain ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id y138-v6sm731191qka.36.2018.09.27.19.08.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 19:08:32 -0700 (PDT) From: =?utf-8?q?Leonardo_Br=C3=A1s?= To: lkcamp@lists.libreplanetbr.org Cc: =?utf-8?q?Leonardo_Br=C3=A1s?= , Alexander Shishkin , Finn Thain , Robert Richter , "James E.J. Bottomley" , Helge Deller , Martin Schwidefsky , Heiko Carstens , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, oprofile-list@lists.sf.net, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v3 0/7] Remove errors building drivers/DRIVERNAME Date: Thu, 27 Sep 2018 23:08:09 -0300 Message-Id: <20180928020816.11251-1-leobras.c@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Special thanks for the feedback from: - Finn Thain (I fixed the build problem) - Geert Uytterhoeven (The cross compilers were very useful) - Rolf Eike Beer (Was unintentional, thanks for the help!) This Patchset changes some driver's Makefile to allow them building using the command 'make drivers/DRIVERNAME', if compatible. The changed drivers would return error if the above command was run on them, after an x86 allyesconfig. The main reason of this patchset is to allow building lists of drivers looking for warnings and errors to be fixed. I see this change as a new feature, not a bugfix. I understand the default bahavior may be building with a simple 'make', but I believe adding this new possibility will not be harmful. My main objective is to allow developers with low processing power to do changes in the kernel and look bugs using free services like GiltabCI, before submitting to community. If there is any interest helping/using this, I have a prototype in: https://gitlab.com/LeoBras/linux-next Leonardo BrĂ¡s (7): drivers: dio: Avoids building driver if CONFIG_DIO is disabled drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled drivers: zorro: Avoids building proc.o if CONFIG_ZORRO is disabled drivers: s390: Avoids building drivers if ARCH is not s390. drivers: oprofile: Avoids building driver from direct make command drivers: hwtracing: Adds Makefile to enable building from directory. drivers/Makefile | 4 +--- drivers/dio/Makefile | 2 +- drivers/hwtracing/Makefile | 3 +++ drivers/nubus/Makefile | 5 +++-- drivers/oprofile/Makefile | 1 + drivers/parisc/Makefile | 2 +- drivers/s390/Makefile | 8 ++++---- drivers/zorro/Makefile | 7 ++++--- 8 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 drivers/hwtracing/Makefile create mode 100644 drivers/oprofile/Makefile