From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EAE02C433F5 for ; Tue, 3 May 2022 03:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Fmf361Zua93x/LRzqCDwXH9J0yCtwurw7oYsvW0/EYM=; b=X2ZTDbYAQCxvn+ dh767Cju1DjJLv/izJ0KsHIUXRBzvpkkzqOWC1trfwZHw6uXgOmAchL66+cOT0lBktJ61MZCL2GZE lJVFmIygyM6MB9Y9z7wlXNmWs9NhkcckstalyCP4qKhGNKx7S/LEF/kZ3g7ksB50X2QCm+7f9l3A6 z/nU403Y59PnUJsc4EwsfEDb0PqEv7qxBo+k8ClwSY0BeQGvmh2xJrURo23VVe87kz7x9duQTzLVn DoWP74e0Y2mfxSstENPTJ3P3ecVdd3rEq0AkfFAcsBSaWjiRGscuWw/QxJIPANkJ8mBaMliyv3PCD SWibOFwpV63ug//WCKbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlitk-003Wqw-As; Tue, 03 May 2022 03:08:24 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlitg-003WpG-Bh; Tue, 03 May 2022 03:08:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651547300; x=1683083300; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QhCZIg9TqfRkZJDSFzHBxZAoXeT7GzvUzfL6hRZHXoc=; b=n62eYYRLTmeaNpjL428ebD5iKONLDy9lneOzM2gVl5BsUE9A/hAnVvR2 b1K/HIZY9MF41y/e6dEc5ggX9vtQ1lLWTaSd2OovbCF4t7IjZ4xvteue1 +tZgch0NgqOCLMWTgouNin9mY5Ju9DrjyVKKHglzYTp8wPSEOFltB/k4E TxYzR/isGQ4/YXLWamhRdWQig6mVh8YVw85jhvCMi4HcobgcmlIGJ18LE 0om5nN3dQqF5gJHx1tyR7mpTnAgNJvW2RPqNO12vRWefFSFznUOUcFLDp pb0ygDOvQV8G6gMnYb6Z2a0kHoi+SvTE8BR+5pEBLPjxMQqqruhtgyjx9 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="264976245" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="264976245" 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-Disposition: inline In-Reply-To: <20220419133616.544255-1-trix@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_200820_515661_F6A8BB9C X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel