From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751319AbdFXHXb (ORCPT ); Sat, 24 Jun 2017 03:23:31 -0400 Received: from terminus.zytor.com ([65.50.211.136]:47381 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbdFXHX3 (ORCPT ); Sat, 24 Jun 2017 03:23:29 -0400 Date: Sat, 24 Jun 2017 00:18:57 -0700 From: tip-bot for Tommy Nguyen Message-ID: Cc: remyabel@gmail.com, mingo@kernel.org, peterz@infradead.org, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Reply-To: peterz@infradead.org, tglx@linutronix.de, hpa@zytor.com, remyabel@gmail.com, mingo@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org In-Reply-To: <20170623143601.GA20743@NoChina> References: <20170623143601.GA20743@NoChina> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cleanups] x86/boot: Add missing strchr() declaration Git-Commit-ID: 6ec829a9d1c8562ac15c50402e5de550bb28161e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 6ec829a9d1c8562ac15c50402e5de550bb28161e Gitweb: http://git.kernel.org/tip/6ec829a9d1c8562ac15c50402e5de550bb28161e Author: Tommy Nguyen AuthorDate: Fri, 23 Jun 2017 10:36:01 -0400 Committer: Ingo Molnar CommitDate: Sat, 24 Jun 2017 08:53:33 +0200 x86/boot: Add missing strchr() declaration The Sparse static analyzer emits this warning: symbol 'strchr' was not declared. Should it be static? This patch adds the appropriate extern declaration to string.h to fix the warning. Signed-off-by: Tommy Nguyen Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20170623143601.GA20743@NoChina Signed-off-by: Ingo Molnar --- arch/x86/boot/string.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/boot/string.h b/arch/x86/boot/string.h index 113588d..f274a50 100644 --- a/arch/x86/boot/string.h +++ b/arch/x86/boot/string.h @@ -22,6 +22,7 @@ extern int strcmp(const char *str1, const char *str2); extern int strncmp(const char *cs, const char *ct, size_t count); extern size_t strlen(const char *s); extern char *strstr(const char *s1, const char *s2); +extern char *strchr(const char *s, int c); extern size_t strnlen(const char *s, size_t maxlen); extern unsigned int atou(const char *s); extern unsigned long long simple_strtoull(const char *cp, char **endp,