[alsa-devel] [PATCH 1/7] ALSA: firewire-tascam: add skeleton for TASCAM FireWire series

kbuild test robot lkp at intel.com
Thu Oct 1 15:54:54 CEST 2015


Hi Takashi,

[auto build test results on next-20151001 -- if it's inappropriate base, please ignore]

reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> sound/firewire/tascam/tascam.c:23:16: sparse: cast to restricted __be32
>> sound/firewire/tascam/tascam.c:23:16: sparse: cast to restricted __be32
>> sound/firewire/tascam/tascam.c:23:16: sparse: cast to restricted __be32
>> sound/firewire/tascam/tascam.c:23:16: sparse: cast to restricted __be32
>> sound/firewire/tascam/tascam.c:23:16: sparse: cast to restricted __be32
>> sound/firewire/tascam/tascam.c:23:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:25:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:25:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:25:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:25:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:25:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:25:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:30:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:30:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:30:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:30:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:30:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:30:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:32:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:32:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:32:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:32:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:32:16: sparse: cast to restricted __be32
   sound/firewire/tascam/tascam.c:32:16: sparse: cast to restricted __be32

vim +23 sound/firewire/tascam/tascam.c

     7	 */
     8	
     9	#include "tascam.h"
    10	
    11	MODULE_DESCRIPTION("TASCAM FireWire series Driver");
    12	MODULE_AUTHOR("Takashi Sakamoto <o-takashi at sakamocchi.jp>");
    13	MODULE_LICENSE("GPL v2");
    14	
    15	static int check_name(struct snd_tscm *tscm)
    16	{
    17		struct fw_device *fw_dev = fw_parent_device(tscm->unit);
    18		char vendor[8];
    19		char model[8];
    20		__u32 data;
    21	
    22		/* Retrieve model name. */
  > 23		data = be32_to_cpu(fw_dev->config_rom[28]);
    24		memcpy(model, &data, 4);
    25		data = be32_to_cpu(fw_dev->config_rom[29]);
    26		memcpy(model + 4, &data, 4);
    27		model[7] = '\0';
    28	
    29		/* Retrieve vendor name. */
    30		data = be32_to_cpu(fw_dev->config_rom[23]);
    31		memcpy(vendor, &data, 4);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the Alsa-devel mailing list