From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1500AC433E0 for ; Fri, 8 Jan 2021 14:32:02 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C31C4235FC for ; Fri, 8 Jan 2021 14:32:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C31C4235FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FLQRay8AnsvwPTYCPSw11A2Hfj2rp+1QjhhKBcpBPK4=; b=Cbq7VR9Uvshcndzq24Ox7Rznc 9y+8pOOE6/H/AF9nBmjoVP9IjMrM3gJ3jiuhmkJtu/AY0k23OwU7GvfkKVwIi1YU1Ylp3JszLHfsy 5oU6wz7XnFQzq9N/uXlCxPlkiuoWR4cvBlWDmnd4voMxqWdVISt5G64M7PhUaidUSAd0puWFtteNF drH4+vSfB8m/qFugJULZ/mTRsbs4toD49iZOpERkPNS/0TKPbCbDmeFTko63TCR9WOl+CwqVcUDDY XsM9JaLuastguXGj+pKjZTi6pk+wfFMZyPvfSmdGinh45ZxwIGnV2Iq+LaVBsqNWmZ+3uGchZLRH/ 1jrVOiadw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxsmU-0000eq-CN; Fri, 08 Jan 2021 14:30:22 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxsm4-0000e3-6l for linux-arm-kernel@lists.infradead.org; Fri, 08 Jan 2021 14:29:57 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3763C235FC; Fri, 8 Jan 2021 14:29:55 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kxsm1-0066AE-95; Fri, 08 Jan 2021 14:29:53 +0000 MIME-Version: 1.0 Date: Fri, 08 Jan 2021 14:29:53 +0000 From: Marc Zyngier To: kernel test robot Subject: Re: [arm-platforms:kvm-arm64/pmu-undef-fixes 29/30] arch/arm64/kvm/sys_regs.c:1544:13: warning: initializer overrides prior initialization of this subobject In-Reply-To: <202101082253.LtrQbZvn-lkp@intel.com> References: <202101082253.LtrQbZvn-lkp@intel.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <074e77e62c94400da4bac17e1aa137e9@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: lkp@intel.com, kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_092956_369050_74DF97BF X-CRM114-Status: GOOD ( 17.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2021-01-08 14:18, kernel test robot wrote: > tree: > https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git > kvm-arm64/pmu-undef-fixes > head: 248735e2001115f36e70105cb9dadff95a9fdb42 > commit: 9bde3c476c881793f310f38a5f705b0394283f8b [29/30] KVM: arm64: > Hide PMU registers from userspace when not available > config: arm64-randconfig-r012-20210108 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > 5c951623bc8965fa1e89660f2f5f4a2944e4981a) > reproduce (this is a W=1 build): > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross > -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # > https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=9bde3c476c881793f310f38a5f705b0394283f8b > git remote add arm-platforms > https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git > git fetch --no-tags arm-platforms kvm-arm64/pmu-undef-fixes > git checkout 9bde3c476c881793f310f38a5f705b0394283f8b > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross > ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > >>> arch/arm64/kvm/sys_regs.c:1544:13: warning: initializer overrides >>> prior initialization of this subobject [-Winitializer-overrides] > .reset = reset_pmcr, .reg = PMCR_EL0 }, > ^~~~~~~~~~ > arch/arm64/kvm/sys_regs.c:1543:4: note: previous initialization is > here > { PMU_SYS_REG(SYS_PMCR_EL0), .access = access_pmcr, > ^~~~~~~~~~~~~~~~~~~~~~~~~ > arch/arm64/kvm/sys_regs.c:949:24: note: expanded from macro > 'PMU_SYS_REG' > SYS_DESC(r), .reset = reset_unknown, .visibility = > pmu_visibility > ^~~~~~~~~~~~~ [...] No, this is correct and done on purpose. There is a default initialisation, and some structures do override the default. M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel