Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp180388ybk; Thu, 14 May 2020 20:26:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLek9BjfhxlsXqx+KjbPeVaJ+R4FPB7AwkxQJsvd9Vsqsj+1Z28EabHh9I+bTvpNj3MZaf X-Received: by 2002:a05:6402:14d7:: with SMTP id f23mr1003264edx.187.1589513183092; Thu, 14 May 2020 20:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589513183; cv=none; d=google.com; s=arc-20160816; b=aN0R7LVnLlUBpOWmEzYZbcf1I/10kv/CjhWrHAvXVQh22Mssu/vmSwi+rCov/q4jmn yWsI5R9+FTpO7btpY2VW+vpIFwWre+WX1Z0pMNVsGMysFDugif1rga5YPU/LH0FWlF5t A8GtJo8efmPWFA9gp9KmeW565ElziHRp8xURB5SaYLcT1HBnI4WNKd4arXF0HLfVZCmi 7CmaARym4kycWpnI8zBL5sMYjzX2TABizw29z4bFmp2E2tm0vdnR5B2gnrXCS+s3+iEe D+ADwSCgJTMwq9mTvah6RjqvTiaHuYtkO5WpKf95fUberHFR/+AJibO8k2+zlCutE2ux NTfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qWOuRrRRGOYug7f6AR7vdQXIvcxJSjV0Au0vx0dporc=; b=BZlKqK0OHMLek04k6fZKDH4kvOMSf9t7C5dCPk5nPorKwc094IIjIp6BfunTu3RWni badY3YuBRSFftHDPegecSre7ZHDAukcXwNMdcW6wrGSsWdPh22AJoxjM5wgGvceNhMKb R25UfJJEOsxDDvIVq0s4ksuy6uv0B2LPEw82EUg9NGr0dw4wZiqD1/h0awi+p48blzeX JChXmTJmI5lmpZpq2poqG0k6RhFzMew/rg6wF8592UKhrhr2oxRu0G42C6cVTxJ8/Ez1 Emv27IhEZPSvZu5CtPIG64ynD91r/wmyqHAD4TzdLzXXDz045eVfqDtI24R9VAT26jqa VIoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si465400ejh.334.2020.05.14.20.26.00; Thu, 14 May 2020 20:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728129AbgEODXL (ORCPT + 99 others); Thu, 14 May 2020 23:23:11 -0400 Received: from mail.loongson.cn ([114.242.206.163]:46354 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727117AbgEODXL (ORCPT ); Thu, 14 May 2020 23:23:11 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx32gaC75ehPA0AA--.47S3; Fri, 15 May 2020 11:23:06 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH v2 2/2] MIPS: Fix build errors under CONFIG_HAVE_STD_PC_SERIAL_PORT Date: Fri, 15 May 2020 11:23:05 +0800 Message-Id: <1589512985-27419-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1589512985-27419-1-git-send-email-yangtiezhu@loongson.cn> References: <1589512985-27419-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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v26r4j6F4UMIIF0xvEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUY-eOUUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_HAVE_STD_PC_SERIAL_PORT is set, include linux/module.h to fix the following build errors: CC arch/mips/kernel/8250-platform.o arch/mips/kernel/8250-platform.c:42:1: error: data definition has no type or storage class [-Werror] module_init(uart8250_init); ^ arch/mips/kernel/8250-platform.c:42:1: error: type defaults to ‘int’ in declaration of ‘module_init’ [-Werror=implicit-int] arch/mips/kernel/8250-platform.c:42:1: error: parameter names (without types) in function declaration [-Werror] arch/mips/kernel/8250-platform.c:44:15: error: expected declaration specifiers or ‘...’ before string constant MODULE_AUTHOR("Ralf Baechle "); ^ arch/mips/kernel/8250-platform.c:45:16: error: expected declaration specifiers or ‘...’ before string constant MODULE_LICENSE("GPL"); ^ arch/mips/kernel/8250-platform.c:46:20: error: expected declaration specifiers or ‘...’ before string constant MODULE_DESCRIPTION("Generic 8250 UART probe driver"); ^ arch/mips/kernel/8250-platform.c:37:81: error: ‘uart8250_init’ defined but not used [-Werror=unused-function] static int __init uart8250_init(void) ^ cc1: all warnings being treated as errors scripts/Makefile.build:267: recipe for target 'arch/mips/kernel/8250-platform.o' failed make[2]: *** [arch/mips/kernel/8250-platform.o] Error 1 Fixes: 848484e2c412 ("mips: remove needless include of module.h from core kernel files.") Signed-off-by: Tiezhu Yang --- v2: - No changes arch/mips/kernel/8250-platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/8250-platform.c b/arch/mips/kernel/8250-platform.c index 5c6b2ab..cbf3fe2 100644 --- a/arch/mips/kernel/8250-platform.c +++ b/arch/mips/kernel/8250-platform.c @@ -5,6 +5,7 @@ * * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) */ +#include #include #include -- 2.1.0