Re: [PATCH] leds: leds-fsg: Use devm_led_classdev_register
From: Vaishali Thakkar
Date: Tue Aug 18 2015 - 08:14:35 EST
On Tue, Aug 18, 2015 at 12:57 PM, Jacek Anaszewski
<j.anaszewski@xxxxxxxxxxx> wrote:
> Hi Vaishali,
>
> On 08/18/2015 07:46 AM, Vaishali Thakkar wrote:
>>
>> On Mon, Aug 17, 2015 at 2:02 PM, Vaishali Thakkar
>> <vthakkar1994@xxxxxxxxx> wrote:
>>>
>>>
>>> On 17 Aug 2015 13:57, "Jacek Anaszewski" <j.anaszewski@xxxxxxxxxxx>
>>> wrote:
>>>>
>>>>
>>>> Hi Vaishali,
>>>>
>>>> Thanks for the patch. Unfortunately it causes build break.
>>>> Please fix the issues and resubmit.
>>>
>>>
>>> Oops! I am really very sorry. By mistake I sent a basic version of patch
>>> instead of final one. Thanks for the review.
>>>
>>> I'll send v2 with the fix of that build error.
>>
>>
>> Hi Jacek,
>>
>> Can you please tell me what are those build errors?
>> After looking at my patch, I can expect that as I forgot to
>> remove '.remove = fsg_led_remove' from structure,
>> it can cause an error. Also, there is one typing mistake in
>> function name. So, both of these can be a reason for
>> breaking a build.
>
>
> Those was the errors I experienced too.
>
>> Also to be on safe side, I tried to cross compile it for arm
>> architecture. But to my surprise, it is not compiling properly.
>> So, it would be good if you can point me to the script you
>> used for compilation so that I can check it before sending a new
>> version.
>
>
> I am using arm-linux-gnueabi cross toolchain.
>
> config: arch/arm/configs/ixp4xx_defconfig
>
> Build command:
>
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- all
Ok. Thanks for the information. I was using
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross.
> After fixing the errors compilation succeeded.
> Do you have a hardware to test the modifications against?
Ok. I checked with arm-linux-gnueabi cross toolchain
and fixing these 2 errors allow us to compile the file
successfully.
No, I don't have a hardware to test these modifications.
I think this change should not lead to any breakage. But
yes it is good to test such changes. Can you please test
it for me (if you have a hardware), so that I can send v2
with fixing those errors?
>
> --
> Best Regards,
> Jacek Anaszewski
--
Vaishali
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/