Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756142Ab2HFM3h (ORCPT ); Mon, 6 Aug 2012 08:29:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31215 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756101Ab2HFM3g (ORCPT ); Mon, 6 Aug 2012 08:29:36 -0400 From: Cong Wang To: linux-kernel@vger.kernel.org Cc: Andrew Morton , WANG Cong , Akinobu Mita , Joern Engel , Christoph Lameter , Pekka Enberg Subject: [Patch] string: do not export memweight() to userspace Date: Mon, 6 Aug 2012 20:29:15 +0800 Message-Id: <1344256158-20358-1-git-send-email-amwang@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 29 From: WANG Cong This patch fixes the following warning: usr/include/linux/string.h:8: userspace cannot reference function or variable defined in the kernel Cc: Akinobu Mita Signed-off-by: WANG Cong --- diff --git a/include/linux/string.h b/include/linux/string.h index ffe0442..b917881 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -144,8 +144,8 @@ static inline bool strstarts(const char *str, const char *prefix) { return strncmp(str, prefix, strlen(prefix)) == 0; } -#endif extern size_t memweight(const void *ptr, size_t bytes); +#endif /* __KERNEL__ */ #endif /* _LINUX_STRING_H_ */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/