Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5182336pxu; Thu, 10 Dec 2020 15:23:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSOuDBTWIAK4kI/xZMvZH6zynL1e7OEv1jBlW/vWfWgSm7mqH0k/k0kDkPCsJ5Lmxs6uky X-Received: by 2002:a05:6402:a5b:: with SMTP id bt27mr9373522edb.222.1607642583423; Thu, 10 Dec 2020 15:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607642583; cv=none; d=google.com; s=arc-20160816; b=L63my5JSiTD/W4ee/MAblQRfZRjlseMlH/m5w7NGjXYAkKM3Swz1h+Wrfwy1e/KPGC Z9Dtm+Ag0cushCG/WQPmPji2O/SYKUtbMHUYBa+xo3e/BKJPOvz6MhFFE/Rn6BlZQJUH XpOHU99lGhcil3Cbk6+4isT8sgTr+qDWytlAnGQc7+f8buhr10zk7UUcJXDa5yGEsYcI Bg8+cXyenBkzyZp81zPbmtz/ZVJXsidOgmtYrTVl/0NMOg7+inAKf894DhDA4Z7+RAyv MQKmwp3Uk6PWUvRIynmGGhUg1C5Hy3V6tj22ckrcs7U7ji8to9m2ZZglm9FJefxe8E3p fNNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=Y4RDtxGL8Oxo4EZSGZKjjGgyDRdCAQNXqEe+CO2HNnI=; b=tHXATzye5SSDd6emUhY7MRsLj/WbJZYP5Jg/GP/JAC0hNdPvCSq7b9Ky6bngxLH+HU vsSzBpry6/N1T4BiLFWk2+IkynC8MZOS1M7Od8ekOgm8pDzSrZLJ54otnpU362x1FG/0 pI/4gQ/AVHP6XiGHZqxQz95bddupOhuANX3UqooflW5/rmYH1NXZf4MHi5hBk6pDjA2q 1N7J3fCqM5MMcfM7I5nuCLTP8ofr1Ye2ZCwlbteaygQHLZGwoJ9XSScEFoI3e6f1Anas 3/h83SXrVCV+vQOX6eP734LB0leld8Ba51WGtLYTipKthQ5VAP3cmqIZsqtBQQaEyLHC onew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si3491692ejf.344.2020.12.10.15.22.24; Thu, 10 Dec 2020 15:23:03 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389467AbgLJLdX (ORCPT + 99 others); Thu, 10 Dec 2020 06:33:23 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:44415 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389478AbgLJLam (ORCPT ); Thu, 10 Dec 2020 06:30:42 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 4CsBXm1Ymdz9sXW; Thu, 10 Dec 2020 22:29:59 +1100 (AEDT) From: Michael Ellerman To: Benjamin Herrenschmidt , Michael Ellerman , mathieu.desnoyers@efficios.com, Christophe Leroy , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <25e6fca46fda3e2a4298448edbf654f64756eee7.1603358942.git.christophe.leroy@csgroup.eu> References: <25e6fca46fda3e2a4298448edbf654f64756eee7.1603358942.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH v3 1/3] powerpc/uaccess: Don't use "m<>" constraint with GCC 4.9 Message-Id: <160756607298.1313423.51020418885826665.b4-ty@ellerman.id.au> Date: Thu, 10 Dec 2020 22:29:59 +1100 (AEDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Oct 2020 09:29:19 +0000 (UTC), Christophe Leroy wrote: > GCC 4.9 sometimes fails to build with "m<>" constraint in > inline assembly. > > CC lib/iov_iter.o > In file included from ./arch/powerpc/include/asm/cmpxchg.h:6:0, > from ./arch/powerpc/include/asm/atomic.h:11, > from ./include/linux/atomic.h:7, > from ./include/linux/crypto.h:15, > from ./include/crypto/hash.h:11, > from lib/iov_iter.c:2: > lib/iov_iter.c: In function 'iovec_from_user.part.30': > ./arch/powerpc/include/asm/uaccess.h:287:2: error: 'asm' operand has impossible constraints > __asm__ __volatile__( \ > ^ > ./include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' > # define unlikely(x) __builtin_expect(!!(x), 0) > ^ > ./arch/powerpc/include/asm/uaccess.h:583:34: note: in expansion of macro 'unsafe_op_wrap' > #define unsafe_get_user(x, p, e) unsafe_op_wrap(__get_user_allowed(x, p), e) > ^ > ./arch/powerpc/include/asm/uaccess.h:329:10: note: in expansion of macro '__get_user_asm' > case 4: __get_user_asm(x, (u32 __user *)ptr, retval, "lwz"); break; \ > ^ > ./arch/powerpc/include/asm/uaccess.h:363:3: note: in expansion of macro '__get_user_size_allowed' > __get_user_size_allowed(__gu_val, __gu_addr, __gu_size, __gu_err); \ > ^ > ./arch/powerpc/include/asm/uaccess.h:100:2: note: in expansion of macro '__get_user_nocheck' > __get_user_nocheck((x), (ptr), sizeof(*(ptr)), false) > ^ > ./arch/powerpc/include/asm/uaccess.h:583:49: note: in expansion of macro '__get_user_allowed' > #define unsafe_get_user(x, p, e) unsafe_op_wrap(__get_user_allowed(x, p), e) > ^ > lib/iov_iter.c:1663:3: note: in expansion of macro 'unsafe_get_user' > unsafe_get_user(len, &uiov[i].iov_len, uaccess_end); > ^ > make[1]: *** [scripts/Makefile.build:283: lib/iov_iter.o] Error 1 > > [...] Patches 2-3 applied to powerpc/next. [2/3] powerpc: Fix incorrect stw{, ux, u, x} instructions in __set_pte_at https://git.kernel.org/powerpc/c/d85be8a49e733dcd23674aa6202870d54bf5600d [3/3] powerpc: Fix update form addressing in inline assembly https://git.kernel.org/powerpc/c/ff57698a9610fcf7d9c4469bf68c881eff22e2f8 cheers