From patchwork Tue May 19 05:03:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gabriel Krisman Bertazi X-Patchwork-Id: 1292940 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49R3gt4R93z9sTC for ; Tue, 19 May 2020 15:03:54 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbgESFDx (ORCPT ); Tue, 19 May 2020 01:03:53 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47094 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgESFDx (ORCPT ); Tue, 19 May 2020 01:03:53 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id A426E2A112D From: Gabriel Krisman Bertazi To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, kernel@collabora.com, Gabriel Krisman Bertazi , =?utf-8?q?Ricardo_Ca=C3=B1?= =?utf-8?q?uelo?= , kbuild test robot Subject: [PATCH] unicode: Allow building kunit test suite as a module Date: Tue, 19 May 2020 01:03:46 -0400 Message-Id: <20200519050346.3983998-1-krisman@collabora.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Starting on commit c475c77d5b56 ("kunit: allow kunit tests to be loaded as a module") kunit testsuites need to be buildable as modules, to prevent the undefined references below, in case KUNIT itself was made a module: utf8-test.c:(.text+0x48): undefined reference to `kunit_ptr_not_err_assert_format' >> sparc64-linux-ld: utf8-test.c:(.text+0x50): undefined reference to `kunit_ptr_not_err_assert_format' >> sparc64-linux-ld: utf8-test.c:(.text+0xb4): undefined reference to `kunit_do_assertion' >> sparc64-linux-ld: utf8-test.c:(.text+0xbc): undefined reference to `kunit_binary_assert_format' This was found by 0-day on linux-next and fixes the allmodconfig build CC: Ricardo CaƱuelo Fixes: d269543a1dcb ("unicode: implement utf8 unit tests as a KUnit test suite") Reported-by: kbuild test robot Signed-off-by: Gabriel Krisman Bertazi --- fs/unicode/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unicode/Kconfig b/fs/unicode/Kconfig index a8865891c3bd..eb30ef469567 100644 --- a/fs/unicode/Kconfig +++ b/fs/unicode/Kconfig @@ -9,7 +9,7 @@ config UNICODE support. config UNICODE_KUNIT_TESTS - bool "KUnit tests for Unicode normalization and casefolding support" + tristate "KUnit tests for Unicode normalization and casefolding support" depends on UNICODE && KUNIT default n help