Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2293891pxu; Fri, 9 Oct 2020 12:53:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6PlT3Cp2U0hT8/xC+RGstvOZk69usOM2+suuIpULRP/v8akZsodHlK3RRuXQwB7fZ+nAN X-Received: by 2002:a17:906:7113:: with SMTP id x19mr16032516ejj.59.1602273204104; Fri, 09 Oct 2020 12:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602273204; cv=none; d=google.com; s=arc-20160816; b=PrAsyl+uj/bJiM6WlM2B8nHmgYn7pFV+c42pUKF7Ifgsb8KD4M4ucEAoMJVxfFUNfd KKURsX+xLkg3bBT5ts6zux1OTdNYYmaqaif6e8xZpvfts/KqYBhGRmkBnaSEHllFhKaE RimrMZOowLe6pgiKlCr1tgn0BCy196SZ9ySyIDTNH2gU3QVfhCk2HUdSQ94vjn8DL732 +tesTZvBQmYtfsyd4oawyDMNjJ6UXj/BE6f1Cn0DKsgPOeCjwUDHMoQHe44KnxucISJd yDXZqh7IDO6yg+TT6ljdVQaBDumrHO0l5CtzAbzMJoP/+IywTFs2UmVDJIY4fIr0Haok D+kw== 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=9Wo3GQt6leaI+dEFdoiBhU3rEXywu8hm1tVt2jcDCuE=; b=pANDuGBzmY/wpWc5Iz/QnAA2VQwWk9PtTRcN8cQ2+21ltpE6itdEBGmjQwSd2Ahb8t 6uVBWuCMN3sG+GtDQaFQglVZ0rjvGgeNhRCN0cz1yuTJIwE8/s1irmH988Ag/VVMOYHY D9/Soq+yCEs15WpSjoHz1+e2Q7ERRcBmj+zLVsjcnq5VVjje6zlGxEQ7DbQVHh5jHRaZ ICLrztko9i6URhc77MBeuYRAOksvAAKwyIIR9DR8D7nKd9T8TO8jo24lBfcsplT5uZ2L mMcyPc1xJgO5TFf8Rj1QiLpWN8CWaA8Pdc2XsNd97xT8hC8q3yLVE8vmRiJE/bthmuoa Rl8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gaLYRn5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si6690500ejf.257.2020.10.09.12.53.00; Fri, 09 Oct 2020 12:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gaLYRn5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389600AbgJIQT2 (ORCPT + 99 others); Fri, 9 Oct 2020 12:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389523AbgJIQT2 (ORCPT ); Fri, 9 Oct 2020 12:19:28 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4B18C0613D2 for ; Fri, 9 Oct 2020 09:19:27 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id o18so9956819edq.4 for ; Fri, 09 Oct 2020 09:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9Wo3GQt6leaI+dEFdoiBhU3rEXywu8hm1tVt2jcDCuE=; b=gaLYRn5XMJhSd0yMPv/fSjokN8gSCgwk0c/hem9RD2l1v29pBVmvoANsxAznEzHXgW MtpsvrreNA/R9j9avZPwrpgrdtlOvNVEt8c19t32tNTg2Btu+RXZyq9oUQUlngFyB/tN h0BCE67KWAX9Y6EI+TSdqiVVI1Jw/s+WddjGHsQb68xF9zEEGuBVROSg4fEmrt4j8yk9 djaytII6T38DGObIhkdRd113DdzrT8j+jxHxZZyA0C+UvrkUekucZje20qXff0P6M4jm HfR0i0VhEOBMkFs2lcu2JZtzLdViTX6iNMfPJNa5xtm8BsLGhq4Ip57/Q89MImFrWo1H PSjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9Wo3GQt6leaI+dEFdoiBhU3rEXywu8hm1tVt2jcDCuE=; b=gtO8Hpg2Dbc++mXGbDsZVZ/l7TSwgJ1f3C2KtKLBU1rdMnBMOqyL9aOjScoGK4aQwK Ox9OqeiYc+0vYTRnP8/4mDT8be0KGBQ7ORjExqV3utkw9IHU02lIQ1Ez8uPWSlFNS390 bM3EysJTftCqWDtwhkn3gjZhMz4p1gt+B/cPH61pNhClYnHvT+aOWZhmxiEI6xW5cfZ/ 0Kkwy/JLsR4hOIFmyZO0Zd0oZiJ+gCKPuz3j3f4yitW5/QJyOrxY0NBfeBHbzNJbM5fg UQ2/rN75Q0ICUCUX7+H94dGCISljY6hOFDGtWDkSWRymJujAsSpBEBgIkbLoU2hwWEfj e6Hw== X-Gm-Message-State: AOAM533qmvyr1P7Ga5C/JLnCqF4uxkHvjEH+DTCoTq0uFvzd5ftG4Jy2 Hyq0gnXPbjlSU99OV4fh0LYyxvroIH8= X-Received: by 2002:a50:abc3:: with SMTP id u61mr15176759edc.253.1602260365676; Fri, 09 Oct 2020 09:19:25 -0700 (PDT) Received: from ltop.local ([2a02:a03f:b7fe:f700:b916:75c5:e328:ad7c]) by smtp.gmail.com with ESMTPSA id t4sm6552821ejj.6.2020.10.09.09.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 09:19:24 -0700 (PDT) Date: Fri, 9 Oct 2020 18:19:24 +0200 From: Luc Van Oostenryck To: kernel test robot Cc: kbuild@lists.01.org, Dan Carpenter , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: Re: sound/pci/au88x0/au88x0_core.c:2029 vortex_adb_checkinout() warn: signedness bug returning '(-22)' Message-ID: <20201009161924.wc4omcb22ppaqcx2@ltop.local> References: <20201009120043.GL1042@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201009120043.GL1042@kadam> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 09, 2020 at 03:00:43PM +0300, kernel test robot wrote: > Hi Luc, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: c85fb28b6f999db9928b841f63f1beeb3074eeca > commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH > config: powerpc64-randconfig-m031-20201008 (attached as .config) > compiler: powerpc-linux-gcc (GCC) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > New smatch warnings: > sound/pci/au88x0/au88x0_core.c:2029 vortex_adb_checkinout() warn: signedness bug returning '(-22)' > sound/pci/rme9652/hdsp.c:4085 snd_hdsp_channel_info() warn: impossible condition '(hdsp->channel_map[channel] < 0) => (0-255 < 0)' > > Old smatch warnings: > sound/pci/au88x0/au88x0_core.c:2046 vortex_adb_checkinout() warn: signedness bug returning '(-12)' > sound/pci/rme9652/hdsp.c:3338 snd_hdsp_proc_read() warn: argument 5 to %lx specifier is cast from pointer > sound/pci/rme9652/hdsp.c:5305 snd_hdsp_create() warn: 'hdsp->iobase' not released on lines: 5237. > sound/pci/rme9652/hdsp.c:5305 snd_hdsp_create() warn: 'pci' not released on lines: 5237. > > vim +2029 sound/pci/au88x0/au88x0_core.c > > ^1da177e4c3f415 Linus Torvalds 2005-04-16 2001 static char > ^^^^ > Is char unsigned on PowerPC? I thought that was only on s390. All PowerPC machines or cross compiler I have access to give me: $ gcc -E -dD -o - - < /dev/null | grep __CHAR_UNSIGNED__ #define __CHAR_UNSIGNED__ 1 and the PPC ABI requires it so. -- Luc