Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1443278imm; Wed, 26 Sep 2018 18:41:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61mYvE8u6MZNPTLiti0VAqKJqzXOyvPP3scmc91papHlZE0sV+tolE3axDa0Q/HdkoN/9Gu X-Received: by 2002:a17:902:a715:: with SMTP id w21-v6mr8482645plq.61.1538012464897; Wed, 26 Sep 2018 18:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538012464; cv=none; d=google.com; s=arc-20160816; b=hNEjf8HrorOLoCQHe214hczB2I09qqHuvblTU/V6BeA1bgciLLbR8WvkFGxPE/Sql0 j0eUTAuBwxMrKtVKh6GD1DkjUxtSzWfxW3sjrQuuaT3h7wWhQaZ5bOrzu/KmG8Y7Fynl gD3PD3GgtF7ZOSSQE3aqXP/hAUvaOdjBNcNVuCBD9DS7mq9x7JWaxyHQp0QJSyr0Erbg VOKpmin3OS3fbO66lwS/GJcPnZIlWnZ12qkHKk52/xjPTiGpnOuoi8MoeR0h8sCMaxHl h5W2aIkvBf75SYZIlg04T86UzKnTyLc/Jg1xB7+ftteYn7K8VCl+1plczfIb8FDTkZTD vqIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=5go+oaIqr2Jp5Hbi98ghcAbeh9VmtpnhlU6dDnKN42U=; b=j+u4P5mFv0g6Ta+alWJjREVYur3ZWC1/DB78xe5dUf7hFlG/ae8ZV6ZU58BIbBePVM u59fObGLguQF2VwgAea+PwWAiamDkwyQ5mF15WL87b06QZuxehbXIv798qmLhAr+Y4z1 SH2Hp8Ep/caaDmyJes0JwNXfZ0Kt7SskTcV+iIv4yyycfgd7vtSFZN8XyTzpPlMfH8io 3VwnuL9UAO5YUZNF3utU9wgrnq5wE/+bX/3VfCfO5tc+V3P+Hi+aX1C+XigrkcHuBgg1 YKH50HlefDkxg16F82N8R06L1zTzXU52Izi6P3MwWwkTAlP21cM0GciJl7monFdr8S7y A+wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ByDxL5et; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba6-v6si551306plb.364.2018.09.26.18.40.50; Wed, 26 Sep 2018 18:41:04 -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=@gmail.com header.s=20161025 header.b=ByDxL5et; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727217AbeI0HzR (ORCPT + 99 others); Thu, 27 Sep 2018 03:55:17 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36601 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726929AbeI0HzR (ORCPT ); Thu, 27 Sep 2018 03:55:17 -0400 Received: by mail-qt1-f196.google.com with SMTP id e26-v6so1106470qtq.3; Wed, 26 Sep 2018 18:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=5go+oaIqr2Jp5Hbi98ghcAbeh9VmtpnhlU6dDnKN42U=; b=ByDxL5etxmnJyTXXTfNAYws/OaZVxOtA8xxLheMa743t2+bnN2m+NOSMAn+uPr9XzW iaa/9HsuNZ9Q0vQ2zlU7HSAImsvwF8xLtAfjq/ricu9pku4VOeYhK2a5W3gCbZYqlVKq jisZtNmrQ7KNIrr8a9F+cs1YefLkkqdEGWmHkNdC/1JyScom3O/N//EGrp/P3fFKtxNR 9DtTY1jdpogwA22g29dlaHNcNCRNMDkiMf9zmieb28VGr0qk32LkkV36rTs1h0UvjL3c Du9SUzME02Hv7VDj20ldRRhd8eXQozQed5BO4jOcuNUU7cN+wXZTv9FefEbf6brhNcT1 4enw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=5go+oaIqr2Jp5Hbi98ghcAbeh9VmtpnhlU6dDnKN42U=; b=S3D3Bb+Ve7OAd/j5KUXDY9sFex3tu+XFBarjLukiGVYlcC+660ths59AN8S/Dj3YlQ 6hYLRtUL3mfD0Sbhva6j59lf5WiJCLx9YfVJYLCr6Ute3O1n1KlFr9JQH2HJHBWD1Z53 P+iEUGGB+TPklvQujvmY/F1bCa/lhJuypGQFtGJ464T7+Mr4qbEVWGAMrMTuR1ZaAoaF 2z5erGWCP0X/vqKOQL5UMg1w2H4apv6pyHJ8sJqY/Vl9xnQea1lIqLTo7oBFdPwFnS6G GoctytU6+vdKrf0bC8Aim19zIidr/JwOGotigRTw6xaqgHTkeNUD9Wn66mBOPZvqJlTQ anxQ== X-Gm-Message-State: ABuFfoi2GEy7GrzxnfKQyafCp9evBnOsPbejY/TtWBbrPbR5CjsNTqH+ 9mUbmdMuVkDN75KGoiY+p4w= X-Received: by 2002:ac8:1967:: with SMTP id g36-v6mr4955911qtk.193.1538012370754; Wed, 26 Sep 2018 18:39:30 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id w5-v6sm454102qkw.69.2018.09.26.18.39.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 18:39:30 -0700 (PDT) Date: Wed, 26 Sep 2018 22:39:20 -0300 From: Leonardo =?utf-8?B?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: 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 v2 0/7] Remove errors building drivers/DRIVERNAME Message-ID: <20180927013920.GA8950@WindFlash> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 noticing) 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 | 2 ++ drivers/parisc/Makefile | 2 +- drivers/s390/Makefile | 8 ++++---- drivers/zorro/Makefile | 7 ++++--- 8 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 drivers/hwtracing/Makefile create mode 100644 drivers/oprofile/Makefile -- 2.19.0