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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD896C433EF for ; Sun, 14 Nov 2021 10:12:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8B50260C40 for ; Sun, 14 Nov 2021 10:12:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8B50260C40 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc: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=6gCDckxWDrek7yuEA/EbX4WdTg29YISVw5M5aK1o44g=; b=u2Y//TYesZMKgAFJ/ssOlk+Wed KRU1ud6p7pjCbXADD71o4hkhHdx+vQEM2sbEsPMx0etS48Aaq3tJo+TXaTqYrWDUeO24UFoSR9Uqj A+7NC936aXc4y1HAi+KeMTvwxvex5vQtRmTfR7JK2Lliae9Q9CXBJuBhAzbAydWsEBbTKah4vsC5D 4ZJhlBqA41thuaGnh4kAZ4qoNHCrvW3kpYmjCioRzgZc2YJW3HUMikH8JmBl7WaIxjbDDM5v9Giw0 4Iz10CkvaQW7n2c8a7SQvbJ6DsDQniPl8d4pA+yESus9eWfS4rBgQzNvPVZs+knO9l4LTmbdGUrEI F32QOFwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmCT4-00DVW1-B9; Sun, 14 Nov 2021 10:10:34 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmCT0-00DVVV-CR for linux-arm-kernel@lists.infradead.org; Sun, 14 Nov 2021 10:10:31 +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 DD16160F6B; Sun, 14 Nov 2021 10:10:29 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mmCSx-005IA5-Ll; Sun, 14 Nov 2021 10:10:27 +0000 MIME-Version: 1.0 Date: Sun, 14 Nov 2021 10:10:27 +0000 From: Marc Zyngier To: kernel test robot Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org Subject: Re: [arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject In-Reply-To: <202111141650.o5b2LSZU-lkp@intel.com> References: <202111141650.o5b2LSZU-lkp@intel.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <0b7463e699956abb0f8b0da7a9254500@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: lkp@intel.com, llvm@lists.linux.dev, kbuild-all@lists.01.org, 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-20211114_021030_490981_6834E326 X-CRM114-Status: GOOD ( 16.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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-11-14 08:25, kernel test robot wrote: > tree: > https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git > hack/m1-pmu > head: a905c66ae0b391425e9ad7f261ad7b4c33af2c07 > commit: a905c66ae0b391425e9ad7f261ad7b4c33af2c07 [8/8] drivers/perf: > Add Apple icestorm/firestorm CPU PMU driver > config: arm64-randconfig-r036-20211114 (attached as .config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project > c3dddeeafb529e769cde87bd29ef6271ac6bfa5c) > 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=a905c66ae0b391425e9ad7f261ad7b4c33af2c07 > git remote add arm-platforms > https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git > git fetch --no-tags arm-platforms hack/m1-pmu > git checkout a905c66ae0b391425e9ad7f261ad7b4c33af2c07 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 > ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > >>> drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer >>> overrides prior initialization of this subobject >>> [-Winitializer-overrides] > [M1_PMU_PERFCTR_UNKNOWN_01] = BIT(7), > ^~~~~~ > include/vdso/bits.h:7:19: note: expanded from macro 'BIT' > #define BIT(nr) (UL(1) << (nr)) > ^~~~~~~~~~~~~~~ > drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization > is here > [0 ... M1_PMU_PERFCTR_LAST] = ANY_BUT_0_1, > ^~~~~~~~~~~ Oh please, not that thing again. I've commented on this many times, and this warning is just bogus. Initialisation override is a necessity, and working around this warning leads to something that is far less maintainable, and thus more *dangerous* than this. I really wish this warning was simply turned off, because it only leads to the robot emails to be ignored do to the number of false positives. 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