Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp236557imn; Mon, 25 Jul 2022 15:02:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tPnTprLB0HFTkw8IJB3Imqp4OtJcuwxHA6To4Ha4/x0c2Zp17f4gWrEjKNDIxdKiBtWIh2 X-Received: by 2002:a17:906:c152:b0:72f:3a21:7c35 with SMTP id dp18-20020a170906c15200b0072f3a217c35mr11799182ejc.476.1658786541240; Mon, 25 Jul 2022 15:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658786541; cv=none; d=google.com; s=arc-20160816; b=mVjYRgpJPHT+mmaX/VsxCzUYqhqHBnpb357IMiANoK46yroHgL9Ahk6vjVLqTg2b3G Kuv5ShyRp/yw6nd/bP65T7HXgQ1XFtljHGuP3kpA8itL94XnHpjheIbKKqigMZ6uyKeo RsXP4AcRIY7ye9PuHUFsWb0zOIRUmdrIqXgN1UQByNry6txtiqWfCezv5OE2TpiTmyLe 1uUYP7GMxGs8rR5ydi/aBf3KRriZDNaEPm5GJjezzI1PT9Byqst632O+Umut9OlXc9qc qFOXPWHMqDEdBxZDQTTvKrFz24kAiGRwxLUUx8q65xpTS4yfaPqS7kN2qJmHKKctPPA5 oZ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=nYrR57fNHWHY8pJ9E3LrFMahqHJMSsWgDJRnqlwa/Wk=; b=Qr0m/6ZsV0y4Rhlz/nIqS/ESfBCP1OWLeFZqpHWLeu43H9FXkTmbzYAVD0/2ROu0to PAfRlTylSObT2a/CqTwJ+Sew444a96cO23yU3mNjeJRyANRabbmYx2F2f7scPKqra9y+ 2BDc2zHX6b3bGTR+osE6PJm2h4MMAQ2XqgQDNB9SaERyX64Rf19r3OFDlcI0ciYxPFtl lae9CkVpre7y/41Tgylalv9qnfv73+rQK8lmjAJQ6HWC1JKrj6CRr4Q6np4RrXofofb9 TyR2CiDoU3aNngYcqFK8DQ3weDa8h0nJCRls44W9+YY8a+0x9imjc6DgS3dnCeOm4jnV ztsg== 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=codethink.co.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a056402350c00b0043c1ce4e990si2669328edd.442.2022.07.25.15.01.55; Mon, 25 Jul 2022 15:02:21 -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=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231663AbiGYVwj (ORCPT + 99 others); Mon, 25 Jul 2022 17:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiGYVwi (ORCPT ); Mon, 25 Jul 2022 17:52:38 -0400 X-Greylist: delayed 1788 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 25 Jul 2022 14:52:36 PDT Received: from imap5.colo.codethink.co.uk (imap5.colo.codethink.co.uk [78.40.148.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3596185; Mon, 25 Jul 2022 14:52:36 -0700 (PDT) Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=[192.168.0.17]) by imap5.colo.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1oG508-006V3d-JH; Mon, 25 Jul 2022 21:48:29 +0100 Message-ID: Date: Mon, 25 Jul 2022 21:48:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] profile: setup_profiling_timer() is moslty not implemented Content-Language: en-GB To: Andrew Morton , Ben Dooks Cc: linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-parisc@vger.kernel.org, openrisc@lists.librecores.org, linux-ia64@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-csky@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-snps-arc@lists.infradead.org, linux-alpha@vger.kernel.org References: <20220721195509.418205-1-ben-linux@fluff.org> <20220725123948.f16674b10022404814161d4a@linux-foundation.org> From: Ben Dooks Organization: Codethink Limited. In-Reply-To: <20220725123948.f16674b10022404814161d4a@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS 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 25/07/2022 20:39, Andrew Morton wrote: > On Thu, 21 Jul 2022 20:55:09 +0100 Ben Dooks wrote: > >> The setup_profiling_timer() is mostly un-implemented by many >> architectures. In many places it isn't guarded by CONFIG_PROFILE >> which is needed for it to be used. Make it a weak symbol in >> kernel/profile.c and remove the 'return -EINVAL' implementations >> from the kenrel. >> >> There are a couple of architectures which do return 0 from >> the setup_profiling_timer() function but they don't seem to >> do anything else with it. To keep the /proc compatibility for >> now, leave these for a future update or removal. >> >> On ARM, this fixes the following sparse warning: >> arch/arm/kernel/smp.c:793:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static? > > I'll grab this. > > We have had some problems with weak functions lately. See > > https://lore.kernel.org/all/87ee0q7b92.fsf@email.froward.int.ebiederm.org/T/#u > > Hopefully that was a rare corner case. Great, thanks. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html