[PATCH] staging: emxx_udc: Use min_t instead of min

Daniel Baluta daniel.baluta at gmail.com
Mon Sep 29 23:38:22 EEST 2014


On Mon, Sep 29, 2014 at 11:24 PM, Georgiana Chelu
<georgiana.chelu93 at gmail.com> wrote:
>
>
> On 29 September 2014 23:02, Daniel Baluta <daniel.baluta at gmail.com> wrote:
>>
>> On Mon, Sep 29, 2014 at 10:19 PM, Georgiana Chelu
>> <georgiana.chelu93 at gmail.com> wrote:
>> > I compiled the code and nothing was broken.
>> > There is no difference between compiling with and without first
>> > argument.
>>
>> Please use bottom/interleaved posting.
>>
>> If this code compiles on your machine then you are doing something wrong:
>>
>> daniel at ixhome:~/repos/staging$ make drivers/staging/emxx_udc/emxx_udc.ko
>>   CHK     include/config/kernel.release
>>   CHK     include/generated/uapi/linux/version.h
>>   CHK     include/generated/utsrelease.h
>>   CALL    scripts/checksyscalls.sh
>>   CC      drivers/staging/emxx_udc/emxx_udc.o
>> drivers/staging/emxx_udc/emxx_udc.c: In function ‘_nbu2ss_epn_out_data’:
>> drivers/staging/emxx_udc/emxx_udc.c:974:51: error: macro "min_t"
>> requires 3 arguments, but only 2 given
>> drivers/staging/emxx_udc/emxx_udc.c:974:14: error: ‘min_t’ undeclared
>> (first use in this function)
>> drivers/staging/emxx_udc/emxx_udc.c:974:14: note: each undeclared
>> identifier is reported only once for each function it appears in
>> make[1]: *** [drivers/staging/emxx_udc/emxx_udc.o] Error 1
>> make: *** [drivers/staging/emxx_udc/emxx_udc.ko] Error 2
>>
>> Daniel.
>>
>
> Yes, something is wrong.  I compiled the kernel
> from root with "make -jX" and everything was fine.
> Next time I will compile the module.

I guess your driver is not selected for compilation from menuconfig.

Run this, instead:  make drivers/staging/emxx_udc/emxx_udc.ko
from the root of your linux tree.


More information about the firefly mailing list