Re: [PATCH 4/5 RFC] IB/mad: Add umad trace points

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ira,

[auto build test results on v4.3-rc3 -- 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 >>)

>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] qpn
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] qpn
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] qkey
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] qkey
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] lid
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] lid
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] flow_label
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] flow_label
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] mad_status
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] status
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] class_specific
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] class_specific
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned long long [unsigned] [usertype] tid
   include/trace/events/ib_umad.h:42:1:    got restricted __be64 [usertype] tid
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] attr_id
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] attr_id
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] attr_mod
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] attr_mod
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] qpn
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] qpn
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] qkey
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] qkey
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] lid
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] lid
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] flow_label
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] flow_label
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] mad_status
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] status
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] class_specific
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] class_specific
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned long long [unsigned] [usertype] tid
   include/trace/events/ib_umad.h:42:1:    got restricted __be64 [usertype] tid
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned short [unsigned] [usertype] attr_id
   include/trace/events/ib_umad.h:42:1:    got restricted __be16 [usertype] attr_id
>> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
   include/trace/events/ib_umad.h:42:1:    expected unsigned int [unsigned] [usertype] attr_mod
   include/trace/events/ib_umad.h:42:1:    got restricted __be32 [usertype] attr_mod

vim +42 include/trace/events/ib_umad.h

    26	 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
    27	 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    28	 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    29	 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    30	 * SOFTWARE.
    31	 *
    32	 */
    33	
    34	#undef TRACE_SYSTEM
    35	#define TRACE_SYSTEM ib_umad
    36	
    37	#if !defined(_TRACE_IB_UMAD_H) || defined(TRACE_HEADER_MULTI_READ)
    38	#define _TRACE_IB_UMAD_H
    39	
    40	#include <linux/tracepoint.h>
    41	
  > 42	DECLARE_EVENT_CLASS(ib_umad_write_template,
    43		TP_PROTO(struct ib_umad_file *file, struct ib_user_mad *mad),
    44		TP_ARGS(file, mad),
    45	
    46		TP_STRUCT__entry(
    47			__array(char,           dev_name, IB_DEVICE_NAME_MAX )
    48			__field(u8,             port_num                     )
    49	
    50			__field(u32,            id                           )

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux