Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp291535pxf; Thu, 25 Mar 2021 04:21:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWKoJZJ23brB0i39jGxhc4uFipr8VVf6c8UFnxKFOBwJGLEMPURTuQKouMFKZHtXO89M5Z X-Received: by 2002:a17:906:b316:: with SMTP id n22mr8546684ejz.249.1616671260745; Thu, 25 Mar 2021 04:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616671260; cv=none; d=google.com; s=arc-20160816; b=wcdwMfto0sVK3dlToVnjrdi2MVqfKpD+i0iIjI+t3yA3oprIZGP9CTYG/UzCMXkPZ4 ofx5E4nzeDoBriadEtIRDiGHZ+Ply0d8st2oKfYEzbpwBsKrg0lTfGyWPCCK02jKlnyw 4+K0ir4XsLgfiwJZfMsaqJUpH7X+p1PwqDDKTif/UuFLB2c3pppyqeBQJT3WKUWJZ7Or mPUPgSYjwsv5gtM/z9OhO90czdqO5DrqOTbA01RLfiQsIRvEfKwv401CH9fFMaBkINmw mHSBz+HKvCxKSr4iiqVnN0FCT7plKM0OJAa0bb2gETuxJrtv75ZwL1LfDh8r8AesQh/y sl/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bWtGMNsNljZoH+NzcNkHBTx0fQIVUHHpErRmjk+VEs4=; b=IlVBOTNxtD/ZGUG8Aavwe5mtfiCVvO9wwqv4t/KCOt9b6RT/VbFzIqFh7CRFgW0vci yD1HMKVPwoXvS5U5jwiAfXsWJ6zU4x2qEzBgqCz9p9CfWmyxJr4M/NLbTnTzofOtBXrk GfVe6OuUq/QOC3VxsPR0sKkvrGJ1kIKqTUlG5KZ0J9qr/5wd6nDgAhFr5p2Z+E3f4sUH pcymrim2EZfBxb7iOG5aXhy106GguBBPT8Pouht/07ZmJCKRP2pnO51Sse4/wPtDaeeX 8dDlNL+7vvgGWdmdblWduXNrpyHbWQCd0rc9gK6XVpVk5TgZbXBE/PWARoRwLHBtXBHl insA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUP0vGjS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si3957309eds.169.2021.03.25.04.20.28; Thu, 25 Mar 2021 04:21:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUP0vGjS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbhCYLT2 (ORCPT + 99 others); Thu, 25 Mar 2021 07:19:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:60846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhCYLTL (ORCPT ); Thu, 25 Mar 2021 07:19:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F103E619FF; Thu, 25 Mar 2021 11:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616671150; bh=nysmEFoQvfZJpXJDhFl1t8gREBvdDsBQeGwZ5Fr7Sfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KUP0vGjS6eAYCUWV22U2DHpibo7T3P+WA9r2cD/D9f6HY64X4hqf2VZhdF5VNYi93 lceYNxkNOzmNTdAdHcg2aTEOBwqcn54lWSAoT893/0EBLPf6wUMLjWxzOnalVmOitf 0Dt08J6El/F5FbEJSv209cggxhcqZ8MECMuwJKHkXReiXTlPLTWPjnJmi6PU/BoDNU pme9wE26aJrkIzaPcIQvZZYCRnDwfuYwDQ9B1GM39a7qNm3SyDqOn+mShXG06sbGKc XlJr8SyyNQvgZup4AEgINMNftE6dltfJ36oShVVW4tblnZEONMrusu8SHfoJdY2zHc umcm7tkLNqm6w== From: Will Deacon To: samitolvanen@google.com, amit.kachhap@arm.com, keescook@chromium.org, mark.rutland@arm.com, 0x7f454c46@gmail.com, Maninder Singh , catalin.marinas@arm.com, akpm@linux-foundation.org, pcc@google.com, james.morse@arm.com, vincenzo.frascino@arm.com, nsaenzjulienne@suse.de Cc: kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, a.sahrawat@samsung.com Subject: Re: (subset) [PATCH 1/2] arm64/process.c: fix Wmissing-prototypes build warnings Date: Thu, 25 Mar 2021 11:19:03 +0000 Message-Id: <161666581740.223087.673529524234867266.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1616568899-986-1-git-send-email-maninder1.s@samsung.com> References: <1616568899-986-1-git-send-email-maninder1.s@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Mar 2021 12:24:58 +0530, Maninder Singh wrote: > function protypes are missed before defination, which > leads to compilation warning with "-Wmissing-prototypes" > flag. > > https://lkml.org/lkml/2021/3/19/840 > > arch/arm64/kernel/process.c:261:6: warning: no previous prototype for '__show_regs' [-Wmissing-prototypes] > 261 | void __show_regs(struct pt_regs *regs) > | ^~~~~~~~~~~ > arch/arm64/kernel/process.c:307:6: warning: no previous prototype for '__show_regs_alloc_free' [-Wmissing-prototypes] > 307 | void __show_regs_alloc_free(struct pt_regs *regs) > | ^~~~~~~~~~~~~~~~~~~~~~ > arch/arm64/kernel/process.c:365:5: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes] > 365 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) > | ^~~~~~~~~~~~~~~~~~~~ > arch/arm64/kernel/process.c:546:41: warning: no previous prototype for '__switch_to' [-Wmissing-prototypes] > 546 | __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev, > | ^~~~~~~~~~~ > arch/arm64/kernel/process.c:710:25: warning: no previous prototype for 'arm64_preempt_schedule_irq' [-Wmissing-prototypes] > 710 | asmlinkage void __sched arm64_preempt_schedule_irq(void) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Applied first patch ONLY to arm64 (for-next/fixes), thanks! [1/2] arm64/process.c: fix Wmissing-prototypes build warnings https://git.kernel.org/arm64/c/baa96377bc7b Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev