From: ville.syrjala@linux.intel.com
To: dri-devel@lists.freedesktop.org
Subject: [PATCH 04/20] drm/bochs: Constify function pointer structs
Date: Wed, 2 Sep 2015 13:44:02 +0300 [thread overview]
Message-ID: <1441190658-6616-4-git-send-email-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <1441190658-6616-1-git-send-email-ville.syrjala@linux.intel.com>
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Moves a bunch of junk to .rodata from .data.
drivers/gpu/drm/bochs/bochs-drm.ko:
-.text 7608
+.text 7600
-.rodata 648
+.rodata 716
-.data 612
+.data 544
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/bochs/bochs_kms.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c
index 26bcd03..b25c3ef 100644
--- a/drivers/gpu/drm/bochs/bochs_kms.c
+++ b/drivers/gpu/drm/bochs/bochs_kms.c
@@ -245,13 +245,13 @@ static enum drm_connector_status bochs_connector_detect(struct drm_connector
return connector_status_connected;
}
-struct drm_connector_helper_funcs bochs_connector_connector_helper_funcs = {
+static const struct drm_connector_helper_funcs bochs_connector_connector_helper_funcs = {
.get_modes = bochs_connector_get_modes,
.mode_valid = bochs_connector_mode_valid,
.best_encoder = bochs_connector_best_encoder,
};
-struct drm_connector_funcs bochs_connector_connector_funcs = {
+static const struct drm_connector_funcs bochs_connector_connector_funcs = {
.dpms = drm_helper_connector_dpms,
.detect = bochs_connector_detect,
.fill_modes = drm_helper_probe_single_connector_modes,
@@ -283,7 +283,7 @@ int bochs_kms_init(struct bochs_device *bochs)
bochs->dev->mode_config.preferred_depth = 24;
bochs->dev->mode_config.prefer_shadow = 0;
- bochs->dev->mode_config.funcs = (void *)&bochs_mode_funcs;
+ bochs->dev->mode_config.funcs = &bochs_mode_funcs;
bochs_crtc_init(bochs->dev);
bochs_encoder_init(bochs->dev);
--
2.4.6
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-09-02 10:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 10:43 [PATCH 01/20] drm: Constify drm_encoder_slave_funcs ville.syrjala
2015-09-02 10:44 ` [PATCH 02/20] drm/armada: Constify function pointer structs ville.syrjala
2015-09-02 10:44 ` [PATCH 03/20] drm/atmel-hlcdc: " ville.syrjala
2015-10-09 20:59 ` Boris Brezillon
2015-09-02 10:44 ` ville.syrjala [this message]
2015-09-02 10:44 ` [PATCH 05/20] drm/bridge/dw_hdmi: " ville.syrjala
2015-09-02 10:44 ` [PATCH 06/20] drm/bridge/nxp-ptn3460: " ville.syrjala
2015-09-02 10:44 ` [PATCH 07/20] drm/i2c/ch7006: " ville.syrjala
2015-09-02 10:44 ` [PATCH 08/20] drm/cirrus: " ville.syrjala
2015-09-02 10:44 ` [PATCH 09/20] drm/exynos: " ville.syrjala
2015-09-02 12:24 ` Gustavo Padovan
2015-09-02 10:44 ` [PATCH 10/20] drm/i2c/adv7511: " ville.syrjala
2015-09-02 10:44 ` [PATCH 11/20] drm/i2c/sil164: " ville.syrjala
2015-09-02 10:44 ` [PATCH 12/20] drm/i2c/tda998x: " ville.syrjala
2015-09-02 10:44 ` [PATCH 13/20] drm/imx: " ville.syrjala
2015-09-02 10:44 ` [PATCH 14/20] drm/mgag200: " ville.syrjala
2015-09-02 10:44 ` [PATCH 15/20] drm/nouveau: " ville.syrjala
2015-09-02 10:44 ` [PATCH 16/20] drm/rockchip: " ville.syrjala
2015-09-02 10:44 ` [PATCH 17/20] drm/sti: " ville.syrjala
2015-09-02 10:44 ` [PATCH 18/20] drm/tegra: " ville.syrjala
2015-09-02 10:44 ` [PATCH 19/20] drm/udl: " ville.syrjala
2015-09-02 10:44 ` [PATCH 20/20] drm/vmwgfx: " ville.syrjala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441190658-6616-4-git-send-email-ville.syrjala@linux.intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox