Manoj Gupta <manoj334@xxxxxxxxx> wrote: > Change > char *memory_buffer[]; > to > char *memory_buffer; sri <bskmohan@xxxxxxxxx> wrote: > But can you explain why that change worked? The change works because kmalloc returns the address of allocated memory that is pointer to a character array rather than returning a character array. In general functions return pointers to arrays, which are not typically passed by value in C. But what the heck does "error: 'memory_buffer' has an incomplete type" mean anyway? I'm always puzzled by that error message, and I am a native English speaker! Experience has shown that "has an incomplete type" does mean incorrect assignment to a pointer, but I can't guess what an "incomplete type" is! -- Alison Chaiken (650) 279-5600 (cell) http://www.exerciseforthereader.org/ The only real deadline in life is the one where you actually die. -- Eliot D. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ