Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2038750lqo; Mon, 13 May 2024 06:21:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYSgXe/uY4HxsdwfH6QZcCwkd2FDCjpgmMncURshlkisQA+hOvdwe2p39Ou051igTvB22DFqaWaGEk6F2lanaAti6GGx3M3tH/LDc3pg== X-Google-Smtp-Source: AGHT+IFoyuUKKLIHYBVZ7xmgUgoroeAA/3y2/pXnQDIpEk7eFf01D3/DPW5UaLamgB5NZxE90ReO X-Received: by 2002:a17:902:aa47:b0:1e3:f27c:457d with SMTP id d9443c01a7336-1ef44059ba2mr98693675ad.65.1715606477100; Mon, 13 May 2024 06:21:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715606477; cv=pass; d=google.com; s=arc-20160816; b=xlSdS+RLR1PgiS9dSD1ohwRR2A/wXrWTclmUmJUwqVYn5kPoMDGOYIbmsMeJSLOzgC I6B2WjA6NgjGrREYiHSFAnZlonIyCTkZwKIlAnbg1VQRQel84/qOrH0jw4BH13cgO681 iDJNVPNEomjtJ3em1WQT5uRwuY7Qn9vOcFLxkoBlvZyciv/r/WS8LqWWw2fwjdmhZLJu UPOzLBvHR7MNYbG6ok8FMLXakQPNOIRw6CKO0zulU02XHVnUe+lYS9N9GO2ZwkX9iBXl zjkMpKi4WphVaVRxllIgKZIoBeSQ7NLpUKQ8HQXxNRMzSSLRXWeXjI2gRjlUmyKhb7Hs DRrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5eu5ycNNSRSLstJFaXGMH+xzbA/pqxe4MPA9J4+4/YA=; fh=nwSSAsHBwBzEaZ/ddgSn81N/6CRBa0PeLv8CxYxDNDw=; b=I9EWXLw8+iIfF8RSMVy3V85dy+v4azISW42+mUbCC13uk+UwHN6DBWLtMpM2jSyPeC uf2uxPDxc9uTs9aJhe81jQFY68Xr19q9Vfg87oRdYmS6XQBGNafgYV7aS66oPIhNUyq0 m+w05mI2WjYKUcsWpH7SHPt34W7QEUV7kqD1gauwT5rHDCxSdu3CxvQ2TaimrkarqFvS SyqEa2sGSPMrpJzIlBDscZyziuQNo2Xg2DFBVfG2uq9qDPfFYWY53qQ/esD+RSl3wWcD 1ieqURfDAQcMi0RvjbkmHUrMkblKMPkzqpvUyiRYfPVq2++SZcXFakOhSoGHc4kb2cZ6 x7jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-177619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177619-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c03701csi90181015ad.333.2024.05.13.06.21.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 06:21:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-177619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177619-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 701D9B23AEA for ; Mon, 13 May 2024 13:21:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57F8015219F; Mon, 13 May 2024 13:21:05 +0000 (UTC) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8507C152185 for ; Mon, 13 May 2024 13:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606464; cv=none; b=l89E81ZGkN6ysZ3jiX2JkqjJp6X5hc6qHhtR3C5d2mu23ShnFSyre8eWdp8w1IIAp4RF/RUtD6vqNwGWnn5pgx7oDyG13Qdmgo30qYjZZPK4pmjciwDKbJYBEtdNMEEDqh6VYiCUDrvGkFw4UElWBaHKc7HsceDg59+SsE5TWSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606464; c=relaxed/simple; bh=pc/VJ1lCqkuIAuXgBQOqD4NDNJ806OYBSWFMiP8vFMo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KHDPHRu2Q+bPOH4S6G5/dokkurPqh3Xk8SZNj0Dt1n1LvSHPj/UFTtX57afQK2AbK1noswh2l8qgSnI49lvp3+E0rExiZAOwCyfgmc0pA+F8TB080CaiaCnfI/gbwEOETw0BbnEKSnVjnO6DqkPckb1kkJkkmtR2np2s/0PxrFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:c85e:4b6d:1f91:1410]) by laurent.telenet-ops.be with bizsmtp id NdM02C0065V4kqY01dM0ZD; Mon, 13 May 2024 15:21:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1s6Vb7-00399m-Ry; Mon, 13 May 2024 15:21:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1s6Vbv-008tqU-Vr; Mon, 13 May 2024 15:20:59 +0200 From: Geert Uytterhoeven To: Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Arnd Bergmann Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] sh: smp: Protect setup_profiling_timer() by CONFIG_PROFILING Date: Mon, 13 May 2024 15:20:54 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit arch/sh/kernel/smp.c:326:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes] The function is unconditionally defined in smp.c, but conditionally declared in . Signed-off-by: Geert Uytterhoeven --- arch/sh/kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index b3ea50aabba3d7f2..108d808767fa9984 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -322,11 +322,13 @@ void smp_message_recv(unsigned int msg) } } +#ifdef CONFIG_PROFILING /* Not really SMP stuff ... */ int setup_profiling_timer(unsigned int multiplier) { return 0; } +#endif #ifdef CONFIG_MMU -- 2.34.1