Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3690276ybv; Sun, 16 Feb 2020 03:29:31 -0800 (PST) X-Google-Smtp-Source: APXvYqx2jKZ5VS/7BbITJbhTb/JF8q2brqVtj1Lo/izjfivPvMYG9FjEG2OGJGufVCryapCS7TRM X-Received: by 2002:a9d:6c58:: with SMTP id g24mr9110560otq.229.1581852571154; Sun, 16 Feb 2020 03:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581852571; cv=none; d=google.com; s=arc-20160816; b=yNAb6rM+/vcLkzkWw6rCUIC5KXKEaQpB0MzdZJLqWD2U6uhUQtvGRaUUtjogkp3Zuu k5iPvRvPVcdUt3pn5WEdQ0YWSLHghBrVtUV1xHadoUd6jxBIigEBqjpGvIyhEb8vbo/3 np5ToDRyqFdD3K2Xva14a1t9Vogx+Y/YO89RxiqvMqUUiJD/ewaFnM7Ec0Frz+OeYTUc v65UV45ZntBgcUrqUMU1muemUMj2L68QxrLCNXvQ8OvLz2PEWls6midyLflOVjQN1JIo U5Sm17mQkHlPl2HcoFEbqSZ/iru3DnRrILWCx9oBmBfVJDMtX5qp4ouSkVc+o+W2n1GR 053w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ldWzck2c3LD7o1k5UxrvQt5EP0uHeWJ6qrwVSuPjz8g=; b=je4AvyhnhUzoYDI1gvciL6+uJQjBA1dtL0cG3Ds6AajK2QBCsJqRdZgXJBI0DMoJnF iOdE0u+rMhr/TjIbqd3PIQXgUkvZajgsGeV49CnuMwZR2DMLXARbT50KM4V3Jtv2qiie uLqIk+OlaJkepMVDdkD4Y2nx8mqgu6kgezqXTDw20GBEYieZZv9066lWRZEqO93d7dU3 t302H4qiaGALs3E6pdKo+cVvVxqevloOMflfWyBGqro29NsYjQq59VsHtZCk9sWamXfQ nGcic3FoSQN2qH6HEfBD52WnrIFzqS/POXvxdocFBTGraQTJ1SyrD2L+UQMoR6PA1TRJ Y5Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eV54L2NJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si5652823otv.149.2020.02.16.03.29.16; Sun, 16 Feb 2020 03:29:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eV54L2NJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbgBPL2h (ORCPT + 99 others); Sun, 16 Feb 2020 06:28:37 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36142 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgBPL2h (ORCPT ); Sun, 16 Feb 2020 06:28:37 -0500 Received: by mail-pl1-f195.google.com with SMTP id a6so5602501plm.3 for ; Sun, 16 Feb 2020 03:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ldWzck2c3LD7o1k5UxrvQt5EP0uHeWJ6qrwVSuPjz8g=; b=eV54L2NJyt+0NF3drKExSE/tx4A9tnD0dAqd1eqHAFsqWTmUtoffDKEWl76y7/zNXm SC39jU4/Ky4laA6B5D9NBAWJSvL4JLYVBes84KZNRmXFRn2Z/KIe8IkBgUBM9+c5SWok qhTwuvMSOtlwB9BbSpOmdkmQJ+322u2dcBifFWQRIdqakn6uOF4wIbchS8z9JnOtzPO/ 4wQNrB9YxIrgST6GWx3rmX7DIST0gi6ABpiguqwH+q/w/gUUeWshFTNjbOcFcZPN8Dyp w0QR2uTavcyxsnxptdj2NLXO+ovpaGETfDRACrcPwRS4spzKjhJcQ8JAs/ZCA7j5nWXE 2Ggg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ldWzck2c3LD7o1k5UxrvQt5EP0uHeWJ6qrwVSuPjz8g=; b=hT8lJ3rOAF5WRyTexLPMXyPYGKkV0A5igQOkYQptvCY48rs30liXWIGN5UZS5nSusk r1Hrh2GZHEqMIzYIlvrxqD9SdeNMRGQorkCu9DLiBs4AUlEHT9lSdnlMMiQDXPo8eo8w 05d3wklxPBxztLNBYXE7RFABny4gGKuZUSgMAKfRIdwiPwA8b3IAknY5HRDD+xXbS71B vRP5ZHh5XVkGdXW+Zt8Vg6FSRHiJJzIs6FETQtdfNOfIiAnuctIz3ggYbAIk8uOLwt2m qaGPBdNEXKnXegbLC6JVVqz5IGTTGh4hTZVf6zgzfpDZqtmXMr7EUKZ1jMbpyzXkMqA5 IaUA== X-Gm-Message-State: APjAAAXxW1b4CvSN/eMdZDcb3Dv8IOpSGuRUFe3kT5JiqlvYrRgdgnSW dshmC2bleTSs5MMJLVuZrJQ= X-Received: by 2002:a17:902:7009:: with SMTP id y9mr11659769plk.254.1581852516699; Sun, 16 Feb 2020 03:28:36 -0800 (PST) Received: from VM_0_35_centos.localdomain ([150.109.62.251]) by smtp.gmail.com with ESMTPSA id a19sm12658783pju.11.2020.02.16.03.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Feb 2020 03:28:36 -0800 (PST) From: Qiujun Huang To: akpm@linux-foundation.org Cc: mhiramat@kernel.org, rostedt@goodmis.org, keescook@chromium.org, rppt@linux.ibm.com, linux@dominikbrodowski.net, nivedita@alum.mit.edu, nadav.amit@gmail.com, glider@google.com, linux-kernel@vger.kernel.org, Qiujun Huang Subject: [PATCH] init/main.c: mark boot_config_checksum static Date: Sun, 16 Feb 2020 19:28:31 +0800 Message-Id: <1581852511-14163-1-git-send-email-hqjagain@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In fact, this function is only used in this file, so mark it with 'static'. Signed-off-by: Qiujun Huang --- init/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index f95b014..534589f 100644 --- a/init/main.c +++ b/init/main.c @@ -335,7 +335,7 @@ static char * __init xbc_make_cmdline(const char *key) return new_cmdline; } -u32 boot_config_checksum(unsigned char *p, u32 size) +static u32 boot_config_checksum(unsigned char *p, u32 size) { u32 ret = 0; -- 1.8.3.1