Hi Mike,
I too had this same issue. Below is a quote from what I found and how I got it compiling. I am still waiting for a developer response, as I wanted to make sure the correct information gets passed to the function.
>> Compilation broke on commit: 30f956c32c235e6b5fa77fb29965ababbd497561,
>> Jul 22, 2014. Not all functions were updated for the new discard parameter.
>> Here are the following that have been missed that discard parameter:
>> fs/yaffs2/yaffs_vfs.c:2205: error: too few arguments to function
>> ‘yaffs_flush_whole_cache’
>> fs/yaffs2/yaffs_vfs.c:751: error: too few arguments to function
>> ‘yaffs_flush_file’
>> fs/yaffs2/yaffs_vfs.c:781: error: too few arguments to function
>> ‘yaffs_flush_file’
>> fs/yaffs2/yaffs_vfs.c:2192: error: too few arguments to function
>> ‘yaffs_flush_file’
>>
>> Simply adding the extra discard parameter to these functions makes
>> compilation work. What is the proper number to pass to each? I added a "1"
>> to each for the sake of getting this compiling in my code, but want to make
>> sure that the correct parameter gets passed into the functions.