Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2049626lqg; Mon, 4 Mar 2024 11:11:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU8sNclevPup3hQOSNZLKh1xe9VnpC3o5wVy4510VPGCMYezjyBheadeVGKRA1XTj056y1jFD91M4PvZDm2/tR9aw7b9II+jMRmIsrHAQ== X-Google-Smtp-Source: AGHT+IE4al+8ic2LbXWDT83dHLpVEb77c1OYCb77DGGimTib3pgZZL3e3BFRCvncNWWHeABgwT4o X-Received: by 2002:a17:90a:394a:b0:29a:729a:be2c with SMTP id n10-20020a17090a394a00b0029a729abe2cmr7100033pjf.21.1709579472002; Mon, 04 Mar 2024 11:11:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709579471; cv=pass; d=google.com; s=arc-20160816; b=IdwbHgJ/HUh/yNHneveputED8DGjVIEt5tV9Z/RrupG9Dq1DxAJ5o/C8a850WZba5G kxEoouJgfgo3wEA8dvy3Nku//EJ+WrLHTmzb4KnOUjRx4IOdtleB6cYyPKkGmW2Gc6lG RXK5/gTZUMfrtFOlG82Ax1ZncT1x7YXKzz8JU4fH0bdluZwgDdtRQj0hh5rN3VqTKkxh ybtl/U6rUmqw3rR4We70nrqoqbfNW7FGleUL4YbeZVVy+H0JCAEryAuKgQ8R108ZZmrx yp/mNVhytz4Kc8YZLS9TJ18+hQcNOdCVq2ju+l6JQdrA6JVS/9CnYB72VtBIgGAX9bjt gobQ== 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=QoQeYNIUBh4RRg/WRTGjAExIPoGm/yd3NMXnsg/d/iU=; fh=nwSSAsHBwBzEaZ/ddgSn81N/6CRBa0PeLv8CxYxDNDw=; b=0B8+LINKrO/iYw17ayKr3gXgCxRoMLLBlUcA98FblxLvl2dYc13eNT/yPISmw+FgWq fX4wR6KTcYv6vhZjT5EvsfxCX1a+8bP2BuZnaic7eETO8FwuwmCBhk+nGohHDJ/YDKKh pSVkAeCWAOke9RrsNXrghs0gIaW+RI1tEoQ6//6nDr6WXvTwKHNh5bzzOduBBAbUy04y wpyTncAt2jIz+JNXr7Opw+T706Gy7m4gxc3MaEecvNWg85Zrv1065up1PkoCCVB8Piup ylnN14m8sa/FyVRPtT2LvbsxL4wvdtUv8ZbpBIl84f/Mzk89yuH5Wst1FwSBdzgDD+Fn WI7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-91153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91153-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e22-20020a17090a9a9600b0029abda93414si10741056pjp.38.2024.03.04.11.11.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:11:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-91153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91153-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A80CB280EE9 for ; Mon, 4 Mar 2024 19:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E17F7994A; Mon, 4 Mar 2024 19:10:58 +0000 (UTC) Received: from albert.telenet-ops.be (albert.telenet-ops.be [195.130.137.90]) (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 5DCB878B7F for ; Mon, 4 Mar 2024 19:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.90 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709579457; cv=none; b=rSV9sRPY8ucchKr3BbKexzosv0jDc4Up7Xqp/8OYz/PRgtbAwQBpxNYv6yF4c8yUwht2h0QNU8xLmvC/Dox2Fj/6qYd9nMoITVLLBu8NT12ojfovfaJNQWsvSoOo0IG6yT1QNuxK38h2K77Mb/G4pCCsTG//PKLeaS5SGECX7dY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709579457; c=relaxed/simple; bh=UhA9NzN5AgwziWhnlnveA/LqNjNCJ3iXglsNYWq2dfY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=L72M96/oIGWWKhmG0iLD5swN1XKo9jh1/PHsAxPXsdWrYtJnZe/JD5P8bRtWZFpPIEfTM1FLgT1i2gO+ZY7rsGgkfelB6BMW5G3P7Bnj4lTYn9/5+7qk7CjZggdEny1qi6qt8RLJ6LicHIdCghPoDFnoVlHVNKXe0xa3htmODWw= 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.90 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:ed40:2716:1247:52e8:4f90]) by albert.telenet-ops.be with bizsmtp id ujAr2B00E2qflky06jArfP; Mon, 04 Mar 2024 20:10:52 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rhDhv-002KJv-LE; Mon, 04 Mar 2024 20:10:51 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rhDi7-00BCcg-BK; Mon, 04 Mar 2024 20:10:51 +0100 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/7] sh: traps: Make is_dsp_inst() static Date: Mon, 4 Mar 2024 20:10:44 +0100 Message-Id: <8525fe446e7f24649a83b8cd6ca8b736ab746b80.1709579038.git.geert+renesas@glider.be> 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If CONFIG_SH_DSP=y (e.g. se7343_defconfig): arch/sh/kernel/traps_32.c:572:5: warning: no previous prototype for ‘is_dsp_inst’ [-Wmissing-prototypes] There are no users outside this file, so make it static. While at it, convert the dummy for the CONFIG_SH_DSP=n case from a macro to a static inline function, to increase type-safety. Signed-off-by: Geert Uytterhoeven --- arch/sh/kernel/traps_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index 8cd4b05df75c3e07..1271b839a107ef28 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c @@ -569,7 +569,7 @@ asmlinkage void do_address_error(struct pt_regs *regs, /* * SH-DSP support gerg@snapgear.com. */ -int is_dsp_inst(struct pt_regs *regs) +static int is_dsp_inst(struct pt_regs *regs) { unsigned short inst = 0; @@ -591,7 +591,7 @@ int is_dsp_inst(struct pt_regs *regs) return 0; } #else -#define is_dsp_inst(regs) (0) +static inline int is_dsp_inst(struct pt_regs *regs) { return 0; } #endif /* CONFIG_SH_DSP */ #ifdef CONFIG_CPU_SH2A -- 2.34.1