Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp291994iob; Mon, 2 May 2022 20:08:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ0RhNr+73PlNjCL1fueb2JEexfWqogLdLiYpkvajvEgsmLPmFgGpJe/Ijj4HAfzb+LGUc X-Received: by 2002:a05:6a00:cc5:b0:50d:8253:87fd with SMTP id b5-20020a056a000cc500b0050d825387fdmr14426227pfv.19.1651547313475; Mon, 02 May 2022 20:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651547313; cv=none; d=google.com; s=arc-20160816; b=OUX6feDTKgWaDdOry/Sd7EBegn2rxrAxx5rafr5LSfz+Hvy9EJ4J5YkSPuwBivx6zA oOiO9oTZUYASJOEMPvKvDrsJTU8WsF8IzWMDIHIL7dnF30dtIyJtOukJRXi4MSVXsGn5 vyECrk/h36EiBHGFv4DaV7KdqW7WgBgBsYWHc9fp0lfASoEzV/P4A6cXCEPygOTy/Z8K GRY/CHpKAEZFuQbYUtSQzTDBL9PHnXV0YzkK6kSZX/+YEKfvje6A+934DAQm+os8Qelj sy+urzkAYJ3TH/S9EkLWhQMgUseeGzW5gY9iXqWPkMMUGAM6nLV3d8U1dLcndp+h8y7u ZMCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FKGJs4UAKKwz5C8pn6aAsrZK3jvAoJrZC2kI6ccURW0=; b=X7Y3Fe7vExPG0Qp+AYo9eCCzweGgwL41Zy4wjcUpnEJwJbGsPbZJ8UFxaMh1KQXSgx jG3TgAFhgoZBO4GcYT8XLxqs+h8yZy2HMIPk+2KstuAr+lkuTNVI9e1vtknIbUSzn94e 1O0/aip5HBaq/XmeCkuG4l4aF3htvgSkvx2XnQqiVHjW9EuG4wpxmkMlm6EQ9yCerP+q D7AqxspuJL8s62DpZxgS3DFuj0x/SpKzmlNrL2FZ2YGBOAuoc94Wppg78s9TfjG5o9Su eUX9xrKY6dbibERV0eTN0+sRYVZemrvGMbSEcXdiKSjd84N76wVm75OQnRCTczVi2Y6g cPrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bLvaBn6E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r184-20020a632bc1000000b0039d20aca3f3si16009751pgr.431.2022.05.02.20.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 20:08:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bLvaBn6E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39C3C3980A; Mon, 2 May 2022 20:08:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbiECDLy (ORCPT + 99 others); Mon, 2 May 2022 23:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbiECDLt (ORCPT ); Mon, 2 May 2022 23:11:49 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 905A4387AE for ; Mon, 2 May 2022 20:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651547298; x=1683083298; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QhCZIg9TqfRkZJDSFzHBxZAoXeT7GzvUzfL6hRZHXoc=; b=bLvaBn6Epi9U+KZ/TAdpiDajqoQVjvffnnoaauBVl1joNIWhAF9aBRLe AlS3t5A6G/+xQ9kjQ3jnqWHVHaN+eH2v4D52VAyqkvdL+r4eS1cN2tjTF P3jsmwuZdRG5dTpaW4FLByR0VUQM2zUkpqfaKpz8wnG8vYsEAkLJ+/z14 dP2EKj9zrmpOhc9BDrHG3CBieVAOMGNUeOa2Lrn2yjZslH2H99tJ18YJy T1kVuyGN2N8YY58y9qrF5ZkOr7iwgSqfJVjPt77LDV4DYl59L7L7ZK0cV xMMxzQ6xcqKFetlwkVhryhLnNcWiqNOgboROaeuf/j4yFsi1mX5kZGEAP g==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="264976244" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="264976244" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 20:08:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="733744061" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 02 May 2022 20:08:15 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nlita-000A6W-Gk; Tue, 03 May 2022 03:08:14 +0000 Date: Tue, 3 May 2022 11:07:38 +0800 From: kernel test robot To: Tom Rix , nsaenz@kernel.org, bcm-kernel-feedback-list@broadcom.com, gregkh@linuxfoundation.org, stefan.wahren@i2se.com, gascoar@gmail.com, ojaswin98@gmail.com Cc: kbuild-all@lists.01.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tom Rix Subject: Re: [PATCH v2] staging: vchiq_arm: change vchiq_platform_init from global to static Message-ID: <202205031150.FRdwOUbC-lkp@intel.com> References: <20220419133616.544255-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220419133616.544255-1-trix@redhat.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Tom-Rix/staging-vchiq_arm-change-vchiq_platform_init-from-global-to-static/20220419-213849 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git bed6d200f8ca38e1ecbdd8fb7e0564884002abd1 config: openrisc-buildonly-randconfig-r003-20220501 (https://download.01.org/0day-ci/archive/20220503/202205031150.FRdwOUbC-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/36525447e8cdf4a25d5217bffc548768c0f7cec1 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Tom-Rix/staging-vchiq_arm-change-vchiq_platform_init-from-global-to-static/20220419-213849 git checkout 36525447e8cdf4a25d5217bffc548768c0f7cec1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=openrisc SHELL=/bin/bash drivers/staging/vc04_services/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:16: In function 'memcpy_to_page', inlined from 'free_pagelist' at drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:434:4: >> include/linux/highmem.h:353:9: warning: argument 2 null where non-null expected [-Wnonnull] 353 | memcpy(to + offset, from, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/string.h:20, from include/linux/bitmap.h:11, from include/linux/cpumask.h:12, from include/linux/mm_types_task.h:14, from include/linux/mm_types.h:5, from include/linux/buildid.h:5, from include/linux/module.h:14, from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:8: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c: In function 'free_pagelist': arch/openrisc/include/asm/string.h:9:14: note: in a call to function 'memcpy' declared 'nonnull' 9 | extern void *memcpy(void *dest, __const void *src, __kernel_size_t n); | ^~~~~~ In file included from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:16: In function 'memcpy_to_page', inlined from 'free_pagelist' at drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:441:4: >> include/linux/highmem.h:353:9: warning: 'memcpy' offset 0 is out of the bounds [0, 0] [-Warray-bounds] 353 | memcpy(to + offset, from, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +353 include/linux/highmem.h bb90d4bc7b6a53 Ira Weiny 2021-02-09 346 bb90d4bc7b6a53 Ira Weiny 2021-02-09 347 static inline void memcpy_to_page(struct page *page, size_t offset, bb90d4bc7b6a53 Ira Weiny 2021-02-09 348 const char *from, size_t len) bb90d4bc7b6a53 Ira Weiny 2021-02-09 349 { 61b205f579911a Ira Weiny 2021-02-09 350 char *to = kmap_local_page(page); bb90d4bc7b6a53 Ira Weiny 2021-02-09 351 ca18f6ea012bf3 Ira Weiny 2021-02-10 352 VM_BUG_ON(offset + len > PAGE_SIZE); bb90d4bc7b6a53 Ira Weiny 2021-02-09 @353 memcpy(to + offset, from, len); 8dad53a11f8d94 Christoph Hellwig 2021-07-23 354 flush_dcache_page(page); 61b205f579911a Ira Weiny 2021-02-09 355 kunmap_local(to); bb90d4bc7b6a53 Ira Weiny 2021-02-09 356 } bb90d4bc7b6a53 Ira Weiny 2021-02-09 357 -- 0-DAY CI Kernel Test Service https://01.org/lkp