Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3786054imu; Tue, 18 Dec 2018 04:15:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/X40ptRsfWrdE0arDSIcMpnR+KZWIuyLU7M/nn7hH8KXPdE/jn+acxGHgB6AnSh0tKEli0Y X-Received: by 2002:a17:902:12f:: with SMTP id 44mr16418190plb.74.1545135319468; Tue, 18 Dec 2018 04:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545135319; cv=none; d=google.com; s=arc-20160816; b=KdpmFW9wm6ChGiBhixy0AopPhrO41MLnnLlznpUYiadQC0xXLQ5rkPjnNfJz2hqVwm +hdNJHOG18RSTIrLq84mjeAjBenW4fErcClKTrydV6wakmIbCGrPpHfHTEM+jzXMnJnf lTucW5jSKy19dw9YT4jZjbP9RMGGcE+Q7q3bt6bZMZyfNeeachbFobPnKpdbmHKgpoqY qlkJVmzft4MUVN93N0HVhJwEC0jxlECZyUjtBISPteZOXX3isCGIr2hW9UEBc+8JcQ2Q F//S19RrNBWSPr3d9IoCj+7/97q2VC98E5tAzJb423JqRFsFBQquufvZvRLAlbZZ4ToQ XSrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=f7D289655V/mvjJ03gtZKCniBrS1VwY30Yr4tUGVJuc=; b=SbsWs2XvQ4/VmoJ9uQwDXoIWNNKddlyIVKYcDlt6txiIKT68AN78eqHFWVHcFmB+KX J4dD6f184ElQ3m/dUqGDjpW7eKVfYO6J2LZSx/Zh2GFR/feFO7KkML/6bbIo5IM4wpxk NBzQja448wnWhnSVjkZiDEmboWvX/sCtak/lOwL0LrDn1ZJYI2WbO0ipr1VB+Yke/nzL Zb/0iueo+ybblqz4eKpbr9FPmrTdXpZaQrUesw4znJSST9AuBkYJMTKVu8sa7+TErXn+ WvOfs4hoOnTqj1lw0K47gD7c96vdo5fP+POGGEoIdF3OuAcLsEa5Z4r7zGDDjYWCW313 SPVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si12641290pga.198.2018.12.18.04.15.03; Tue, 18 Dec 2018 04:15:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726546AbeLRMOM (ORCPT + 99 others); Tue, 18 Dec 2018 07:14:12 -0500 Received: from foss.arm.com ([217.140.101.70]:44492 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbeLRMOL (ORCPT ); Tue, 18 Dec 2018 07:14:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E1C980D; Tue, 18 Dec 2018 04:14:11 -0800 (PST) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 943A33F575; Tue, 18 Dec 2018 04:14:09 -0800 (PST) Date: Tue, 18 Dec 2018 12:14:03 +0000 From: Dave Martin To: kbuild test robot Cc: Szabolcs Nagy , Will Deacon , linux-kernel@vger.kernel.org, kbuild-all@01.org, Alan Hayward , linux-arm-kernel@lists.infradead.org, Catalin Marinas Subject: Re: [PATCH 3/3] arm64/sve: Disentangle from Message-ID: <20181218121307.GA22067@e103592.cambridge.arm.com> References: <1544556407-19897-4-git-send-email-Dave.Martin@arm.com> <201812151729.IIgleZIH%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201812151729.IIgleZIH%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 15, 2018 at 05:20:29PM +0800, kbuild test robot wrote: > Hi Dave, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on arm64/for-next/core] > [also build test WARNING on v4.20-rc6 next-20181214] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Dave-Martin/arm64-sve-UAPI-Disentangle-ptrace-h-from-sigcontext-h/20181214-225154 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core > config: arm64-allmodconfig (attached as .config) > compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > GCC_VERSION=7.2.0 make.cross ARCH=arm64 > > All warnings (new ones prefixed by >>): > > >> ./usr/include/asm/sve_context.h:30: found __[us]{8,16,32,64} type without #include Since the new header is not meant to be included directly (and has a guard to that effect), we don't strictly need to do anything here. The way to include in userspace is via or , both of which include first. Ironically, the type casts in sve_context.h that necessitate this #include are probably not needed either. I misunderstood the C standard as indicating that if vq is a 16-bit type (which is the case in some places) then the result of multiplying it by something may be truncated to 16 bits. This is not the case: the operands of * are promoted at least to int first, and int is large enough to hold the result of these multiplication for all valid vq values. Removing the cast causes some otherwise __u32 expressions to become ints (albeit with the same numeric value). This affects semantics and code generation, so it's probably safest not to touch these casts now given that they have already been exposed as UAPI. We should probably add the #include for cleanliness, but nothing should break if we don't. Cheers ---Dave