Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB4A2C52D11 for ; Thu, 26 Jan 2023 17:53:21 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 62B7E3CD35E for ; Thu, 26 Jan 2023 18:53:18 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id F3CDA3CC747 for ; Thu, 26 Jan 2023 18:53:08 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 7E41E1000A00 for ; Thu, 26 Jan 2023 18:53:07 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 590A51F8A8; Thu, 26 Jan 2023 17:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1674755586; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Wng6wqHl0ngMWQsuXZqq1xgWVkzs9amsGEjxX5v3G2I=; b=ki4T/ADl/g/IixPCq8KKsXxrWU++dj64T9a4Q1Ht6fqesSKBM0tZMaQmLrmNn0GGKLZi3X +vB7A9mX8M07lCr/YrkMlYievbMNfwcnKMX32TOR33Ko5SA19v5y4R38jE/nJA6cp0h8f6 NGxYvSz5Q9hhYvpb8FbZNFgepMfe8nY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1674755586; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Wng6wqHl0ngMWQsuXZqq1xgWVkzs9amsGEjxX5v3G2I=; b=rr0ALVgk15hTxUrtKfsaHCyYU3YQzDkFn+rE0lR4R5Qv3k3m2iiom6inH18X9lUcCqeQl7 vSlty9L+wosCYGDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 00448139B3; Thu, 26 Jan 2023 17:53:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Ke9yNwG+0mP7bwAAMHmgww (envelope-from ); Thu, 26 Jan 2023 17:53:05 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 26 Jan 2023 18:53:02 +0100 Message-Id: <20230126175302.12558-1-pvorel@suse.cz> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 1/1] tst_minmax.h: Include X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Palethorpe Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" It's always good to first include header which defines macros/structures before define fallback. In this case it's needed to avoid redefinition: $ make check-hugemmap15 CHECK testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c hugemmap15.c: note: in included file: /usr/include/sys/param.h:102:9: warning: preprocessor token MIN redefined hugemmap15.c: note: in included file (through ../../../../../include/tst_test.h, testcases/kernel/mem/hugetlb/hugemmap/../lib/hugetlb.h): ../../../../../include/tst_minmax.h:9:10: this was the original definition hugemmap15.c: note: in included file: /usr/include/sys/param.h:103:9: warning: preprocessor token MAX redefined hugemmap15.c: note: in included file (through ../../../../../include/tst_test.h, testcases/kernel/mem/hugetlb/hugemmap/../lib/hugetlb.h): ../../../../../include/tst_minmax.h:18:10: this was the original definition Redefinitions is done because hugemmap15.c needs tst_test.h for TST_TEST_TCONF(), but which defines MIN/MAX() is later included. Signed-off-by: Petr Vorel --- Hi, another trivial fix, which can wait till the release. Kind regards, Petr include/tst_minmax.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/tst_minmax.h b/include/tst_minmax.h index 9d7d596fce..1597fbc978 100644 --- a/include/tst_minmax.h +++ b/include/tst_minmax.h @@ -1,10 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-or-later * Copyright (c) 2017 Cyril Hrubis + * Copyright (c) Linux Test Project, 2020-2023 */ #ifndef TST_MINMAX_H__ #define TST_MINMAX_H__ +#include + #ifndef MIN # define MIN(a, b) ({ \ typeof(a) _a = (a); \ -- 2.39.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp