Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp599937ybi; Wed, 3 Jul 2019 01:41:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuz4r/cA+EFKe/XfeijeZSiE9IUBcQQU4Ik6gJpwTkW4Bhx7H2U8sNFpsO18xyqWwnQkDp X-Received: by 2002:a17:902:788f:: with SMTP id q15mr41739473pll.236.1562143312132; Wed, 03 Jul 2019 01:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562143312; cv=none; d=google.com; s=arc-20160816; b=nHquTp02lRplinsVhPmPlVZZCrOVM5oPuMc7IFctW8myVaIoDRfNSqHcWAO4U7rQMh H5VG2/dwbE23mo0HY7oeNu2OpcRTHIGjr1JBbs6WworpHIx1at10vraqdL5qS6UC4nTS K6Efhzyi7GaJL03IKJfNU1IE4j1jmmpedYBQPPthpxmf2JMFdTvpfAUuKluvTOJyU6LF AUqzJ7P+eZ8VCukuoBcoUIo32fgOAJj9z0MH6PRXB508Uj4AVDRSoKM8xhRb+x4JZGb/ /B3uSPKCAopTqXeITThYjlfLbe1xV8qgR6JmgPqYA+7XTIaysCYK7yXqK7q218ksigl6 rxmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Vpaf9lU2R84ri7xVwxgAUugNK8mi0QVQIdzUzZXfbDo=; b=gzhroVXcvzX//75IWhUfk8ZigVfHHMzRX/E+zJcSisRB3T3G3XnUpbHFH+Pcb1KrAp 3CBUIQGt/jbdgG4+7ebawZtV4JQlpMWNWIsS5vwLB0ouyDTaJp5RoOZgqAzr/o48XWAi 7LGILG08dBDb8yLLMgAbjRlmnuo9fCdhm+N30aQEw+bOtWXEqRLowzh8ErEwLnj/yPBW LOd23pW+yxJsetgyz92D2ZyyeCWvGgdF+EVTV3iO/MeLBUkKe1ju6GZ4GlewWWXGGBgF Pg4xK1Mjb9a5igOpsBhpQJQXCArpxoGoYy34zvx8DCkGsjSeEAmdbHQPKX8VQI2IUAHo QN6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si1790905pgp.16.2019.07.03.01.41.35; Wed, 03 Jul 2019 01:41:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727277AbfGCIlD (ORCPT + 99 others); Wed, 3 Jul 2019 04:41:03 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35395 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbfGCIlC (ORCPT ); Wed, 3 Jul 2019 04:41:02 -0400 Received: by mail-qt1-f194.google.com with SMTP id d23so1665630qto.2 for ; Wed, 03 Jul 2019 01:41:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vpaf9lU2R84ri7xVwxgAUugNK8mi0QVQIdzUzZXfbDo=; b=Zr9JRl7Mnkg75XR4ijGTZUMfjuQ85kDMUgiqHMezT6hUNubz+5rhKOop9D9uMBZNg/ F6jQsa5pHVsN1mP0mdgw5Xx1i4gB2lLx2XLxxnpbZRUYrULnz3eDNoMr+VWWp0SHBqXg U0Q4SFyF/uUItst3CrjfnvlXHqBrV75YvlOglwT0sSkEa9zgmLG8tTXc0SGsVSDUocGt YPkkmmtUn7CidzSOdMdax+LKS2BbuEo+17L7mivrfopcylIka/XWkvbUAs2klc1IUQeQ 7UKWvmNcn+cQdr/27cfYjlf2pfZR0x4hAlHDN5jzHStVyDvWa2c7MTCDsWEy6YgFZL9J IexQ== X-Gm-Message-State: APjAAAVQ+OND8B/EfrcY00OZvoPMpsvo7JrVsfQl9bd26qRQt/KsUOE/ 3udJkNx/AXvVywJHFNbqKYYT7RjHzy/V7A/1+Io= X-Received: by 2002:aed:33a4:: with SMTP id v33mr29008003qtd.18.1562143262038; Wed, 03 Jul 2019 01:41:02 -0700 (PDT) MIME-Version: 1.0 References: <20190703001842.12238-1-alistair.francis@wdc.com> <20190703001842.12238-3-alistair.francis@wdc.com> In-Reply-To: <20190703001842.12238-3-alistair.francis@wdc.com> From: Arnd Bergmann Date: Wed, 3 Jul 2019 10:40:45 +0200 Message-ID: Subject: Re: [PATCH 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32 To: Alistair Francis Cc: linux-riscv-bounces@lists.infradead.org, Linux Kernel Mailing List , Alistair Francis Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 3, 2019 at 2:21 AM Alistair Francis wrote: > > The glibc implementation of siginfo_t results in an allignment of 8 bytes > for the union _sifields on RV32. The kernel has an allignment of 4 bytes > for the _sifields union. This results in information being lost when > glibc parses the siginfo_t struct. I think the problem is that you incorrectly defined clock_t to 64-bit, while it is 32 bit in the kernel. You should fix the clock_t definition instead, it would otherwise cause additional problems. Arnd