Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1476193pxj; Wed, 19 May 2021 06:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPQ7QMf5qXthUi+QMGGIuLC+W8fJt3PXeFlmMdsKz5mKuPSrko0emRZdpNdqAspo3j/pmg X-Received: by 2002:a05:6402:1158:: with SMTP id g24mr14572248edw.134.1621432463977; Wed, 19 May 2021 06:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621432463; cv=none; d=google.com; s=arc-20160816; b=ZqJ5E7cx7tEXd6CLLLOXvXaVXd2S0bKQdha+0NFSHHUYwh0R5RkXErea3/ZUdgWQFD /681E5Bf16dKoL/KKSdbSM+dnwhzUbTmcmEXgyp2P3gJ7ajyHkPNDa0tBcJHLp+Rm/f4 hm/xW4FXYUx/X7ekvjvY8su8sU4KWjUr4kmacsUKDN22qipUooplyia+TULL+g1lPL/7 pnXPsrLEWAsQhWfXOvveO9JrIzJQ7pm37fGLC0r52dwD3/m6HX/mLvWUNEop99rRMGue X0EfBT/CDcjwdgK5Jrs3ZTmBgGso1NXm7c246MLqEdcP5v/lhPvdp+9AxD0uXkDQMvmS Eotg== 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; bh=9rOkAOS1gITwJj1T1acE/o6zHu9WtCiqYTJWxUeEkII=; b=XyPXyJJdumk61fGtr12UqUcILdXsDiFk1w3TgLcDAO/zeC4Dd87uQJXgZzUqle/ArC IFioNWeL0pYG7NJGnPHRLIGO4CijVSJSvBkLUx2oewQOsHCM2AmBSgoYS+xy9G/FyucR E4DRb0jXYKdOwk0wEpYHffPshIwVXSsG0lGd9AFR3H2rbTKWJ5Gb4O9rEjxyWDUeW+/C cevyYUL9Skpcf3Faguz1OSjzaMT75YSKdznoZEdNtHvACbOlej2U+SoLVR485tgX3Lv5 6HnYzM9vaOm4joDVXIzkvl3GOgOtWQ3G9ltkgXXQe14q8yakIRWJNc4eIypiLDh6A98L G8Rw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi14si21521623ejb.441.2021.05.19.06.54.00; Wed, 19 May 2021 06:54:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240532AbhERGdz (ORCPT + 99 others); Tue, 18 May 2021 02:33:55 -0400 Received: from muru.com ([72.249.23.125]:56980 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236590AbhERGdy (ORCPT ); Tue, 18 May 2021 02:33:54 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4FFFE80F5; Tue, 18 May 2021 06:32:40 +0000 (UTC) Date: Tue, 18 May 2021 09:32:33 +0300 From: Tony Lindgren To: Maciej Falkowski Cc: khilman@kernel.org, aaro.koskinen@iki.fi, linux@armlinux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] ARM: OMAP: Fix use of possibly uninitialized irq variable Message-ID: References: <20210401161127.8942-1-maciej.falkowski9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210401161127.8942-1-maciej.falkowski9@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Maciej Falkowski [210401 19:13]: > The current control flow of IRQ number assignment to `irq` variable > allows a request of IRQ of unspecified value, > generating a warning under Clang compilation with omap1_defconfig on linux-next: > > arch/arm/mach-omap1/pm.c:656:11: warning: variable 'irq' is used uninitialized whenever > 'if' condition is false [-Wsometimes-uninitialized] > else if (cpu_is_omap16xx()) > ^~~~~~~~~~~~~~~~~ > ./arch/arm/mach-omap1/include/mach/soc.h:123:30: note: expanded from macro 'cpu_is_omap16xx' > ^~~~~~~~~~~~~ > arch/arm/mach-omap1/pm.c:658:18: note: uninitialized use occurs here > if (request_irq(irq, omap_wakeup_interrupt, 0, "peripheral wakeup", > ^~~ > arch/arm/mach-omap1/pm.c:656:7: note: remove the 'if' if its condition is always true > else if (cpu_is_omap16xx()) > ^~~~~~~~~~~~~~~~~~~~~~ > arch/arm/mach-omap1/pm.c:611:9: note: initialize the variable 'irq' to silence this warning > int irq; > ^ > = 0 Thanks applying into fixes. Tony