From patchwork Tue Sep 12 09:23:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 138099 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp324910vqx; Tue, 12 Sep 2023 04:04:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCl7wMwD8VnmRzv+OCPgB4DdGRsb4pZIQCLWmvoOQaVm01+7e0R353gmlqH/ORVIhrK3vh X-Received: by 2002:a05:6a00:851:b0:68e:2da7:6b0d with SMTP id q17-20020a056a00085100b0068e2da76b0dmr11222560pfk.1.1694516693557; Tue, 12 Sep 2023 04:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694516693; cv=none; d=google.com; s=arc-20160816; b=uOvQNiOJ8MCigNHvm2Si9LfbYbCtdwzIc7VX4+vGcQFTvu/SqLs7qFqz3bQkh3Uhlx sXJ1eObYxPYVfxlpH7wIm7DYUMQsQ7DgOssPGfgtvh8mpvYHewqMC+HIuLuLo73fblSn jhSuqXCz6ISOC7u8ElK72zwcmC+1swIZNHm0e3KqTn/C8icI+YAkqH920QSm2To1SVB2 BaV99OYvmPS5a9rjAdlPSjC/TbBOGel9lZPRXIyYmxeSUwEmniasB/8IWq/pfRWD6oyk vjMQZXur2zHfqAETwUpbICSDl8htIK2bGT0zM28yBKsUaSQfIQMEYbwe50zjTjEOArkr 1xyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qDHyTHZROEucH9x8E3vePjybF++E6uTcEHbd5jCvjeI=; fh=nwQmH5b41D2GcjSqK0+mo6hBzeRCT/n4PkKg8k7vm4Q=; b=M99L5a+A68I3kmICLtfYX9ema4bZZUJjrybDqCSJhT0qfgcaiFzyoJO0K5vDizqayu WWdBYAG/GR80E/9pLNt1CfZEDqzBXQepUbKgZOhRSnPC3lZr/kI6scjeYtgwApX9YIIS Kc9D58Hs36Av92Ld+acDGSugVVfXvbreDT8tvoVBL96f6SWpflf1V/UWpbSCRfiRmeGC Gd+j5afc4C7TxoN1sn4yOkHFdrMEWDQiG8kYWlb31gaifo/L/F6zLxhKao8qyT1/V874 UJOKgR6CSTQ4Cnu5i82KfqjbYhMkW+f2MERiPTLodsmaZvJX1Tw7jfhao4mivgcSCnZN Ov7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SmNT0ugb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s68-20020a635e47000000b0055be9526b7fsi8123108pgb.416.2023.09.12.04.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 04:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SmNT0ugb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6872E81F374F; Tue, 12 Sep 2023 02:24:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232179AbjILJYF (ORCPT + 37 others); Tue, 12 Sep 2023 05:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232137AbjILJYD (ORCPT ); Tue, 12 Sep 2023 05:24:03 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F654A9 for ; Tue, 12 Sep 2023 02:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694510640; x=1726046640; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5TdwgVKMF5KAB6b8+l6VMEuRaZtOJKaVWoHEmMbfRxE=; b=SmNT0ugbHEJVz34XXDZxs4avv8jwvLvyAqLx6vlJFfClLX4tqRlla5cr K0AOljMdhJAmHcg/xNSECVNGIYRdPI5bpcV1GRWKEDkwF/cqPkLofkvax oHKedFPDpPe0YroznrfaOALKHEiaF59pANWabSGDkxSg6ldhmBkP2AMgV UYi0twssMXOf5lNj0lB0brohNKLPvlTbsApkYqYzfdiMT0Vy9PN7zqrV3 ViAmF/WL+AF/Dev1lTc1DY5qCHjKzlTCTbLBZ/3/Ep85LumPHUy5y2QQY qR2SBYfuQYFbZgS4YmKYEuK4JmazgrhHhMxkNfAWLDHbEwJZpuI+JIqjW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="357755758" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="357755758" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 02:23:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="746805238" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="746805238" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 12 Sep 2023 02:23:57 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B60AB248; Tue, 12 Sep 2023 12:23:56 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org Cc: Rasmus Villemoes , Andrew Morton , Herve Codina Subject: [PATCH v3 1/1] minmax: Fix header inclusions Date: Tue, 12 Sep 2023 12:23:55 +0300 Message-Id: <20230912092355.79280-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 02:24:22 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776829536813138786 X-GMAIL-MSGID: 1776829536813138786 BUILD_BUG_ON*() macros are defined in build_bug.h. Include it. Replace compiler_types.h by compiler.h, which provides the former, to have a definition of the __UNIQUE_ID(). Reviewed-by: Herve Codina Signed-off-by: Andy Shevchenko --- v3: rebased on top of the latest -mm patches (assumed to go via Andrew) include/linux/minmax.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/minmax.h b/include/linux/minmax.h index 69bbe987fa87..ca69abd6151e 100644 --- a/include/linux/minmax.h +++ b/include/linux/minmax.h @@ -2,7 +2,8 @@ #ifndef _LINUX_MINMAX_H #define _LINUX_MINMAX_H -#include +#include +#include #include #include