Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp605263pxb; Wed, 27 Jan 2021 16:31:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6YKKlEmfjaOfcZkvtkYlxqwJx02kW+rN0DggMKb+aQHGAxEAwaH1/xcXFLyPepBBzT/2O X-Received: by 2002:a17:907:971b:: with SMTP id jg27mr8614495ejc.14.1611793876566; Wed, 27 Jan 2021 16:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611793876; cv=none; d=google.com; s=arc-20160816; b=pX9ZQraBuyhxtp9g4DtQHb+ChpY/ZZCSco/OKXidNdM4peNqPgWoD/lJFQIiOOLTwR +Anwp6/MW3FA1P+BYK8XFnYTIwvb7CnF3e1MMDcSR+EctR5mrjUF6VuE5fC2heVJRk5N 2H3U7orfeAKmJ3175j90hF9oPeeE9obfV39lx9jkipSk4Hofrj8b65HHLXGJn5Sy6l3/ cOHM8EAdacLUlAbXszcDiFOJ2UZJIPGRKsHntgfGKmYjHiLUR1ifAZDhGSe48Zfu2Kxd 1QjovclLxRkANnuAKTr+SFt7Np+skk6YCxVjTO+sfPQXF2Z35xkImUgCCe9TYlLTCs25 XkBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pPutukcoZal4tB3Iym2zu8bDAPYerfU+SFym/QH4YRk=; b=S6e21ip3u4QxoAna+T0BQM082vH/lPPklWUby0lc3VMpi3Lvj7siX4I1Q+O+44vmjD UujpCZrNqNB5vsdjxQ35f+izLIYDKrfCVSw4l0mfacifTKjaTYV3ZJUcrej7XIPSEyL2 Cg+Dxc51j7HFCNbCT8Q9hplM8Ce44r6I1EZ6OvMimkiVUEj2zPGSxVmYOMKbH6Ou5N08 KVZ1dBIfyTQvh+wrfllZ/fi2yRr8Y7c7l0cPoyC+6zSi20NebIV19nyMgJB8HHKLbw/9 GGGWrDlxMWtDmi7t3LeR5wqK3PGnJtIMegiyj9gzROgML5tfCjEeSO6st4cywcXD7Toj SAyw== 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 s10si1756003edd.231.2021.01.27.16.30.53; Wed, 27 Jan 2021 16:31:16 -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 S233943AbhA0VMq (ORCPT + 99 others); Wed, 27 Jan 2021 16:12:46 -0500 Received: from elvis.franken.de ([193.175.24.41]:60509 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233905AbhA0VLw (ORCPT ); Wed, 27 Jan 2021 16:11:52 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1l4s5l-0003cQ-05; Wed, 27 Jan 2021 22:11:09 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 9C4DFC0AAF; Wed, 27 Jan 2021 22:07:57 +0100 (CET) Date: Wed, 27 Jan 2021 22:07:57 +0100 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Alexander Potapenko Subject: Re: [PATCH] MIPS: Fix inline asm input/output type mismatch in checksum.h used with Clang Message-ID: <20210127210757.GF21002@alpha.franken.de> References: <1611722507-12017-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611722507-12017-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 12:41:47PM +0800, Tiezhu Yang wrote: > Fix the following build error when make M=samples/bpf used with Clang: > > CLANG-bpf samples/bpf/sockex2_kern.o > In file included from samples/bpf/sockex2_kern.c:7: > In file included from ./include/uapi/linux/if_tunnel.h:7: > In file included from ./include/linux/ip.h:16: > In file included from ./include/linux/skbuff.h:28: > In file included from ./include/net/checksum.h:22: > ./arch/mips/include/asm/checksum.h:161:9: error: unsupported inline asm: input with type 'unsigned long' matching output with type '__wsum' (aka 'unsigned int') > : "0" ((__force unsigned long)daddr), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 error generated. > > This is a known issue on MIPS [1], the changed code can be compiled > successfully by both GCC and Clang. > > [1] https://lore.kernel.org/linux-mips/CAG_fn=W0JHf8QyUX==+rQMp8PoULHrsQCa9Htffws31ga8k-iw@mail.gmail.com/ > > Signed-off-by: Tiezhu Yang > --- > arch/mips/include/asm/checksum.h | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]