Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp609254rdb; Mon, 15 Jan 2024 07:46:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoHkwsEWPyw0whD6rONo7u5/Y6M2lo9/ENmTvz/XGKmgSHtMT+kCtKs5Mkg1pjf8ESMFmk X-Received: by 2002:a05:6402:40cd:b0:559:7b9d:98a2 with SMTP id z13-20020a05640240cd00b005597b9d98a2mr24398edb.45.1705333591574; Mon, 15 Jan 2024 07:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705333591; cv=none; d=google.com; s=arc-20160816; b=jQEANIL5LWIpDXn+wgPux1yarnOhNtb/L7AqhcLKUQw78CuyuNRdV28clUJCbxeAk2 OtcPAHoBnL6XxKwzlR+Kon8i6Het5CSxZrgGxsTUH8AsoK0Wxk+xB4z4yEWFht6WVB68 QhO1SYtrmCIDndVF5OyQwtwZbpw/xzDTZ3H8qNkMzwcbQlSHzfubEhP7rlbcBPNf4AhN J4M1KBesIEf+6u77LRY3cTWsNsWmwMBLvvNnXlFfHDSxfxAxH21jRnaBGD2LmlnXCSmR EZTWM4JUFn0A/v8BrvWc6WoDXMoya+qC7bYxAqOdzvjIzVHaYN9PpWuLaE+Q0hSXADrq TKyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=yJEZxzOzncv1QTVfRspOT86NVOhhPss/crA1KTOsfTg=; fh=vlKOPgku99ecVC7LpffYOjNwRdZ2ckrDV+h8UPNI+3M=; b=EDe/zSIgk0iaiYb2JDooqXEliIvZLO225G4be8in4B7pO4wh53F1mdD71zb7ULgiHg Nx0ZS6jhABDr+mnkDxPXG9aHpNPhWz/heET+K9QTJ1Zx+zRvCr1d34g24oaCxC2HtXkY pQylcNqLOdGwOdO1F+nLJ1MByrx1Om9+DqHoYms4WMWADJ1sc7uV6HKCA3NGa4sYMT0g VVms5foU6Emfi0IhqBPEqJ36gL+Smz2KO/v+eC860ie6XuPINb7b2gURc4QEF2YEE7/q pIri4VsLAolj7ckZV1O+6Nmy4yAluhkvbmbyQUkBcH6OQORe3pc72ae8C198xu0fQxs6 DbcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mwa.re header.s=google header.b=NibfqV5Y; spf=pass (google.com: domain of linux-kernel+bounces-26189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mwa.re Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m9-20020a509309000000b0055716150dd2si3941624eda.468.2024.01.15.07.46.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:46:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@mwa.re header.s=google header.b=NibfqV5Y; spf=pass (google.com: domain of linux-kernel+bounces-26189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mwa.re Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4CAD71F225DB for ; Mon, 15 Jan 2024 15:46:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F68E1775C; Mon, 15 Jan 2024 15:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mwa.re header.i=@mwa.re header.b="NibfqV5Y" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07BC01774A for ; Mon, 15 Jan 2024 15:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mwa.re Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mwa.re Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-40e8004628dso4440145e9.0 for ; Mon, 15 Jan 2024 07:46:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mwa.re; s=google; t=1705333578; x=1705938378; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=yJEZxzOzncv1QTVfRspOT86NVOhhPss/crA1KTOsfTg=; b=NibfqV5Yfxu4BAV7W0H7G2cYqD5BOWLMs92JqjnvG9fTpD01sD4S6vMxk+hoODu/t1 XlJUr5ByeoYQLRrdDzfLjH+F6gpOMVQkU+wpahr6IwT2VcNiDJlu/M4QLSseHPJtqUzG LJU3wgFUFWSyLyGBnoDcb6SQpkasMNU3OVJc/Jv0B5JLmM3zi8SkStNYSR/vVqRKOq9S K1YaYM/waZUGfycXPEqKmgMCPu3MmDA7oKdUgRd3eew3lyt/4glxJGEPzR31eCW7eOZO DkYmgmFf/UDz/djkj3UtZJe+olIvXRWQmfyoPOslkUqOL5bhrRAUrJ7YHPuRHCrL9ah8 8PSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705333578; x=1705938378; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yJEZxzOzncv1QTVfRspOT86NVOhhPss/crA1KTOsfTg=; b=aC5fYoNyRt+VkpVktIcNZ7bURHLuE3da7JKEa3Ue2za5TTawDTQtTPLARvk89c/63a 8q7qngcSrPaI4TgwD3kCWZEv9t9l6X4eSboPV0qHeHLNVYHmfclm+iX46rKhlJdH9Pwi bOpz7/aLuzK2dHYFYUqWaxDD84ndJtqZ8URv4rfPSFb9gkGF9MfKi6/kqlx+BtDyNGY4 +1LzcZY0lD2HqKDD0SA4GTth9RWRw5zX2G2DIxm/EAg9q+h7haMemEoNv5k+GXq664LX /PE/J0GlaiRuITW4dqVPDR8R3+3/sz9EPmKyXOTSsXx/+FC+7f4A3hp7dh4/v3YrHz41 0asQ== X-Gm-Message-State: AOJu0Yx893ILHbe3DVyLhc1pzPQdln6uqR0UBgxeCApsFrSbwM0bxLWi iqrnxYI4owUoIQpxgvg5qn0jbtbNaiK9Dg== X-Received: by 2002:a05:600c:3111:b0:40d:8794:8535 with SMTP id g17-20020a05600c311100b0040d87948535mr2962745wmo.160.1705333578032; Mon, 15 Jan 2024 07:46:18 -0800 (PST) Received: from electron.fritz.box ([2a0a:a549:33a5:0:44e2:8957:612:a313]) by smtp.gmail.com with ESMTPSA id n18-20020a05600c501200b0040e77ce8768sm4450228wmr.16.2024.01.15.07.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:46:17 -0800 (PST) Message-ID: <20be7b9d5b8c0bef2a35da3d207c15eae75bfd4d.camel@mwa.re> Subject: Re: element sizes in input_event struct on riscv32 From: Antonios Salios To: Arnd Bergmann , Dmitry Torokhov , Deepa Dinamani Cc: rydberg@bitmath.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Henrik Weinstock , Lukas =?ISO-8859-1?Q?J=FCnger?= Date: Mon, 15 Jan 2024 16:46:16 +0100 In-Reply-To: References: <9e97eb50-f9a6-4655-9422-fa1106fff97a@app.fastmail.com> <491250ba57be2ab983048ffcf5ffd2aec2bedb9e.camel@mwa.re> <1a528414-f193-4ac0-a911-af426bb48d64@app.fastmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2023-12-21 at 14:38 +0100, Antonios Salios wrote: > On Thu, 2023-12-21 at 12:28 +0000, Arnd Bergmann wrote: > > On Thu, Dec 21, 2023, at 08:56, Antonios Salios wrote: > > > On Tue, 2023-12-19 at 13:53 +0000, Arnd Bergmann wrote: > > > > On Tue, Dec 19, 2023, at 02:50, Dmitry Torokhov wrote: > >=20 > > I don't know what __TIMESIZE is, this is not part of the kernel ABI > > as far as I can tell. __USE_TIME_BITS64 should be set by any 32-bit > > architecture if the C library defines a 64-bit time_t, otherwise > > the > > kernel headers have no way of picking the correct definitions based > > on preprocessor logic. >=20 > Okay, I agree that this might be a libc problem then. I'll ask the > glibc maintainers. >=20 According to a glibc maintainer, __USE_TIME_BITS64 is not set on architectures that use 64-bit time_t as default such as riscv32. This can also be seen here [1]. Perhaps the kernel header needs to check the size of time_t in some other way? [1] https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/unix/sysv/li= nux/features-time64.h;hb=3Dglibc-2.37 --=20 Antonios Salios Software Engineer MachineWare GmbH | www.machineware.de H=C3=BChnermarkt 19, 52062 Aachen, Germany Amtsgericht Aachen HRB25734 Gesch=C3=A4ftsf=C3=BChrung Lukas J=C3=BCnger Dr.-Ing. Jan Henrik Weinstock