From owner-svn-src-all@freebsd.org Sat Feb 17 00:42:38 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00BEBF221C6; Sat, 17 Feb 2018 00:42:38 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7CD77B9DF; Sat, 17 Feb 2018 00:42:37 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id A00261819B; Sat, 17 Feb 2018 00:42:37 +0000 (UTC) From: Jan Beich To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r329371 - head/sys/compat/linuxkpi/common/include/asm References: <201802161520.w1GFKLiA049085@repo.freebsd.org> Date: Sat, 17 Feb 2018 01:42:15 +0100 In-Reply-To: <201802161520.w1GFKLiA049085@repo.freebsd.org> (Hans Petter Selasky's message of "Fri, 16 Feb 2018 15:20:21 +0000 (UTC)") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2018 00:42:38 -0000 Hans Petter Selasky writes: > Author: hselasky > Date: Fri Feb 16 15:20:21 2018 > New Revision: 329371 > URL: https://svnweb.freebsd.org/changeset/base/329371 > > Log: > Allow the cmpxchg() macro in the LinuxKPI to work on pointers without > generating compiler warnings, -Wint-conversion . [...] To generate errors instead ? $ make clean all -C /usr/ports/graphics/drm-next-kmod [...] drm_lock.c:72:10: error: flexible array member 'u8' in a union is not allowed prev = cmpxchg(lock, old, new); ^ /usr/src/sys/compat/linuxkpi/common/include/asm/atomic.h:165:6: note: expanded from macro 'cmpxchg' u8 u8[]; \ ^ drm_lock.c:72:10: error: flexible array member 'u16' in a union is not allowed /usr/src/sys/compat/linuxkpi/common/include/asm/atomic.h:166:7: note: expanded from macro 'cmpxchg' u16 u16[]; \ ^ drm_lock.c:72:10: error: flexible array member 'u32' in a union is not allowed /usr/src/sys/compat/linuxkpi/common/include/asm/atomic.h:167:7: note: expanded from macro 'cmpxchg' u32 u32[]; \ ^ drm_lock.c:72:10: error: flexible array member 'u64' in a union is not allowed /usr/src/sys/compat/linuxkpi/common/include/asm/atomic.h:168:7: note: expanded from macro 'cmpxchg' u64 u64[]; \ ^