From patchwork Fri Mar 12 09:55:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Valdis_Kl=C4=93tnieks?= X-Patchwork-Id: 12134167 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=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 3B847C433DB for ; Fri, 12 Mar 2021 09:58:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 C48BF6508F for ; Fri, 12 Mar 2021 09:58:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C48BF6508F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:Date:Mime-Version:Subject:cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=EIc/9IQnaJ8bPKdPqm1fzofB+Z3+FckpfmGe7Ep42Mg=; b=I9JeYXL2pEsOwkCqsHdD+OwcsP SBaK3dIt7D2AEuVi/8rtx3L3Zy2jSVdktKBWVA0IDt4m3S/vSMJb11w6rOvmULnIMGu+z8sT+zIuB HhBb/g8ylJxvmrZMfSmHpqNlFECxXP9PD7HPP428P4U/zr6cSflmMlg1q3vOAhr+y2g4Xpn9QxGGI acroyLBxtY5Dyo+ZvoMIBrTkF+pdJOQTrbYHJfnoafM2SM9FrB8RvIK/9ljVAcesu8CCLmLZWE4I7 F2qXfI+8BVdUbLksCl2o+k+2tCg7avQsnKFZopo8ANR9A2KTwDL5D6hY/DOFwhvUn8xYi2qsoEX3x 5mCnCpMQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKeWe-00B5fT-G6; Fri, 12 Mar 2021 09:56:11 +0000 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKeWL-00B5ZW-UE for linux-arm-kernel@lists.infradead.org; Fri, 12 Mar 2021 09:55:56 +0000 Received: by mail-qv1-xf30.google.com with SMTP id a14so3963030qvj.7 for ; Fri, 12 Mar 2021 01:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:mime-version:date:message-id; bh=WD8sR2qQ2FGd9LryCvWh2EJSu2H3tjlxVjm2yprOu/o=; b=U+2l7nwkR7iEiWldFc7tBtdy70VCTqjQ+cqtMR/9AukMgbRwQ1qm+j8f1OPhue17ok Z7Hf/nscO48w/9JeE281Wg7Jmc2x9LchSQvbUN84d28axeWSIrB2zf8FR10hOE/svIx8 XxXTxxMQ26aeol3yQ1WgDOR+XEXe9Fk2egVGIIn1aQ8sEs8W6zfqOZxTvMKlS1FfBpKF /3ol/ljWB+/u+rAqhaAv1nDd19fIVODfgpVpV54E/QnDtuH9exLPH2Q9ZD/aRhJurQCJ aIjcAiBIiyVSplj8eaPI47WBAMwywHTWE2e637NI536+NQ4UkEafKh5biEJhnM082+yL mMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version:date :message-id; bh=WD8sR2qQ2FGd9LryCvWh2EJSu2H3tjlxVjm2yprOu/o=; b=X2rMzebwYx/gmlqi7hKkGaz6ETZtC3xSMJ5fuT31uf+2yM6RXalcZlTQJ8QH2ZsO2g xN9r6mZ6jkIYkPHDAwTPJPTaU3eVhuAI/3ly8ktRTG94JQ21yAwijgAsJqON7MCSBvuU CxCx58vxektHlNlB8K2rlONDVZP/qkmbwGZaAO+SQwOj0V8rbv/Dc3SJaG3d9AzOdgsQ wIMhLReEgKuSB+UAzeMgf/3OI8t4m7DzwSTlsVpl/mpgMzHCbc9VRKwF9KuhreARBdCN QT3xHBqxn97mvUFjGHPoAquWp/g37WL4gto2nIwcBG4AXjb3QmZ69PBWEsiOvZ/R2NNU Vghw== X-Gm-Message-State: AOAM533ZQHibuqLSHbWJ8yCiQlJ2ug/jaE12O2IQGrGS/TRr4IcGqIrV dEximi1uq71yV2InCE3BS41hdw== X-Google-Smtp-Source: ABdhPJz0TMeIw9oMkW/odwOY1oS5xc65r8v/HhBz0Y6YiLT1vO4cEsYvXAs3vG7rMT4Q0uGAYFOCJg== X-Received: by 2002:a0c:cc8c:: with SMTP id f12mr11348749qvl.14.1615542948097; Fri, 12 Mar 2021 01:55:48 -0800 (PST) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id j6sm3291662qtx.14.2021.03.12.01.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 01:55:47 -0800 (PST) From: "Valdis =?utf-8?q?Kl=C4=93tnieks?= " X-Google-Original-From: "Valdis =?utf-8?q?Kl=C4=93tnieks?= " X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Catalin Marinas , Will Deacon cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: arm64: kernel/sys.c - silence initialization warnings. Mime-Version: 1.0 Date: Fri, 12 Mar 2021 04:55:46 -0500 Message-ID: <162859.1615542946@turing-police> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_095550_772533_D5E77957 X-CRM114-Status: UNSURE ( 6.98 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Building arch/arm64/kernel/sys.o with W=1 throws over 300 warnings: /usr/src/linux-next/arch/arm64/kernel/sys.c:56:40: warning: initialized field overwritten [-Woverride-init] 56 | #define __SYSCALL(nr, sym) [nr] = __arm64_##sym, | ^~~~~~~~ /usr/src/linux-next/include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL' 29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys) | ^~~~~~~~~ /usr/src/linux-next/include/uapi/asm-generic/unistd.h:34:1: note: in expansion of macro '__SC_COMP' 34 | __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup) | ^~~~~~~~~ We know that's pretty much the file's purpose in life, so tell the build system to not remind us. This makes the 1 other warning a lot more noticeable. Signed-off-by: Valdis Kletnieks diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile index ed65576ce710..916b21d2b35b 100644 --- a/arch/arm64/kernel/Makefile +++ b/arch/arm64/kernel/Makefile @@ -8,6 +8,7 @@ CFLAGS_armv8_deprecated.o := -I$(src) CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FTRACE) +CFLAGS_sys.o += $(call cc-disable-warning, override-init) # Object file lists. obj-y := debug-monitors.o entry.o irq.o fpsimd.o \