Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3271699pxa; Sat, 8 Aug 2020 16:09:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzenw+nnsZaT9sDeoWcE+TJyoNsk2MdncQbtCC3WYY/eM3inezR9jHTKBPC7lih+pAyGXvP X-Received: by 2002:a50:f687:: with SMTP id d7mr12688759edn.306.1596928190667; Sat, 08 Aug 2020 16:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596928190; cv=none; d=google.com; s=arc-20160816; b=Er1Poad/2RScqF5ewXG7pyWGtpkRussDo3hXydLbHFs83fxHtVAMEo6nXcfMxPZFep xvISwU+zFu8Vu06kpBX/RjGTIlexL65hxwpfXF4KA37qkFZH2L1hZHXo22Z+PNAvg0+2 bYkdj73C4sFDNEwWqGwQYKX6iisg/BhP1b1zEaPkS4dZxrfY/N/TDzkBnHfNmg7ieX5h EW1teXJKQ5ggAI0b6ULt4bM7ZmbWECxJPDdtd0MyJ59s7KkeSTnVwxcEYpvTNCWhCOW/ 30QOumW53WAXIEmFDxtcImQ8t2+l29dHrVdp+zLvZ4L/0aJXC0TNPpR0H5U2QIPzps0f 4XtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zAaByrVsjAb8vkDODtWIHOdYlEgt3BUanXR86wDnYY8=; b=Rimrve/Mjl+d2qzQzAoTR59br8Fi6dBOtpDL/Soz+I844FsxFV09XmdN1YxPyn49y/ a9yJU0CCJbxFQFTTdUa8fWjOpHiYmmcCoVtCMkjReWu7OCkpQTjEfGoqgOx/bvU5KROu FEqk5VwjJW7DoOgUlR/jVcVDtBBgT4aKJEJj9vh/oDtHf+UNff7vcfkjy9t01oMfTlhS Oe9XWN58asXsOW2nrcB6Yb8pRoMogjZc3P2/nQSBH3IvTxXnCDxdnCGGTb+BwHHU1RBD nfkyMb+daiZSnnJIjUNcFMsjhemmfpK+PyqLvbReI2/xhherKrmvtlFPP1vPWa1Y7HBR 1GHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KVNW+y9k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ni5si8085221ejb.696.2020.08.08.16.09.28; Sat, 08 Aug 2020 16:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KVNW+y9k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726077AbgHHXIq (ORCPT + 99 others); Sat, 8 Aug 2020 19:08:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgHHXIq (ORCPT ); Sat, 8 Aug 2020 19:08:46 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05277C061756 for ; Sat, 8 Aug 2020 16:08:46 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id c16so5747472ejx.12 for ; Sat, 08 Aug 2020 16:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zAaByrVsjAb8vkDODtWIHOdYlEgt3BUanXR86wDnYY8=; b=KVNW+y9kpxQQr+a9b39ZyonobIptGqRr7IUHfHN20hS/wnnFnufklnyEB/93fviJ+7 Tv5QZXRlXmNXIvNaI7LpomsQPAJbQntM0YY19Nd1q34IKVzlBCYesu7TrzlJ9+ir91/l kpCHA5zOQnntbUAgkjHlrTTF0DlL15tYGz4RXJ5Iqzx8ube2iTYy7Dtru7CQcr+/X0Vr 5n7p43OYCIVdPUfLLPUmwCpH4gsCZrz5AM1D+IJbYYjentOrU0n2EOJ0XLHJP8+tWCHt bncy1S4TNdQ75G319IAquwzSSrnmTwYfe843M/1EALN9WcU9HF22sEqyech7ew9amrXn 2BEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zAaByrVsjAb8vkDODtWIHOdYlEgt3BUanXR86wDnYY8=; b=EIPkvFQoB8yc1flp2KAJH3eMBKHwv+HDmX5NfqK4W29SU/DATCfYp3/WK4bpB6VNc+ yk5PVRBiumUy20KedLKGvtXPTNtiyoRNlxIeAyTZi55Djc/KnDXLAQMZy3amn/CxmaSX aDK9W0O/pEd2YhpltXEDhnREApcr5h3P89sYtGZslD+DyUeLBYkNXzHZE5JesWCqCp4m vOhYtx4YI6kF3g9LpL+1Ipmwb1SiR5c4mqq74cxTsS5WTH0xYwmiSbZTPIeEbJ6RoPRh kQRJMLG8lwSLhN9tWanrkLSgYaXu5kuQUiM/FiElsfqpOPaZWogI1+tydSSII/yN+pjN QZqA== X-Gm-Message-State: AOAM533hZsfGUAIfag9RNmnGrc38wMNwDv2g9mw7KHoz9ofrHJva+UVb DpZaENXM3Prii8IuCnlWs34= X-Received: by 2002:a17:906:fcb3:: with SMTP id qw19mr16283026ejb.271.1596928124697; Sat, 08 Aug 2020 16:08:44 -0700 (PDT) Received: from ltop.local ([2a02:a03f:a7fb:e200:6d1d:82a1:4f64:b708]) by smtp.gmail.com with ESMTPSA id cm22sm8864099edb.44.2020.08.08.16.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Aug 2020 16:08:44 -0700 (PDT) Date: Sun, 9 Aug 2020 01:08:42 +0200 From: Luc Van Oostenryck To: Stafford Horne Cc: LKML , Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: Re: [PATCH v2 5/6] openrisc: signal: Fix sparse address space warnings Message-ID: <20200808230842.4bdwrvuz3lbgkcom@ltop.local> References: <20200805210725.310301-1-shorne@gmail.com> <20200805210725.310301-6-shorne@gmail.com> <20200806190449.xqflhmbiiv5btusf@ltop.local> <20200808224822.GQ80756@lianli.shorne-pla.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200808224822.GQ80756@lianli.shorne-pla.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 09, 2020 at 07:48:22AM +0900, Stafford Horne wrote: > On Thu, Aug 06, 2020 at 09:04:49PM +0200, Luc Van Oostenryck wrote: > > On Thu, Aug 06, 2020 at 06:07:24AM +0900, Stafford Horne wrote: > > > --- > > > arch/openrisc/kernel/signal.c | 14 +++++++------- > > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > > > diff --git a/arch/openrisc/kernel/signal.c b/arch/openrisc/kernel/signal.c > > > index 4f0754874d78..7ce0728412f6 100644 > > > --- a/arch/openrisc/kernel/signal.c > > > +++ b/arch/openrisc/kernel/signal.c > > > @@ -76,7 +76,7 @@ asmlinkage long _sys_rt_sigreturn(struct pt_regs *regs) > > > * then frame should be dword aligned here. If it's > > > * not, then the user is trying to mess with us. > > > */ > > > - if (((long)frame) & 3) > > > + if (((__force unsigned long)frame) & 3) > > > goto badframe; > > > > Same as patch 6, the __force is not needed. > > Thanks, I thought this was complaining before, I tested now and there is no > problem so I must have been mixed up with something else. Sparse should have complained with with the cast to long but purposely doesn't with unsigned long (or uintptr_t). So, no mix up, I think. Cheers, -- Luc