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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17FB6C83F2C for ; Mon, 4 Sep 2023 09:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352756AbjIDJyp (ORCPT ); Mon, 4 Sep 2023 05:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjIDJyk (ORCPT ); Mon, 4 Sep 2023 05:54:40 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BADE19B for ; Mon, 4 Sep 2023 02:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693821263; x=1725357263; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=lku24LhtQTBzblJkGEguDMUBTScmcHBrbWYLmqavMRQ=; b=jYp+YVJfHTwaYoDc4FFxIUyaOdVo7uLfgF4JRMKRsq0JUh8z2rZZfV4V F9OLGfrQOcuZaC9ARl54DGCJ/vp0EtQx3b+vFKVjLzbQ86ZMpyMv85Fhc XSgZJeCNK6zdvsu9/tN9nskpqHdAZOuxmqY6I9ITbd4mqmFa61LSJTSFF Sw+fCXXFOD4zOcgnwsyBWtpGhQCiN09llQ1Fa+i4mhNe1IUDCSwLeLMxW 0NBQBACi85kVdDUbTfZfhvnSMLQg49qFuIe01EgmOzDJIQnhx2fNInaWZ QCE8YRCbFUt1OYkD2oZL2aKmbIEMMwFE9B/MMo/9Qbpb7K0P4hzmxwKr5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="356060031" X-IronPort-AV: E=Sophos;i="6.02,226,1688454000"; d="scan'208";a="356060031" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2023 02:54:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="743878457" X-IronPort-AV: E=Sophos;i="6.02,226,1688454000"; d="scan'208";a="743878457" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2023 02:54:20 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qd6Hi-006ONY-0O; Mon, 04 Sep 2023 12:54:18 +0300 Date: Mon, 4 Sep 2023 12:54:17 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] zorro: Use helpers from ioport.h Message-ID: References: <20230831121623.36293-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-m68k@vger.kernel.org On Mon, Sep 04, 2023 at 11:31:03AM +0200, Geert Uytterhoeven wrote: > Hi Andy, > > On Thu, Aug 31, 2023 at 2:16 PM Andy Shevchenko > wrote: > > We can use the DEFINE_RES_MEM_NAMED() macro and resource_contains() helper > > instead of reimplementing them in the code. No functional change intended. > > > > Signed-off-by: Andy Shevchenko > > Thanks for your patch! > > > --- a/drivers/zorro/zorro.c > > +++ b/drivers/zorro/zorro.c > > @@ -117,17 +117,13 @@ static struct resource __init *zorro_find_parent_resource( > > int i; > > > > for (i = 0; i < bridge->num_resources; i++) { > > - struct resource *r = &bridge->resource[i]; > > - > > - if (zorro_resource_start(z) >= r->start && > > - zorro_resource_end(z) <= r->end) > > - return r; > > + if (resource_contains(&bridge->resource[i], &z->resource) > > Missing closing parenthesis. What happened to your cross-compiler? > > Reviewed-by: Geert Uytterhoeven > i.e. will queue in the m68k for-v6.7 branch, with the above fixed. I have usually three problems with it: 1) wrong branch to test; 2) no proper config is enabled; 3) other things due to my stupidity. Choose one for this on your taste :-) AFAIU you fixed that locally and applied (or going to). Thank you! Otherwise tell me if I need to resend. -- With Best Regards, Andy Shevchenko