From nobody Sat Apr 18 05:55:04 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 180B5C433EF for ; Sun, 17 Jul 2022 09:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbiGQIyF (ORCPT ); Sun, 17 Jul 2022 04:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiGQIyE (ORCPT ); Sun, 17 Jul 2022 04:54:04 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4B7DB7C0 for ; Sun, 17 Jul 2022 01:54:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 1A9C2CE0EDB for ; Sun, 17 Jul 2022 08:54:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED485C3411E; Sun, 17 Jul 2022 08:53:57 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="eDGS+NfF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1658048036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dkXr1iyL8WVr9J4FTnhIRaG1yM9efnbmEVUprmdLPQE=; b=eDGS+NfFFiel1+dGtKF0J2jt0O/XuV6tMotGE1wIEytkZ4V3lBLHcVHMQcwFJmUn1FTaxf Hgka7WaT6zQibGyxWvRDdSGqFaCU3qFRkyzTjyB5kDPKVx25Loqtw81gopUKR/9aP4ZUKQ fwWS+GnMgMeL7LOeDjOH8LgE1E5DPsk= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 2f82cec2 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 17 Jul 2022 08:53:56 +0000 (UTC) From: "Jason A. Donenfeld" To: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" , Johannes Berg Subject: [PATCH v2] um: include sys/types.h for size_t Date: Sun, 17 Jul 2022 10:53:46 +0200 Message-Id: <20220717085346.1525754-1-Jason@zx2c4.com> In-Reply-To: <20220713100029.163083-1-Jason@zx2c4.com> References: <20220713100029.163083-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Usually size_t comes from sys/types.h, not stddef.h. This code likely worked only because something else in its usage chain was pulling in sys/types.h. stddef.h is still required for NULL, however, so note this. Cc: Johannes Berg Signed-off-by: Jason A. Donenfeld --- arch/um/include/shared/user.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/um/include/shared/user.h b/arch/um/include/shared/user.h index dd4badffdeb3..bda66e5a9d4e 100644 --- a/arch/um/include/shared/user.h +++ b/arch/um/include/shared/user.h @@ -16,11 +16,12 @@ */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) =20 -/* This is to get size_t */ +/* This is to get size_t and NULL */ #ifndef __UM_HOST__ #include #else #include +#include #endif =20 extern void panic(const char *fmt, ...) --=20 2.35.1