Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3319803imu; Sun, 11 Nov 2018 12:17:12 -0800 (PST) X-Google-Smtp-Source: AJdET5dTP3ztb/6MdJB76micS6I1E889e7XCUvCs/7UYP4BVN9h0RrkMnMWo+ZIbpQBYyTMcElhp X-Received: by 2002:a62:1c1:: with SMTP id 184-v6mr17603625pfb.242.1541967432095; Sun, 11 Nov 2018 12:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967432; cv=none; d=google.com; s=arc-20160816; b=RsbAbqAXmCI50Idzq2v7rw7WFFpXrVGawJtNJmehDIYVp2BaXDvCSubR8Ta7tUiH+H Pw/Aw2UdSw4LDmt2x8y3VVJdj0OcsfIVi2RHwuhsJ9kJbUHl0YLdP4tWKZ7U+mI77eYK Tmwh4GLeCOJ/o1i7id25k0EAZzB/gHR3haI9iY61rvmpn3awR0AG2Ip2iDEB+mnz9Rxm /oEk3rxpzcNJLUEVFsegk+x7ZuBz2I//jj6qbc6s7Q54ZH++UX+z+2Ow+hKX/Q8mZ6zC moNdopHg3IrL2Kz9eaf5gjqvm5SMYLItBh3EgU2za+i+/U7tUSCuNMaYqqkr9GFfdf1f gmSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=jjGs8kMR29M0Itxr7veyciSu80uKxI0tg+QlRnh7qy4=; b=LH6QmWm1Q91Y+miHoIhkJuRaIkRfqXhIaz6C1EjuRHPirENzDHZ1KN7Xg7inr2YPLc OIg16KC48ZiNy1CRm3KGVKyZfZL+5NTar2fw3AkD8Ef/usyI06K7z99AHSEHCXl57vEF i2x5K2M6eUtpeD8vox4scvyUBrwnOCUFtGbg7+1bDgCQ02Oewth/y9YOVt/BVY4ApiD5 zJIKHjvzJNBb54Wnj9ej3pUcYx1oM3PN3vBYK45qbHPXoSL4//jnJiG0NR3bV0FcAQ8Q a0bxFrKPf+dqfaoh3E6383fkbwXCqT7g0yL81q59ZDmdIvkV2T3D6bE/O/E9+SBLD/1i EBXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70-v6si17216812pfz.20.2018.11.11.12.16.57; Sun, 11 Nov 2018 12:17:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730522AbeKLGEy (ORCPT + 99 others); Mon, 12 Nov 2018 01:04:54 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:53000 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729602AbeKLGEy (ORCPT ); Mon, 12 Nov 2018 01:04:54 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvtB-0000l4-4Y; Sun, 11 Nov 2018 19:59:21 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsO-0001Q8-Vp; Sun, 11 Nov 2018 19:58:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Greg Kroah-Hartman" , "Andrew F. Davis" , "Suman Anna" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 051/366] rpmsg: Correct support for MODULE_DEVICE_TABLE() In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: "Andrew F. Davis" commit 5b7d127726de6eed4b900bc3bbb167837690818f upstream. Due to missing a missing entry in file2alias.c MODULE_DEVICE_TABLE() are not generating the proper module aliases. Add the needed entry here. Fixes: bcabbccabffe ("rpmsg: add virtio-based remote processor messaging bus") Reported-by: Suman Anna Signed-off-by: Andrew F. Davis Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c | 11 +++++++++++ 2 files changed, 14 insertions(+) --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c @@ -136,6 +136,9 @@ int main(void) DEVID(hv_vmbus_device_id); DEVID_FIELD(hv_vmbus_device_id, guid); + DEVID(rpmsg_device_id); + DEVID_FIELD(rpmsg_device_id, name); + DEVID(i2c_device_id); DEVID_FIELD(i2c_device_id, name); --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -884,6 +884,17 @@ static int do_vmbus_entry(const char *fi } ADD_TO_DEVTABLE("vmbus", hv_vmbus_device_id, do_vmbus_entry); +/* Looks like: rpmsg:S */ +static int do_rpmsg_entry(const char *filename, void *symval, + char *alias) +{ + DEF_FIELD_ADDR(symval, rpmsg_device_id, name); + sprintf(alias, RPMSG_DEVICE_MODALIAS_FMT, *name); + + return 1; +} +ADD_TO_DEVTABLE("rpmsg", rpmsg_device_id, do_rpmsg_entry); + /* Looks like: i2c:S */ static int do_i2c_entry(const char *filename, void *symval, char *alias)