Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp231781rwi; Tue, 25 Oct 2022 23:33:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM47yeKCiLyo0dCGVvu3lKeSa4r6D7WLmhnJRdKImI3HFZmnCVNkfcfU0pH7P5Eny/Rc6B5I X-Received: by 2002:a17:902:d502:b0:185:4eaf:fb0f with SMTP id b2-20020a170902d50200b001854eaffb0fmr42829935plg.139.1666765997590; Tue, 25 Oct 2022 23:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666765997; cv=none; d=google.com; s=arc-20160816; b=JzDzFxdPTiuJH1bqKICzgVEFMOmzYfOF8d6UKmOd6ERF0RMDOaw1mRWyNi7F4nkJ2g KQMblziYs2ltaN2WWkegrFqXtbFbdLFLz17nyB67AK7eh1dR4Rlcizul9A4/MWX4tv1C wP9Xlajfe66YfQ9LMlqOQvSY5lQwucHEF/ZUSEZnj1wkd6RyrHLrLh6aeGj5fwY3yt8F 2izsgqO/5qEHV8r4UYGmZ6gTf7ewzvqnGnt7XGywDRgKIT0jeBSUr4lmX+YIqSB5B7FO uZcvETDUnlDWL9xz+/OroVVe7IInSogd134N31y5J2coOgYl2tfHPd7Yt4Io1HRaA1gG l1aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=W0D/wNLNwB4FVFy/oXpbKCWClTLD5X4bNAE/sco/AwA=; b=hvx4xqZyRH81W7QVx0n1zELMJ60tcnzQaauE6XTs8HOOTEmf5WVWe9nbd2WAup350x UvTB11e06i7baqgesFgjXz0DF9Xl/lw2D8W2kPhzce9qN8X2WjmasRW/3mAN/3mfKkOx sV82N8slUIJ/tPnzfCFqKA/+/gFsYVjGps2Wy20vxc8tL741nKafdvpbQ0HiGe9KXdzS ivWFUHnhOe2I13GhLp8nAttjC0Mq3i9M2eWc8LMhBsXPMB+ssoUHgOSLawJxjPLIRzp2 y017WQe+/R/TRn7d38KcsqAhmSReF1WL9wqzOr6l3ghtcdHeGo5C8tO1ZDsw5kq+rloZ GsFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ozLJGl5b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a631604000000b0046f0ae1bb7dsi5615291pgl.170.2022.10.25.23.33.06; Tue, 25 Oct 2022 23:33:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ozLJGl5b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232807AbiJZFt2 (ORCPT + 99 others); Wed, 26 Oct 2022 01:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbiJZFt0 (ORCPT ); Wed, 26 Oct 2022 01:49:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 200BAA4BB7 for ; Tue, 25 Oct 2022 22:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:Subject:From:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=W0D/wNLNwB4FVFy/oXpbKCWClTLD5X4bNAE/sco/AwA=; b=ozLJGl5boMBQDde7jg4mdemheF BiFPw7n7LJy5+Mp5WY6cft/54Cht9w+6vWNBLZOZl98GXKPrGEemL0GaXj+8EPPtxhvFH/sUuMG1B E0PfUS/ywl8+2sBEsT/un7wrFTgBg8UImGS/17EP7LmdZkyOJw2SJY2Cbs2nyMYvOH74x78AzpqFy fRISUHyuUeW0laArhvypwxo+sGeIHDBxPSWrwg7iMUpbW71FOQw+O+R3mrXzmV7VmeKasxZP5QPKE X6/1MBT4g5wWTq3STn/2xe63x++BcJ8mlvdvCLo2KxqKjQ5i91Z0MuVJ3sdrkeqC1wQHU5JLXgbTJ WBZgxObQ==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1onZHv-0082fO-R2; Wed, 26 Oct 2022 05:49:16 +0000 Message-ID: Date: Tue, 25 Oct 2022 22:49:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 From: Randy Dunlap Subject: Re: drivers/net/ethernet/renesas/rswitch.c:355:71: warning: left shift count >= width of type To: kernel test robot , Yoshihiro Shimoda Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org References: <202210222356.2lAehSmv-lkp@intel.com> Content-Language: en-US In-Reply-To: <202210222356.2lAehSmv-lkp@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham 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 k.t.r., On 10/22/22 08:23, kernel test robot wrote: > tree: https://github.com/intel-lab-lkp/linux/commits/Yoshihiro-Shimoda/net-phy-marvell10g-Add-host-speed-setting-by-an-ethernet-driver/20221020-091402 > head: 54882d9015d6bc070075b3ab4eab5cf4d75cf56e > commit: 77bfe15a20a8c80e2150e86970e1157acfca24f8 net: ethernet: renesas: Add Ethernet Switch driver > date: 3 days ago > config: parisc64-allyesconfig The attached .config file does not contain "CONFIG_64BIT". How did you generate it? (more below) > compiler: hppa-linux-gcc (GCC) 12.1.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/77bfe15a20a8c80e2150e86970e1157acfca24f8 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Yoshihiro-Shimoda/net-phy-marvell10g-Add-host-speed-setting-by-an-ethernet-driver/20221020-091402 > git checkout 77bfe15a20a8c80e2150e86970e1157acfca24f8 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/media/platform/chips-media/ drivers/net/ethernet/renesas/ drivers/staging/vt6655/ For 64BIT parisc builds, it would be better to use ARCH=parisc64 See 805ce8614958: parisc: Allow CONFIG_64BIT with ARCH=parisc and 3dcfb729b5f4: parisc: Make CONFIG_64BIT available for ARCH=parisc64 only To use only ARCH=parisc, you must ensure that both PA8X00=y and 64BIT=y in the .config file. > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > drivers/net/ethernet/renesas/rswitch.c: In function 'rswitch_ext_desc_get_dptr': >>> drivers/net/ethernet/renesas/rswitch.c:355:71: warning: left shift count >= width of type [-Wshift-count-overflow] > 355 | return __le32_to_cpu(desc->dptrl) | (dma_addr_t)(desc->dptrh) << 32; > | ^~ > drivers/net/ethernet/renesas/rswitch.c: In function 'rswitch_ext_ts_desc_get_dptr': > drivers/net/ethernet/renesas/rswitch.c:367:71: warning: left shift count >= width of type [-Wshift-count-overflow] > 367 | return __le32_to_cpu(desc->dptrl) | (dma_addr_t)(desc->dptrh) << 32; > | ^~ > > > vim +355 drivers/net/ethernet/renesas/rswitch.c > > 352 > 353 static dma_addr_t rswitch_ext_desc_get_dptr(struct rswitch_ext_desc *desc) > 354 { > > 355 return __le32_to_cpu(desc->dptrl) | (dma_addr_t)(desc->dptrh) << 32; > 356 } > 357 > -- ~Randy