Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752550AbXJWEjE (ORCPT ); Tue, 23 Oct 2007 00:39:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751578AbXJWEix (ORCPT ); Tue, 23 Oct 2007 00:38:53 -0400 Received: from rex.snapgear.com ([203.143.235.140]:58867 "EHLO snapgear.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751113AbXJWEiw (ORCPT ); Tue, 23 Oct 2007 00:38:52 -0400 Date: Tue, 23 Oct 2007 14:37:54 +1000 From: Greg Ungerer Message-Id: <200710230437.l9N4bsNp001786@goober> To: torvalds@linux-foundation.org Subject: [M68KNOMMU]: define __clear_user macro Cc: gerg@uclinux.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1030 Lines: 31 From: Matt Waddel Define __clear_user macro, consistent with other architectures. fs/signalfd.c won't compile without it. Signed-off-by: Greg Ungerer --- diff -Naurp linux-2.6.23/include/asm-m68knommu/uaccess.h linux-2.6.23-uc0/include/asm-m68knommu/uaccess.h --- linux-2.6.23/include/asm-m68knommu/uaccess.h 2007-10-19 10:21:31.000000000 +1000 +++ linux-2.6.23-uc0/include/asm-m68knommu/uaccess.h 2007-10-19 10:32:28.000000000 +1000 @@ -170,10 +170,12 @@ static inline long strnlen_user(const ch */ static inline unsigned long -clear_user(void *to, unsigned long n) +__clear_user(void *to, unsigned long n) { memset(to, 0, n); return 0; } +#define clear_user(to,n) __clear_user(to,n) + #endif /* _M68KNOMMU_UACCESS_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/