From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A4CD1F4611 for ; Thu, 22 Jan 2026 11:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769080524; cv=none; b=UxJDLEujmA7bobzyBVXlgbXyaTjAphJh8QX3rPmKMAPEh+Bpq8t/vJLVbra+D2zymzf7ZzX0RRMEwBEbH4V1a3sPlxs7JWEmWdM1uHzF8vwC3ckdYSMmckNNb+PrmcmA3ea7A4Bn+A6zx7HakMXKHL1wnxFSxeyYp/cjownYeXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769080524; c=relaxed/simple; bh=LTRz9PHIkErrzNeIK++yJtAjIR1dBo2VL8fL/rdTStI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=djEvf6b1xSLhkezqL+z8NTtW0qdbycAwOCHM8COzMyL3HiABT2Qmn6vc5wQvsf3ax3rm9IKp+H5qLfLj6zz+GWzXmy8Eidlhu5iZp5k33VuXTmAKvsGKhGNTeBvUimggJU4esBwyyU+yw/vssOQXWeJDFP/9FZRjXSGpBM+idLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KhilyhyG; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KhilyhyG" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-42fbc305914so740283f8f.0 for ; Thu, 22 Jan 2026 03:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769080520; x=1769685320; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IqncU2kXukXRiaPP1nCFU5k+iLa0EMSRcYvJdWx4I5E=; b=KhilyhyGIK3mYAV0ucLGn2kc5AsiIQgKchkx1FoQZwc+FhdQW3YUYRxkJ5pbDqYSMD p9wCWZCXp8WuC5VBFYaznBNCEgcM6vjwtDbniXgXgZQ8ydGCbJhETvGZYK1g1/Yt0F0R EebeljCw1B90Ly7tKGNgIA5OZzhZoX+WEMz9QN7qMaFDFtRYr6HKNU4Ric+O6E+Z3luS YgFdilbA/vovxyFHjYwvxx2XB8lhJuhMVCK/sCmesGWDdOdj7i86koSh8zdCMGBYgHYc /R8e1ggHtEOtijXVzl/oK+rVYAEzDCnrZvHZjGkp+xNym5BZsHnck0ncAxatNKBMcE52 OHdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769080520; x=1769685320; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IqncU2kXukXRiaPP1nCFU5k+iLa0EMSRcYvJdWx4I5E=; b=AFXW80vA4cCbYbQ9TueQtsXg9fvm6d7J1uTwr/pwN1GJSDLDktocWQB5WCaQXqsqp0 sL3fynTRiGCh8s4vxKSCvCSWLnehSRykGHq139RTopsyP4miehKhSHsv+mcQoAfEiZBq MjSanKTeAMggrpKVhqaccFviTASnd4B1m1hovqRQDYHttXu0XU8Q+TTm4X9IIUKqRDLW cX0wMcuRzrMQvqt1/588ZX6ANYW/WKGi9byClkolkGD6Dr6kBD79VIJpi2ihlLMbAanH ME/5nfhCOzqqDEAxkv10i5S2z0Mt/4+N5ABTENcNG9fnf/AFHTeXc83wXux7pEvgLjUO 5t6g== X-Gm-Message-State: AOJu0YxYxzYZAR7fI1szNuSvN3z5f1nDw5OzgbkxdrQOyHL0tDCuAXIT zfaCZ/nMI0+mzJvRgvOn+BeqejQNeQqb9TsKiWiGLgs4vcBZu1/pmx0NEuVGMwPQTB4= X-Gm-Gg: AZuq6aKKCW37wqyhIDAOJxpYhwDZq2q+++7BLh+WOiURrk5bI3Qcl8Z7LnyKwYONDKs d5QLaI3rwJh0VM/jGnWYHMfoYIc6ho9YuWZKK8z3ruM0nbykSzvceN4GxpIOId3L+QuDSNTFTPa KtbJmSfFrkI3RR0xc94mFfyJ2nLNbFsfWenrNGkNbuFey2RwZJxR3aKinkhaE5K6ojBp2JdGklX gZGf68cfNwbKdh2pWw4eUd+1M/ioJKgXzz0NOFTJGFm2yZ8Y0V1EEUEIsFGLcM1X7yD+qreeCrQ NdgGI6P7+3D+B+SfTUxK10pW7YcnYCYxWHUALBR/DEt8AeaokQFtdmardOoqyLgRJy2kZfbZDSy OP9W17RDOTzUqWNSKpXSHci3n4behBFMFo77K2SFGgGuf6ahRwtR9sy1RcyRf5XswzU7cSRs3Cr x5ojCu8k8zGq4VLNzz X-Received: by 2002:a05:6000:2486:b0:430:f3ab:56af with SMTP id ffacd0b85a97d-4358ff3026amr13560381f8f.48.1769080520050; Thu, 22 Jan 2026 03:15:20 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4356997e6dasm45554749f8f.32.2026.01.22.03.15.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 03:15:19 -0800 (PST) Date: Thu, 22 Jan 2026 14:15:16 +0300 From: Dan Carpenter To: Harshit Mogalapalli Cc: smatch@vger.kernel.org, Marion & Christophe JAILLET , Dan Carpenter Subject: Re: ida_alloc_range() check question Message-ID: References: Precedence: bulk X-Mailing-List: smatch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Harshit sent me private email to ignore so I did. But he meant to ignore a different copy of this email... On Sun, Jan 11, 2026 at 02:36:04AM +0530, Harshit Mogalapalli wrote: > Hi, > > > I have seen this warning on linux-next: > drivers/pci/ide.c:42 reserve_stream_index() error: Calling ida_alloc_range() > with a 'max' argument which is a power of 2. -1 missing? > > I was wondering if it would be reasonable to skip when min is not zero ? > I don't get a warning in drivers/pci/ide.c. I don't see how it triggers a warning for you. I'm on linux next. I reviewed the other 5 warnings and they all seem like real bugs. I should update the inline warnings to be a better format, but I can't promise when that will happen. regards, dan carpenter