Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6179518rwd; Wed, 24 May 2023 11:54:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hD2FZpLV5uPSm4JHrOg52eKfomvWqyGhNif+df4i6O3d8PlSnp7ynFWbKgLTfIXkpIaHX X-Received: by 2002:a17:903:26cc:b0:1ac:5def:d203 with SMTP id jg12-20020a17090326cc00b001ac5defd203mr16132682plb.35.1684954456302; Wed, 24 May 2023 11:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684954456; cv=none; d=google.com; s=arc-20160816; b=wQuEWgHevV9I0N2UJqVmkbgZcMLEbmCNH2LdDa2NfNUSsODHirEVyKlQRXCqJU4Za7 9hCxEKNqwThSmxztR0I2Rzjdjkx8idmmke9cy6NO+mRiWfpYYqAAdS07QJn05saLeHZj WUUQjRQmiUGa8/cb+MmVwKbUTMwJzlyCcT3C+it0qQnt3DeU/WWwinGap39Tv5lBx2C8 Xi2LGJd8yxvqT5MeqG4q1stvFTPZryKeme1ygWbk6t8j7Mu8gxOxkr0HEP9tUG6n2K2i MGOfDDdibjr9cL9FoAkWeCzU7hgRU+PkneG7CaL9b1GgjTzJDS/A49rWzoplR2ycFRyp Pu3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=0rB0wQqrNycBHLhPekV63oEaJ3rM9Ch7dfk7ramk2Tg=; b=uBk4c+QwKiVIaL1XJqolwH6lOQlUqEVdX2QqRg/Lqy53pa4NSbqqebddTgYYng38sd u917mGHLvXJdA5KbTJNWtCujD7Y1juUE1EFbSeu3DCXF9BHFDEiIChoO5poFbDKefZG2 xTkSwRnb7UNKj2HS/ElDEoqdoq8AD6gk0hmN+1KXJPPtb81lKDhvaDoqUvfaim6CQQts YiGGGJ2wZg/SGmIofk3E+C2+7/MM+XH6YAsbiLFiucElle5QuqphRlyVjijNQJ1uvHVI rXbPlpL2AiD5RdvpmiOJHI2zcVB/3MTPxGviOwv2eyuqR64jo/jHpjtV1Pw/pLm9la7Q 1gqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020a170903230f00b0019ca7a76d68si915853plh.67.2023.05.24.11.54.04; Wed, 24 May 2023 11:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236226AbjEXStP (ORCPT + 99 others); Wed, 24 May 2023 14:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237472AbjEXStI (ORCPT ); Wed, 24 May 2023 14:49:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C66718D; Wed, 24 May 2023 11:49:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2A2C263FCC; Wed, 24 May 2023 18:49:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DB2DC433D2; Wed, 24 May 2023 18:48:57 +0000 (UTC) Date: Wed, 24 May 2023 19:48:55 +0100 From: Catalin Marinas To: Arnd Bergmann Cc: Andrew Morton , linux-mm@kvack.org, Arnd Bergmann , Russell King , Will Deacon , Michal Simek , Thomas Bogendoerfer , Helge Deller , Michael Ellerman , Palmer Dabbelt , Heiko Carstens , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "Rafael J. Wysocki" , Paul Moore , Eric Paris , Dennis Zhou , Tejun Heo , Christoph Lameter , Pavel Machek , Peter Zijlstra , Waiman Long , Boqun Feng , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, audit@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Subject: Re: [PATCH 13/14] thread_info: move function declarations to linux/thread_info.h Message-ID: References: <20230517131102.934196-1-arnd@kernel.org> <20230517131102.934196-14-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517131102.934196-14-arnd@kernel.org> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023 at 03:11:01PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > There are a few __weak functions in kernel/fork.c, which architectures > can override. If there is no prototype, the compiler warns about them: > > kernel/fork.c:164:13: error: no previous prototype for 'arch_release_task_struct' [-Werror=missing-prototypes] > kernel/fork.c:991:20: error: no previous prototype for 'arch_task_cache_init' [-Werror=missing-prototypes] > kernel/fork.c:1086:12: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes] > > There are already prototypes in a number of architecture specific headers > that have addressed those warnings before, but it's much better to have > these in a single place so the warning no longer shows up anywhere. > > Signed-off-by: Arnd Bergmann For arm64: Acked-by: Catalin Marinas