From owner-freebsd-toolchain@freebsd.org Sun Apr 28 09:02:05 2019 Return-Path: Delivered-To: freebsd-toolchain@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 70F4E1577A75 for ; Sun, 28 Apr 2019 09:02:05 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mail-it1-f179.google.com (mail-it1-f179.google.com [209.85.166.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A66A08AD99; Sun, 28 Apr 2019 09:02:04 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by mail-it1-f179.google.com with SMTP id z4so12197235itc.3; Sun, 28 Apr 2019 02:02:04 -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=7Hups1/4l2FrID5V07gkltojV4OutvgV3OPKV307hc8=; b=iz+mYJYIkueAg8AYmXO0d28JyZX84SzERCuIHJDqp/3TJaohNE/iF6Y/UmuRJPhU3O XcoeG6UaWFp5PzjF6t3dqMTwnobM2Aq8acx9CkIF0gtrdhzrsNn2T8hAmAeB4HTpc1GO 3cDaiISg8IWRF5fHZTG3hEUUdfuzdMNZzV3WMCNIF2T8tU/dOSuOGMyP/hbBtVqJtxo7 pwp+5ur+DWhVuuOsBqVgEwwgi4JxCtMg4edq7KB1RrJfW9qW73ScLQjv6niolgBjzKI6 VekE3fat8A8G0pgy1ORGNLQXHDjxIHACAyOdcLCkMriKRz/ktKcYcGCB9mCKvLvUs8fA E0yw== X-Gm-Message-State: APjAAAUu7lFYl4+a0EPl8Hn4LlE5SWciWwSE+Gel5mLLcXYCxioauNHx ygZDc9lnrISSCfHIOZ1szhyDQRnOrhnZ7XAKMckqLQ== X-Google-Smtp-Source: APXvYqwQHjf/ULkl1ibPWUbKFilD0FE05usWstLrXMw2oSicp8ThVzjViXjw/Un6HGOSmPOuHEUB6DUIP5Cr7Qf1Hpo= X-Received: by 2002:a24:6495:: with SMTP id t143mr13561341itc.156.1556442117969; Sun, 28 Apr 2019 02:01:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dmitry Chagin Date: Sun, 28 Apr 2019 12:01:46 +0300 Message-ID: Subject: Re: stable/11 discards const qualifiers To: Dimitry Andric Cc: Dmitry Chagin , FreeBSD Toolchain , Ed Maste X-Rspamd-Queue-Id: A66A08AD99 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of chagindmitry@gmail.com designates 209.85.166.179 as permitted sender) smtp.mailfrom=chagindmitry@gmail.com X-Spamd-Result: default: False [-5.30 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TAGGED_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.79)[ip: (-7.73), ipnet: 209.85.128.0/17(-3.87), asn: 15169(-2.27), country: US(-0.06)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.50)[-0.502,0]; RCVD_IN_DNSWL_NONE(0.00)[179.166.85.209.list.dnswl.org : 127.0.5.0]; FORGED_SENDER(0.30)[dchagin@freebsd.org,chagindmitry@gmail.com]; MIME_TRACE(0.00)[0:+,1:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[dchagin@freebsd.org,chagindmitry@gmail.com]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Apr 2019 09:02:05 -0000 =D1=81=D0=B1, 27 =D0=B0=D0=BF=D1=80. 2019 =D0=B3. =D0=B2 14:01, Dimitry And= ric : > On 25 Apr 2019, at 16:01, Dmitry Chagin wrote: > > > > I'm trying to merge r331056, r331057, r331060, r331356,(by emaste@) to > the > > stable/11 and get the following error: > > > > =3D=3D=3D> linux (all) > > cc -O2 -pipe -DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32 -fno-strict-aliasing > > -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS > > -include > > > /usr/home/dchagin/tmp/obj/usr/home/dchagin/freebsd/sys/GENERIC/opt_global= .h > > -I. -I/usr/home/dchagin/freebsd/sys -fno-common -g > -fno-omit-frame-pointer > > -mno-omit-leaf-frame-pointer > > -I/usr/home/dchagin/tmp/obj/usr/home/dchagin/freebsd/sys/GENERIC -MD > > -MF.depend.linux32_sysvec.o -MTlinux32_sysvec.o -mcmodel=3Dkernel > > -mno-red-zone -mno-mmx -mno-sse -msoft-float > > -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protecto= r > > -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > > -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-= dirs > > -fdiagnostics-show-option -Wno-unknown-pragmas > > -Wno-error-tautological-compare -Wno-error-empty-body > > -Wno-error-parentheses-equality -Wno-error-unused-function > > -Wno-error-pointer-sign -Wno-error-shift-negative-value > > -Wno-error-address-of-packed-member -mno-aes -mno-avx -std=3Diso9899:= 1999 > > -c /usr/home/dchagin/freebsd/sys/amd64/linux32/linux32_sysvec.c -o > > linux32_sysvec.o > > /usr/home/dchagin/freebsd/sys/amd64/linux32/linux32_sysvec.c:322:29: > > warning: taking address of packed member 'uc_sigmask' of class or > structure > > 'l_ucontext' may result in an unaligned pointer value > > [-Waddress-of-packed-member] > > bsd_to_linux_sigset(mask, &frame.sf_sc.uc_sigmask); > > ^~~~~~~~~~~~~~~~~~~~~~ > > /usr/home/dchagin/freebsd/sys/amd64/linux32/linux32_sysvec.c:639:23: > > warning: taking address of packed member 'uc_sigmask' of class or > structure > > 'l_ucontext' may result in an unaligned pointer value > > [-Waddress-of-packed-member] > > linux_to_bsd_sigset(&uc.uc_sigmask, &bmask); > > ^~~~~~~~~~~~~ > > /usr/home/dchagin/freebsd/sys/amd64/linux32/linux32_sysvec.c:912:15: > error: > > initializing 'int *' with an expression of type 'const int []' discards > > qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] > > .sv_errtbl =3D linux_errtbl, > > ^~~~~~~~~~~~ > > 2 warnings and 1 error generated. > > *** Error code 1 > > > > Is I'm missing something? > > Yes, please also merge r329787: > > ------------------------------------------------------------------------ > r329787 | emaste | 2018-02-22 02:59:59 +0100 (Thu, 22 Feb 2018) | 6 lines > > Use 'const int *' for sysentvec errno translation table > > This allows an sv_errtbl to be read-only .rodata. > > Sponsored by: Turing Robotic Industries Inc. > > Indeed, thank you, Dimitry!