From patchwork Tue Jun 9 00:37:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11594163 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5757313B1 for ; Tue, 9 Jun 2020 00:39:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3CEAC20774 for ; Tue, 9 Jun 2020 00:39:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591663159; bh=tTxSMJjSKwUpSWdVe0PFf9Jn4K5iUxQRrxzPPBLucjM=; h=From:To:Cc:Subject:Date:List-ID:From; b=a34EelHf7NL+BNvHIw6Nt6kFp3dA/POgG3BGUskEVQamFGryFohUrBDz8c1pQhnD9 8TBqVz6Q8BUrUQnxx3wEvk327tusjNcIazYwkaO+m9iKr42xTJo6mWTG5sqTZEEU0n KJm1l+NuxkL37LxMRNLTibX49XYprzk8qI6CR7ME= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727872AbgFIAi5 (ORCPT ); Mon, 8 Jun 2020 20:38:57 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:43625 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731026AbgFIAip (ORCPT ); Mon, 8 Jun 2020 20:38:45 -0400 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-12.nifty.com with ESMTP id 0590bt3n014953; Tue, 9 Jun 2020 09:37:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 0590bt3n014953 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1591663076; bh=es92rbvBvwsGCQZx+NtzHSCTWeSTG28c6gpO7Y/gfDo=; h=From:To:Cc:Subject:Date:From; b=wuqnzO70qMLXDauU1Xpg6OXmPp2rtl0BfVr1rKTSmG+VSveRsXm5+QQc3R5iyIxeH gnnNDlFrATKNVd7wbX3dLxR9XgOUb2PIZVj2eVQBpo8C/9HIWx9+C95NFssfeyRRCc GxLky0c3f2m+7TrrD6vpWYkff2ZlqePr/nult3EzmrTIzJBVPPs+/u/HGI/xIQt3La LYBvQz86a+qTtVfvKxEFV933RlsDBebPRCHzIxlr0GgaYaEfddx5kIDOj4bx/9G8u0 FEEoc1cQ1gjYRVhsTlXfZ/MmBM6m3URO/QV2IyGyYhCefaejYb2NOslhr5wJQL9ZCY 3LHENzgJKJ/zQ== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Guenter Roeck , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: make module name conflict a warning again Date: Tue, 9 Jun 2020 09:37:52 +0900 Message-Id: <20200609003752.428817-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org The module name conflict is still remaining. error: the following would cause module name conflict: drivers/char/adi.ko drivers/input/joystick/adi.ko Make it a warning again to build sparc64 allmodconfig successfully. Fixes: 8451791d1ff0 ("kbuild: make module name conflict fatal error") Reported-by: Guenter Roeck Signed-off-by: Masahiro Yamada --- scripts/modules-check.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/modules-check.sh b/scripts/modules-check.sh index 43de226071ae..8b1785863c64 100755 --- a/scripts/modules-check.sh +++ b/scripts/modules-check.sh @@ -15,9 +15,10 @@ check_same_name_modules() { for m in $(sed 's:.*/::' $1 | sort | uniq -d) do - echo "error: the following would cause module name conflict:" >&2 + echo "warning: the following would cause module name conflict:" >&2 sed -n "/\/$m/s:^: :p" modules.order >&2 - exit_code=1 + # TODO: turn this into an error after fixing all warnings + #exit_code=1 done }