From patchwork Wed Aug 7 06:28:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 817642 Received: from mail-oo1-f66.google.com (mail-oo1-f66.google.com [209.85.161.66]) (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 C52A71B32B1 for ; Wed, 7 Aug 2024 06:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723012128; cv=none; b=dhJ+1A0dsvFVkVzb4Jx4GGVJXnjp2p8egXXZLF3Tma7WpBODLwO8WUEF+3A1ChT5CXByNTfYF5mkORGH1oedUw2NL8foNkqUqxOe8CmG7w+66BbBgu8KRYr6JqAeRmwnAPr9yHiUVP6Q/t9R6qedKKfmVALW/2bt2k7ydBwuwUQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723012128; c=relaxed/simple; bh=ilBp4mbpWbt8P/is+bSZyTJdtYmg+2K6PWzsUAJQ5pk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iaCI60c9aqtAl/pNiNQDJkYKxRuJbjGn1LY4EH0x6yIjzhrgyFgvOVRJHLYfOkOv7Z8G2sneTBEbFi0JxJPIkCzKHKCZ09O6uZUlVEAWEBtqkYOAwCejVrfOXqexjYin9436PwkFN9Z0lhWELSx3IRggGLVvt8b7fFxXznzB3eI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=B0nU2MyR; arc=none smtp.client-ip=209.85.161.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="B0nU2MyR" Received: by mail-oo1-f66.google.com with SMTP id 006d021491bc7-5d5c8c1006eso870638eaf.3 for ; Tue, 06 Aug 2024 23:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1723012125; x=1723616925; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=L3Cnd6mFtbJSGETFPCDN577bknl11oPzpBdGoJxqsrA=; b=B0nU2MyRN8MH+8mz+VOalxkCqQtFv7AvEjRfgBVgI0QFiLC7rxgb82bTV/LRiUEybt JmuE3mq7RowCETbb7Xw/AmjaGQXFWFXGKQSwZ/kSDtO3l0CgoPPNoSStJLEjP4qwekMm cwsKRW76QC4mUVPLRqsdqZCgE5BdVEkCg6A4LdweHKLSd4w8Aw8x0ICI99O3oQh6GEn6 UmEFVWN15+dTypkATrd6L45xZjhzdKBUjUsUWDEhfFXsZoTBp+WUTeikhgtofqRKOofJ 7ncv+CgdsLMz/pdP9I/V6T6JiskLz1MqN3VaYNXQxtatRYcHflYINg7D3iXYlk3D/HQ9 TvWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723012125; x=1723616925; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L3Cnd6mFtbJSGETFPCDN577bknl11oPzpBdGoJxqsrA=; b=Hc3IqVmko2ECKUCIuAX9iDN1hctp7RxypfmBCCz1fI8aaohv5Fr2QmLMyOGLR779AR VBceguh4nWyZuIV0UzC3SNA+PUy/sdAUeMu1KXD+aKcjcBgmWJzFK0xEJkqtPWYx0HHr orVPOHJEoB6TGGbeRysR00R/JOhYBlLIZ3dxwDxu2ScLHrI43qzvlRn2m/STvtcAkJWO 24vQ9y9gmJ+6orwQcNUL2Tq2uWhzr4/URdt4WiAx2BUEIA2M10zDsf+d4paHXub7zY3X skp5Y/XY7MqS3GoTwt8mk/H1GEeMd9jBAHulwVHe/9Hosp6NUnwXcwf/nj+Bcso0QlNW qUTA== X-Forwarded-Encrypted: i=1; AJvYcCVjmCUk1lAlf70hi6bpCMewASI7GxiCWi6HaAx8ljfh/3esT96S0lEVPemdM2Za28kVCJb52vBPtZSVpgk/QXpNDKH7CiPONyIDrebD X-Gm-Message-State: AOJu0YwnlcMrUaRWOmzbE5o92nhreum4U/Q+fnlBARKrhFVRW+DUMm4h +yXJjxom6mUIL7UeCnWblfX1rM5T2NZf7G9SrmHxpK+XZ8BW2eG2VqTVPkpMICkFjLEtmiIGe1D hA3VJcjXt X-Google-Smtp-Source: AGHT+IG3+LYLTW06u/7CE9JfA6rsragN66yfaT4Kj6PNe9WVItBbqMTO8KeQtcDjSJembalV746lYA== X-Received: by 2002:a05:6870:fb8d:b0:260:f5c6:e9ec with SMTP id 586e51a60fabf-26891d22d97mr21093052fac.17.1723012125203; Tue, 06 Aug 2024 23:28:45 -0700 (PDT) Received: from sunil-pc.tail07344b.ts.net ([106.51.198.16]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ec416b5sm7794916b3a.58.2024.08.06.23.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 23:28:44 -0700 (PDT) From: Sunil V L To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby , Stephen Rothwell , Sunil V L , kernel test robot Subject: [PATCH] serial: 8250_platform: Fix unused acpi_platform_serial_table warning Date: Wed, 7 Aug 2024 11:58:39 +0530 Message-ID: <20240807062839.1738705-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The LKP reports below warning. >> drivers/tty/serial/8250/8250_platform.c:271:36: warning: 'acpi_platform_serial_table' defined but not used [-Wunused-const-variable=] 271 | static const struct acpi_device_id acpi_platform_serial_table[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ This is because some architectures don't define either ACPI or MODULE/MODULE_DEVICE_TABLE. So, keep acpi_platform_serial_table under CONFIG_ACPI to fix the warning on such architectures. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407310047.PIoWlrZZ-lkp@intel.com/ Fixes: d9e5a0ce2f16 ("serial: 8250_platform: Enable generic 16550A platform devices") Signed-off-by: Sunil V L --- drivers/tty/serial/8250/8250_platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c index bdfb16bed4f2..168e635002aa 100644 --- a/drivers/tty/serial/8250/8250_platform.c +++ b/drivers/tty/serial/8250/8250_platform.c @@ -268,11 +268,13 @@ static int serial8250_resume(struct platform_device *dev) return 0; } +#ifdef CONFIG_ACPI static const struct acpi_device_id acpi_platform_serial_table[] = { { "RSCV0003", 0 }, // RISC-V Generic 16550A UART { }, }; MODULE_DEVICE_TABLE(acpi, acpi_platform_serial_table); +#endif static struct platform_driver serial8250_isa_driver = { .probe = serial8250_probe,