Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp403881lql; Mon, 11 Mar 2024 06:25:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOr8HnV36NDD33WP5xxC0XSrO/hWLnYFmeGf8V/OygJfA8JOnMb9xS3uOQLAd2qsT+ar5FTutUj/k+aiwBy39rlrUp0H8tqMJb0K5eDw== X-Google-Smtp-Source: AGHT+IGVngwDeTH7ipPLDbiSZjYe5VEaAepT98K/0Z5/MSmL76x9AHUZhtDaJt0/KHiUQFmWZAKD X-Received: by 2002:a50:9b17:0:b0:563:c54e:f1 with SMTP id o23-20020a509b17000000b00563c54e00f1mr4515245edi.2.1710163518122; Mon, 11 Mar 2024 06:25:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710163518; cv=pass; d=google.com; s=arc-20160816; b=FZjH+gnybtn/GUFAOVrLfX1W4hKIhhwL85pX5oiPLZyWOjfFnjYm/64KyDY6RVvDM5 9smWUBVu3maGAiD3A09sGTXRMlEN06Nn8ITQIRYV23UcCHEUOmSYpg3xZuHkrhDmuDzC qubtbJkrc2rPa2dF11tW2q0W5sHwlKwD7A5cNB/q0IPGcAaQEb7f1vMJT41sB8IOY/UV +StgTc9A1WAQTm4+Rt3hiA43FXYrCUbW9GyLDLsLRMa5+Sm5I4fLmPPQirG12s1/2qlx J5yd9ckG4hDZ9uKD4yXZhQ1y2Oh42t2PSy3eqxkFo3ioEUL1nuGnr7z6sOBtsUsXu6t+ /1lA== 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:dkim-signature; bh=SEARZa5Wy43/uJEWuUJJQI9Y4wLhs8OmNqyFr5H4dkQ=; fh=lg0fwc2H1g4o3mWBQiJPSRcGqCOduzcuyrmXsJzm2wQ=; b=PBz255dBkxB+4BiAHrDRt8BEeD3RfK7vS/4irnQexnYQxb9aLzPsrNV7RYmslJt84D EeBFWxKvKDqqojaNNGtelEbEqly99Ab/Amex5qSfuAAnqclIMHqLePop4Ck9ClPmE0lm sdpgUv2TQ4N2m2HxsGLbSiU9mL1EqAIrXuzM2aNIOAsopafj6kvWx+01P7LEkhSkslKa Poz3Cro5nOgX6m1l0YUpy5HcVub5DyvPrRpvvynMZ8Wuxd8kuEhxuc8dNnatUP/Pxmiq L3AoQjq0jGn619y4FhERR7/38MkAeyngOafntZ9Ho3w9oc+S/CAaGPuQG+rsGQh0ZEjP Ss3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=VXmHK5yF; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-98874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m9-20020a056402510900b0056830aaa058si2554392edd.138.2024.03.11.06.25.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 06:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=VXmHK5yF; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-98874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D770A1F21297 for ; Mon, 11 Mar 2024 13:25:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37BA744377; Mon, 11 Mar 2024 13:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="VXmHK5yF" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 9B80F41211 for ; Mon, 11 Mar 2024 13:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710163408; cv=none; b=rA7+bgYLjc4UMplrnZf5urD5mWVXEIiS9mDJOYKka2ehbw1WXZQSbIw1NVCk+rOPcautp+nm5ZbMQYbjakphifWZbSxphtjHlZMVMwHzP4cJaBJAmOxCULXru4PhlMATeb5zrPMTiamtJKHRG+Tr813CVQvOPTq9SN3/vTxs/Co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710163408; c=relaxed/simple; bh=mM1lJpUfEeOdqAGIdoQeUdDslMwrM56HU1w2dUupTZ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OltP4n21+xyFtYxoijPvWy4bChcZpZeKc/tWLZ55XwEc7/Zf48UDC0Utus0mim3M90gaouipWTjyN86jyfR6osJbwk2wwAUccmrc8dHptDYdqxlOSVd8oN5tEvybX0cgoC74uTpSqAKwfPeeqbFIS0bODUTooiBPUv9OSEcTHQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=VXmHK5yF; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a462b068416so107168466b.0 for ; Mon, 11 Mar 2024 06:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1710163405; x=1710768205; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SEARZa5Wy43/uJEWuUJJQI9Y4wLhs8OmNqyFr5H4dkQ=; b=VXmHK5yFYrs1Ms8T+4ZCDdOnYx6tsnMX0O9x+oRpjevCoa7FnhG6LGNHVObD9fE5B9 FFYV+NpsYEl4OrweQ/ZxU886zHVQRsoz1avLndsJ53ng/AHTMOMstohWuN0Stx7UyYLN y1y1+3XfRls9xcMk/4+3ZwUWlGx88yNgddT6310Ev/JUE5YoHtmmYMSdoQi5R0zS5IXo 0NRJixtSSGBz0I0MqQKYu37KJO7CGRC4+iXhOVKFaviN4anqzss48/SP3+aAZytoNvMN CVWBcgv0Gauu9WneUjw6wEYq1fO8YZT3dzLY/NCznoDwUS2MzFFET1OfXZb3Fr5r/+HO V1gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710163405; x=1710768205; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SEARZa5Wy43/uJEWuUJJQI9Y4wLhs8OmNqyFr5H4dkQ=; b=jJ2kQUX9rB16ThmKeqbbMT59UBxEL4GgFrpbJc5uJaDGIxBHYsfu1cvjNAaExkYmOL uayz4gmHlfJfIiLGqcfx2migAHITwpM4olMFfenwX76ROGW1DUzn66eCxeeBllSTNw0p diIdnBP/Jn3nXmWLw2bDXDf5FsuOR8If/mdhKqdDmMGGSayK5t7ZYUv64s/bS0YVyRc0 3CsGYX+vWU75+9m6MElhr+kPQGi9pkOPKyWf9/k3P/V6r+SdnLrpUSoQlxQ+qj83KRTV VQOwxrb6kKdbTstegkg/0ZT2TUyWr+1WSKsA5LumOEDuLfEhkX/L9ftGsw0yEQzlJMnw 4iYg== X-Forwarded-Encrypted: i=1; AJvYcCWVqtnZyeRFHgvSNm0P4ap2hB2DcNJX+MHHEpD8OiIIpE4ocOBPGQc/blNglSBQqVIQNCiBNkdED3s8ddagsla34uMWXDbIJwvDSoFR X-Gm-Message-State: AOJu0YxnI8xJFZ1igwVUo7RIsC+de3lIr/AASr5LZBOwmfkypLBbcdrG x9i5u+IzFw7BmvurStOvdQIvzyMvShx+049PMEOVt4HKkuaO8Fgyg54Q0pJbVBRfwaqN7zWokC/ 3 X-Received: by 2002:a17:907:d410:b0:a46:2b92:8124 with SMTP id vi16-20020a170907d41000b00a462b928124mr1444316ejc.60.1710163405151; Mon, 11 Mar 2024 06:23:25 -0700 (PDT) Received: from raven.blarg.de (p200300dc6f010900023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f01:900:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id i26-20020a170906251a00b00a44cb0bf11bsm2861075ejb.79.2024.03.11.06.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 06:23:24 -0700 (PDT) From: Max Kellermann To: richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH 10/11] arch/alpha/smc37c669.: make SMC37c669_dump_registers() static Date: Mon, 11 Mar 2024 14:23:05 +0100 Message-Id: <20240311132306.3420135-10-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240311132306.3420135-1-max.kellermann@ionos.com> References: <20240311132306.3420135-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This function is only used within this source file. Fixes `-Wmissing-prototypes`: arch/alpha/kernel/smc37c669.c:2434:1: error: no previous prototype for 'SMC37c669_dump_registers' [-Werror=missing-prototypes] 2434 | SMC37c669_dump_registers(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ Also add `#if SMC_DEBUG` because it's only ever used under this condition. Signed-off-by: Max Kellermann --- arch/alpha/kernel/smc37c669.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c index bbbd34586de0..ab22ade3dea3 100644 --- a/arch/alpha/kernel/smc37c669.c +++ b/arch/alpha/kernel/smc37c669.c @@ -2430,13 +2430,16 @@ int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char * } #endif -void __init +#if SMC_DEBUG +static void __init SMC37c669_dump_registers(void) { int i; for (i = 0; i <= 0x29; i++) printk("-- CR%02x : %02x\n", i, SMC37c669_read_config(i)); } +#endif // SMC_DEBUG + /*+ * ============================================================================ * = SMC_init - SMC37c669 Super I/O controller initialization = -- 2.39.2