Code: Select all
^
rhd_atombios.c: In function ‘rhdAtomLvdsTimings’:
rhd_atombios.c:3124:18: warning: cast from function call of type ‘int’ to non-matching type ‘struct _DisplayModeRec *’ [-Wbad-function-cast]
if (!(mode = (DisplayModePtr)xcalloc(1,sizeof(DisplayModeRec))))
^
rhd_atombios.c:3124:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘rhdAtomLvdsDDC’:
rhd_atombios.c:3197:38: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
if (!(EDIDBlock = (unsigned char *)xalloc(
^~~~~~
rhd_atombios.c:3197:3: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
if (!(EDIDBlock = (unsigned char *)xalloc(
^~
rhd_atombios.c:3197:21: warning: cast from function call of type ‘int’ to non-matching type ‘unsigned char *’ [-Wbad-function-cast]
if (!(EDIDBlock = (unsigned char *)xalloc(
^
rhd_atombios.c:3197:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘rhdAtomAnalogTVTimings’:
rhd_atombios.c:3593:2: warning: case value ‘2’ not in enumerated type ‘enum RHD_TV_MODE’ [-Wswitch]
case NTSCJ_SUPPORT:
^~~~
rhd_atombios.c:3614:18: warning: cast from function call of type ‘int’ to non-matching type ‘struct _DisplayModeRec *’ [-Wbad-function-cast]
if (!(mode = (DisplayModePtr)xcalloc(1,sizeof(DisplayModeRec))))
^
rhd_atombios.c:3614:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c:3581:23: warning: variable ‘atomDataPtr’ set but not used [-Wunused-but-set-variable]
atomDataTablesPtr atomDataPtr;
^~~~~~~~~~~
rhd_atombios.c: In function ‘rhdAtomDDCFromI2CRecord’:
rhd_atombios.c:4195:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (Record->ucI2CAddr != 0)
^~
rhd_atombios.c:4197:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
u.i2cId = Record->sucI2cId;
^
rhd_atombios.c: In function ‘rhdAtomDeviceTagsFromRecord’:
rhd_atombios.c:4299:15: warning: cast from function call of type ‘int’ to non-matching type ‘char *’ [-Wbad-function-cast]
devices = (char *)xcalloc(Record->ucNumberOfDevice * 4 + 1,1);
^
rhd_atombios.c:4299:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘rhdAtomOutputDeviceListFromObjectHeader’:
rhd_atombios.c:4399:16: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdConnectorInfo *’ [-Wbad-function-cast]
if (!(cp = (rhdConnectorInfoPtr)xcalloc(sizeof(struct rhdConnectorInfo),
^
rhd_atombios.c:4399:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c:4470:56: error: implicit declaration of function ‘xrealloc’ [-Werror=implicit-function-declaration]
if (!(DeviceList = (struct rhdAtomOutputDeviceList *)xrealloc(DeviceList, sizeof (struct rhdAtomOutputDeviceList) * (cnt + 1))))
^~~~~~~~
rhd_atombios.c:4470:30: warning: nested extern declaration of ‘xrealloc’ [-Wnested-externs]
if (!(DeviceList = (struct rhdAtomOutputDeviceList *)xrealloc(DeviceList, sizeof (struct rhdAtomOutputDeviceList) * (cnt + 1))))
^~~~~~~~~~~~~~~~~~~~~~~
rhd_atombios.c:4470:22: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdAtomOutputDeviceList *’ [-Wbad-function-cast]
if (!(DeviceList = (struct rhdAtomOutputDeviceList *)xrealloc(DeviceList, sizeof (struct rhdAtomOutputDeviceList) * (cnt + 1))))
^
rhd_atombios.c:4470:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c:4487:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
DeviceList = xrealloc(DeviceList, sizeof(struct rhdAtomOutputDeviceList) * (cnt + 1));
^
rhd_atombios.c: In function ‘rhdAtomConnectorInfoFromObjectHeader’:
rhd_atombios.c:4524:16: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdConnectorInfo *’ [-Wbad-function-cast]
if (!(cp = (rhdConnectorInfoPtr)xcalloc(sizeof(struct rhdConnectorInfo),
^
rhd_atombios.c:4524:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘rhdAtomOutputDeviceListFromSupportedDevices’:
rhd_atombios.c:4700:16: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdConnectorInfo *’ [-Wbad-function-cast]
if (!(cp = (rhdConnectorInfoPtr)xcalloc(RHD_CONNECTORS_MAX,
^
rhd_atombios.c:4700:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c:4716:21: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdAtomOutputDeviceList *’ [-Wbad-function-cast]
if (!(DeviceList = (struct rhdAtomOutputDeviceList *)xrealloc(DeviceList, sizeof(struct rhdAtomOutputDeviceList) * (cnt + 1))))
^
rhd_atombios.c:4716:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c:4732:18: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdAtomOutputDeviceList *’ [-Wbad-function-cast]
DeviceList = (struct rhdAtomOutputDeviceList *)xrealloc(DeviceList, sizeof(struct rhdAtomOutputDeviceList) * (cnt + 1));
^
rhd_atombios.c:4732:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘rhdAtomConnectorInfoFromSupportedDevices’:
rhd_atombios.c:4773:16: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdConnectorInfo *’ [-Wbad-function-cast]
if (!(cp = (rhdConnectorInfoPtr)xcalloc(RHD_CONNECTORS_MAX,
^
rhd_atombios.c:4773:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘atomRegisterSaveList’:
rhd_atombios.c:5184:24: warning: cast from function call of type ‘int’ to non-matching type ‘struct atomSaveListObject *’ [-Wbad-function-cast]
if (!(ListObject = (struct atomSaveListObject *)xcalloc(1,sizeof (struct atomSaveListObject))))
^
rhd_atombios.c:5184:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c: In function ‘atomSaveRegisters’:
rhd_atombios.c:5674:28: warning: cast from function call of type ‘int’ to non-matching type ‘struct atomSaveListRecord *’ [-Wbad-function-cast]
if (!(*handle->SaveList = (struct atomSaveListRecord *)xalloc(sizeof(struct atomSaveListRecord)
^
rhd_atombios.c:5674:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_atombios.c:5680:15: warning: cast from function call of type ‘int’ to non-matching type ‘struct atomSaveListRecord *’ [-Wbad-function-cast]
if (!(List = (struct atomSaveListRecord *)xrealloc(*handle->SaveList,
^
rhd_atombios.c:5680:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cc1: some warnings being treated as errors
CC rhd_atomcrtc.o
rhd_atomcrtc.c: In function ‘rhdAtomCrtcScaleDestroy’:
rhd_atomcrtc.c:209:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Crtc->ScalePriv->RegList);
^~~~~
rhd_atomcrtc.c:209:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_atomout.o
rhd_atomout.c: In function ‘rhdAtomOutputDestroy’:
rhd_atomout.c:810:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Private->Save);
^~~~~
rhd_atomout.c:810:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_atompll.o
rhd_atompll.c: In function ‘RHDAtomPLLsInit’:
rhd_atompll.c:399:6: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(PLL->Private);
^~~~~
rhd_atompll.c:399:6: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_audio.o
rhd_audio.c: In function ‘RHDAudioDestroy’:
rhd_audio.c:420:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(rhdPtr->Audio);
^~~~~
rhd_audio.c:420:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_biosscratch.o
rhd_biosscratch.c: In function ‘rhdBIOSScratchUpdateBIOSScratchForOutput’:
rhd_biosscratch.c:693:6: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (devList[i].DeviceId != Device)
^~
rhd_biosscratch.c:695:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
i++;
^
rhd_biosscratch.c: In function ‘rhdBIOSScratchDestroyOutputDriverPrivate’:
rhd_biosscratch.c:746:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Output->OutputDriverPrivate->OutputDevices);
^~~~~
rhd_biosscratch.c:746:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_biosscratch.c: In function ‘RHDAtomSetupOutputDriverPrivate’:
rhd_biosscratch.c:779:44: error: implicit declaration of function ‘xrealloc’ [-Werror=implicit-function-declaration]
if (!(od = (struct rhdOutputDevices *)xrealloc(od, sizeof(struct rhdOutputDevices) * (cnt + 1))))
^~~~~~~~
rhd_biosscratch.c:779:25: warning: nested extern declaration of ‘xrealloc’ [-Wnested-externs]
if (!(od = (struct rhdOutputDevices *)xrealloc(od, sizeof(struct rhdOutputDevices) * (cnt + 1))))
^~~~~~~~~~~~~~~~
rhd_biosscratch.c:779:17: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdOutputDevices *’ [-Wbad-function-cast]
if (!(od = (struct rhdOutputDevices *)xrealloc(od, sizeof(struct rhdOutputDevices) * (cnt + 1))))
^
rhd_biosscratch.c:779:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_biosscratch.c:788:16: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdOutputDevices *’ [-Wbad-function-cast]
if (!(od = (struct rhdOutputDevices *)xrealloc(od, sizeof(struct rhdOutputDevices) * (cnt + 1))))
^
rhd_biosscratch.c:788:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_biosscratch.c:792:68: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
if (!(OutputDriverPrivate = (struct BIOSScratchOutputPrivate *)xalloc(sizeof(struct BIOSScratchOutputPrivate)))) {
^~~~~~
rhd_biosscratch.c:792:41: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
if (!(OutputDriverPrivate = (struct BIOSScratchOutputPrivate *)xalloc(sizeof(struct BIOSScratchOutputPrivate)))) {
^~~~~~~~~~~~~~~~~~~~~~~~
rhd_biosscratch.c:792:33: warning: cast from function call of type ‘int’ to non-matching type ‘struct BIOSScratchOutputPrivate *’ [-Wbad-function-cast]
if (!(OutputDriverPrivate = (struct BIOSScratchOutputPrivate *)xalloc(sizeof(struct BIOSScratchOutputPrivate)))) {
^
rhd_biosscratch.c:792:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_biosscratch.c: In function ‘RHDSaveBiosScratchRegisters’:
rhd_biosscratch.c:916:18: warning: cast from function call of type ‘int’ to non-matching type ‘struct rhdBiosScratchRegisters *’ [-Wbad-function-cast]
if (!(regs = (struct rhdBiosScratchRegisters *)xalloc(sizeof(struct rhdBiosScratchRegisters))))
^
rhd_biosscratch.c:916:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cc1: some warnings being treated as errors
CC rhd_connector.o
rhd_connector.c: In function ‘rhdConnectorSynthName’:
rhd_connector.c:149:17: error: implicit declaration of function ‘xcalloc’ [-Werror=implicit-function-declaration]
if (!(*state = xcalloc(sizeof(struct rhdCsState), 1)))
^~~~~~~
rhd_connector.c:149:2: warning: nested extern declaration of ‘xcalloc’ [-Wnested-externs]
if (!(*state = xcalloc(sizeof(struct rhdCsState), 1)))
^~
rhd_connector.c:149:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if (!(*state = xcalloc(sizeof(struct rhdCsState), 1)))
^
rhd_connector.c:176:12: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
str = xalloc(12);
^~~~~~
rhd_connector.c:176:6: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
str = xalloc(12);
^~~
rhd_connector.c:176:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
str = xalloc(12);
^
rhd_connector.c:181:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
str = xalloc(10);
^
rhd_connector.c:186:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
str = xalloc(10);
^
rhd_connector.c:192:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
str = xalloc(20);
^
rhd_connector.c:196:6: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(str1);
^~~~~
rhd_connector.c:196:6: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_crtc.o
rhd_crtc.c: In function ‘DxFBDestroy’:
rhd_crtc.c:354:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Crtc->FBPriv);
^~~~~
rhd_crtc.c:354:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_cs.o
rhd_cs.c: In function ‘CSMMIODestroy’:
rhd_cs.c:154:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(CS->Buffer);
^~~~~
rhd_cs.c:154:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_cursor.o
rhd_cursor.c: In function ‘rhdRealizeCursor’:
rhd_cursor.c:438:36: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
struct rhd_Cursor_Bits *bits = xalloc(sizeof(struct rhd_Cursor_Bits)
^~~~~~
rhd_cursor.c:438:12: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
struct rhd_Cursor_Bits *bits = xalloc(sizeof(struct rhd_Cursor_Bits)
^~~~~~~~~~~~~~~
rhd_cursor.c:438:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
struct rhd_Cursor_Bits *bits = xalloc(sizeof(struct rhd_Cursor_Bits)
^~~~~~
rhd_cursor.c: In function ‘RHDCursorsDestroy’:
rhd_cursor.c:488:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(rhdPtr->Crtc[i]->Cursor);
^~~~~
rhd_cursor.c:488:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_cursor.c: In function ‘RHDxf86InitCursor’:
rhd_cursor.c:531:26: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rhdPtr->CursorImage = xalloc(MAX_CURSOR_WIDTH * MAX_CURSOR_HEIGHT * 4);
^
In file included from rhd_cursor.c:50:0:
rhd_cursor.c: In function ‘rhdCrtcSetCursorPosition’:
rhd.h:465:29: warning: assuming signed overflow does not occur when simplifying conditional [-Wstrict-overflow]
# define ASSERT(x) do { if (!(x)) RhdAssertFailed \
^
rhd_cursor.c:89:5: note: in expansion of macro ‘ASSERT’
ASSERT (hotx < MAX_CURSOR_WIDTH);
^~~~~~
rhd.h:465:29: warning: assuming signed overflow does not occur when simplifying conditional [-Wstrict-overflow]
# define ASSERT(x) do { if (!(x)) RhdAssertFailed \
^
rhd_cursor.c:90:5: note: in expansion of macro ‘ASSERT’
ASSERT (hoty < MAX_CURSOR_HEIGHT);
^~~~~~
cc1: some warnings being treated as errors
CC rhd_dac.o
rhd_dac.c: In function ‘DACSenseRV620_MethA’:
rhd_dac.c:625:22: warning: variable ‘CompEnable’ set but not used [-Wunused-but-set-variable]
Control1, Control2, CompEnable;
^~~~~~~~~~
rhd_dac.c: In function ‘DACDestroy’:
rhd_dac.c:1119:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Output->Private);
^~~~~
rhd_dac.c:1119:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_ddia.o
rhd_ddia.c: In function ‘DDIADestroy’:
rhd_ddia.c:322:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Private);
^~~~~
rhd_ddia.c:322:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_dig.o
rhd_dig.c: In function ‘LVTMATransmitterDestroy’:
rhd_dig.c:776:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(digPrivate->Transmitter.Private);
^~~~~
rhd_dig.c:776:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_driver.o
In file included from rhd_driver.c:48:0:
/usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
#warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server."
^~~~~~~
rhd_driver.c:62:22: fatal error: mibstore.h: File o directory non esistente
#include "mibstore.h"
^
compilation terminated.
mv: impossibile eseguire stat di '.deps/radeonhd_drv_la-rhd_driver.Tpo': File o directory non esistente
CC rhd_edid.o
rhd_edid.c: In function ‘EDIDModeFromDetailedTiming’:
rhd_edid.c:135:14: warning: passing argument 1 of ‘snprintf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
snprintf(Mode->name, 20, "%dx%d", timing->h_active, timing->v_active);
^~~~
In file included from /usr/include/xorg/os.h:86:0,
from /usr/include/xorg/misc.h:117,
from /usr/include/xorg/xf86str.h:37,
from /usr/include/xorg/xf86.h:44,
from rhd_edid.c:31:
/usr/include/stdio.h:388:12: note: expected ‘char * restrict’ but argument is of type ‘const char *’
extern int snprintf (char *__restrict __s, size_t __maxlen,
^~~~~~~~
rhd_edid.c: In function ‘RHDMonitorEDIDSet’:
rhd_edid.c:328:13: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Monitor->Name);
^~~~~
rhd_edid.c:328:13: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_hdmi.o
rhd_hdmi.c: In function ‘RHDHdmiInit’:
rhd_hdmi.c:269:7: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(hdmi);
^~~~~
rhd_hdmi.c:269:7: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_helper.o
rhd_helper.c: In function ‘RhdGetOptValString’:
rhd_helper.c:110:28: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
if (!(optp->val.string = xf86GetOptValString(table, token))) {
^
rhd_helper.c: In function ‘RhdParseBooleanOption’:
rhd_helper.c:158:3: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(str);
^~~~~
rhd_helper.c:158:3: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_helper.c: In function ‘RhdAppendString’:
rhd_helper.c:262:26: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
char *result = (char *)xalloc(len);
^~~~~~
rhd_helper.c:262:2: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
char *result = (char *)xalloc(len);
^~~~
rhd_helper.c:262:18: warning: cast from function call of type ‘int’ to non-matching type ‘char *’ [-Wbad-function-cast]
char *result = (char *)xalloc(len);
^
rhd_helper.c:262:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cc1: some warnings being treated as errors
CC rhd_i2c.o
rhd_i2c.c: In function ‘rhdTearDownI2C’:
rhd_i2c.c:1149:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(I2C[i]->DriverPrivate.ptr);
^~~~~
rhd_i2c.c:1149:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_i2c.c: In function ‘rhdInitI2C’:
rhd_i2c.c:1239:21: error: implicit declaration of function ‘xcalloc’ [-Werror=implicit-function-declaration]
if (!(I2CList = xcalloc(MAX_I2C_LINES, sizeof(I2CBusPtr)))) {
^~~~~~~
rhd_i2c.c:1239:5: warning: nested extern declaration of ‘xcalloc’ [-Wnested-externs]
if (!(I2CList = xcalloc(MAX_I2C_LINES, sizeof(I2CBusPtr)))) {
^~
rhd_i2c.c:1239:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if (!(I2CList = xcalloc(MAX_I2C_LINES, sizeof(I2CBusPtr)))) {
^
rhd_i2c.c:1245:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if (!(I2C = xcalloc(sizeof(rhdI2CRec),1))) {
^
rhd_i2c.c:1340:26: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
if (!(I2CPtr->BusName = xalloc(18))) {
^~~~~~
rhd_i2c.c:1340:2: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
if (!(I2CPtr->BusName = xalloc(18))) {
^~
rhd_i2c.c:1340:24: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if (!(I2CPtr->BusName = xalloc(18))) {
^
rhd_i2c.c: In function ‘RHDI2CFunc’:
rhd_i2c.c:1454:35: warning: passing argument 1 of ‘xf86DoEDID_DDC2’ makes pointer from integer without a cast [-Wint-conversion]
datap->monitor = xf86DoEDID_DDC2(scrnIndex, I2CList[datap->i]);
^~~~~~~~~
In file included from rhd_i2c.h:28:0,
from rhd_i2c.c:41:
/usr/include/xorg/xf86DDC.h:33:29: note: expected ‘ScrnInfoPtr {aka struct _ScrnInfoRec *}’ but argument is of type ‘int’
extern _X_EXPORT xf86MonPtr xf86DoEDID_DDC2(ScrnInfoPtr pScrn, I2CBusPtr pBus);
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
CC rhd_lut.o
rhd_lut.c: In function ‘rhdLUTSetRows’:
rhd_lut.c:174:12: warning: variable ‘RegOff’ set but not used [-Wunused-but-set-variable]
CARD16 RegOff;
^~~~~~
rhd_lut.c: In function ‘RHDLUTsDestroy’:
rhd_lut.c:307:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(rhdPtr->LUT[0]);
^~~~~
rhd_lut.c:307:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_lvtma.o
rhd_lvtma.c: In function ‘LVDSPWRSEQInit’:
rhd_lvtma.c:392:12: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]
CARD32 tmp = 0;
^~~
rhd_lvtma.c: In function ‘LVDSDestroy’:
rhd_lvtma.c:749:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Private);
^~~~~
rhd_lvtma.c:749:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_mc.o
rhd_mc.c: In function ‘RHDMCInit’:
rhd_mc.c:630:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(MC);
^~~~~
rhd_mc.c:630:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_modes.o
rhd_modes.c: In function ‘RHDCVTMode’:
rhd_modes.c:178:33: warning: variable ‘VBackPorch’ set but not used [-Wunused-but-set-variable]
int VSyncAndBackPorch, VBackPorch;
^~~~~~~~~~
rhd_modes.c: In function ‘RHDPrintModeline’:
rhd_modes.c:385:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(flags);
^~~~~
rhd_modes.c:385:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_modes.c: In function ‘RHDModesPoolCreate’:
rhd_modes.c:1365:24: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
char **ModeNames = pScrn->display->modes;
^~~~~
rhd_modes.c:1406:53: warning: passing argument 2 of ‘rhdModesGrabOnNameAll’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
TempList = rhdModesGrabOnNameAll(&List, List->name);
^~~~
rhd_modes.c:1004:1: note: expected ‘char *’ but argument is of type ‘const char *’
rhdModesGrabOnNameAll(DisplayModePtr *Modes, char *name)
^~~~~~~~~~~~~~~~~~~~~
rhd_modes.c: In function ‘RHDSynthModes’:
rhd_modes.c:1838:11: warning: passing argument 1 of ‘snprintf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
snprintf(Tmp->name, 20, "%ix%iScaled",resolution_list[i].x,resolution_list[i].y);
^~~
In file included from /usr/include/xorg/os.h:86:0,
from /usr/include/xorg/misc.h:117,
from /usr/include/xorg/xf86str.h:37,
from /usr/include/xorg/xf86.h:44,
from rhd_modes.c:30:
/usr/include/stdio.h:388:12: note: expected ‘char * restrict’ but argument is of type ‘const char *’
extern int snprintf (char *__restrict __s, size_t __maxlen,
^~~~~~~~
cc1: some warnings being treated as errors
CC rhd_monitor.o
rhd_monitor.c: In function ‘rhdPanelEDIDModesFilter’:
rhd_monitor.c:277:6: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Mode->name);
^~~~~
rhd_monitor.c:277:6: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_monitor.c: In function ‘rhdMonitorPanel’:
rhd_monitor.c:325:25: warning: passing argument 1 of ‘xf86DoEDID_DDC2’ makes pointer from integer without a cast [-Wint-conversion]
EDID = xf86DoEDID_DDC2(Connector->scrnIndex, Connector->DDC);
^~~~~~~~~
In file included from rhd_monitor.c:34:0:
/usr/include/xorg/xf86DDC.h:33:29: note: expected ‘ScrnInfoPtr {aka struct _ScrnInfoRec *}’ but argument is of type ‘int’
extern _X_EXPORT xf86MonPtr xf86DoEDID_DDC2(ScrnInfoPtr pScrn, I2CBusPtr pBus);
^~~~~~~~~~~~~~~
rhd_monitor.c: In function ‘RHDMonitorInit’:
rhd_monitor.c:464:36: warning: passing argument 1 of ‘xf86DoEDID_DDC2’ makes pointer from integer without a cast [-Wint-conversion]
xf86MonPtr EDID = xf86DoEDID_DDC2(Connector->scrnIndex, Connector->DDC);
^~~~~~~~~
In file included from rhd_monitor.c:34:0:
/usr/include/xorg/xf86DDC.h:33:29: note: expected ‘ScrnInfoPtr {aka struct _ScrnInfoRec *}’ but argument is of type ‘int’
extern _X_EXPORT xf86MonPtr xf86DoEDID_DDC2(ScrnInfoPtr pScrn, I2CBusPtr pBus);
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
CC rhd_output.o
rhd_output.c: In function ‘RHDOutputsDestroy’:
rhd_output.c:174:6: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Output->OutputDriverPrivate);
^~~~~
rhd_output.c:174:6: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_pll.o
rhd_pll.c: In function ‘RHDPLLsDestroy’:
rhd_pll.c:1554:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(rhdPtr->PLLs[0]->Private);
^~~~~
rhd_pll.c:1554:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_pm.o
rhd_pm.c: In function ‘RHDPmInit’:
rhd_pm.c:346:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree (Pm);
^~~~~
rhd_pm.c:346:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_shadow.o
rhd_shadow.c: In function ‘RHDShadowPreInit’:
rhd_shadow.c:52:45: error: implicit declaration of function ‘xalloc’ [-Werror=implicit-function-declaration]
if (!(rhdPtr->shadowPtr = (rhdShadowPtr)xalloc(sizeof(rhdShadowRec))))
^~~~~~
rhd_shadow.c:52:5: warning: nested extern declaration of ‘xalloc’ [-Wnested-externs]
if (!(rhdPtr->shadowPtr = (rhdShadowPtr)xalloc(sizeof(rhdShadowRec))))
^~
rhd_shadow.c:52:31: warning: cast from function call of type ‘int’ to non-matching type ‘struct _rhdShadowRec *’ [-Wbad-function-cast]
if (!(rhdPtr->shadowPtr = (rhdShadowPtr)xalloc(sizeof(rhdShadowRec))))
^
rhd_shadow.c:52:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rhd_shadow.c: In function ‘RHDShadowScreenInit’:
rhd_shadow.c:109:10: error: implicit declaration of function ‘xcalloc’ [-Werror=implicit-function-declaration]
= xcalloc(1, pScrn->displayWidth * pScrn->virtualY
^~~~~~~
rhd_shadow.c:109:8: warning: nested extern declaration of ‘xcalloc’ [-Wnested-externs]
= xcalloc(1, pScrn->displayWidth * pScrn->virtualY
^
rhd_shadow.c:109:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rhd_shadow.c:121:6: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(shadowPtr->shadow);
^~~~~
rhd_shadow.c:121:6: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_tmds.o
rhd_tmds.c: In function ‘TMDSADestroy’:
rhd_tmds.c:530:5: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(Private);
^~~~~
rhd_tmds.c:530:5: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
cc1: some warnings being treated as errors
CC rhd_vga.o
rhd_vga.c: In function ‘rhdVGASaveFB’:
rhd_vga.c:123:6: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(VGA->FB);
^~~~~
rhd_vga.c:123:6: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
rhd_vga.c:135:12: error: implicit declaration of function ‘xcalloc’ [-Werror=implicit-function-declaration]
VGA->FB = xcalloc(VGA->FBSize, 1);
^~~~~~~
rhd_vga.c:135:2: warning: nested extern declaration of ‘xcalloc’ [-Wnested-externs]
VGA->FB = xcalloc(VGA->FBSize, 1);
^~~
rhd_vga.c:135:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
VGA->FB = xcalloc(VGA->FBSize, 1);
^
cc1: some warnings being treated as errors
CC rhd_video.o
rhd_video.c:41:17: fatal error: xaa.h: File o directory non esistente
#include "xaa.h"
^
compilation terminated.
mv: impossibile eseguire stat di '.deps/radeonhd_drv_la-rhd_video.Tpo': File o directory non esistente
CC rhd_dri.o
rhd_dri.c:51:17: fatal error: xaa.h: File o directory non esistente
#include "xaa.h"
^
compilation terminated.
mv: impossibile eseguire stat di '.deps/radeonhd_drv_la-rhd_dri.Tpo': File o directory non esistente
CC r600_exa.o
r600_exa.c: In function ‘R6xxEXADestroy’:
r600_exa.c:1933:15: error: ‘struct RHDRec’ has no member named ‘EXAInfo’; did you mean ‘XAAInfo’?
if (rhdPtr->EXAInfo) {
^~
r600_exa.c:1934:2: error: implicit declaration of function ‘xfree’ [-Werror=implicit-function-declaration]
xfree(rhdPtr->EXAInfo);
^~~~~
r600_exa.c:1934:2: warning: nested extern declaration of ‘xfree’ [-Wnested-externs]
r600_exa.c:1934:14: error: ‘struct RHDRec’ has no member named ‘EXAInfo’; did you mean ‘XAAInfo’?
xfree(rhdPtr->EXAInfo);
^~
r600_exa.c:1935:8: error: ‘struct RHDRec’ has no member named ‘EXAInfo’; did you mean ‘XAAInfo’?
rhdPtr->EXAInfo = NULL;
^~
r600_exa.c: In function ‘R6xxEXAInit’:
r600_exa.c:2141:18: error: ‘struct RHDRec’ has no member named ‘EXAInfo’; did you mean ‘XAAInfo’?
RHDPTR(pScrn)->EXAInfo = EXAInfo;
^~
cc1: some warnings being treated as errors
mv: impossibile eseguire stat di '.deps/radeonhd_drv_la-r600_exa.Tpo': File o directory non esistente
LINK radeonhd_drv.la
libtool: error: 'radeonhd_drv_la-r5xx_accel.lo' is not a valid libtool object
--- ../man/radeonhd.man 2017-07-01 19:58:21.321321105 +0200
+++ radeonhd.man.new 2017-07-01 21:25:20.670656294 +0200
@@ -570,3 +570,146 @@
.TP 8
.B M98
Mobility Radeon HD4850, HD4870
+.TP 8
+.B RV505
+Radeon X1550, X1550 64bit
+.TP 8
+.B RV515
+Radeon X1300, X1550, X1600; FireGL V3300, V3350
+.TP 8
+.B RV516
+Radeon X1300, X1550, X1550 64-bit, X1600; FireMV 2250
+.TP 8
+.B R520
+Radeon X1800; FireGL V5300, V7200, V7300, V7350
+.TP 8
+.B RV530
+Radeon X1300 XT, X1600, X1600 Pro, X1650; FireGL V3400, V5200
+.TP 8
+.B RV535
+Radeon X1300, X1650
+.TP 8
+.B RV550
+Radeon X2300 HD
+.TP 8
+.B RV560
+Radeon X1650
+.TP 8
+.B RV570
+Radeon X1950, X1950 GT; FireGL V7400
+.TP 8
+.B R580
+Radeon X1900, X1950; AMD Stream Processor
+.TP 8
+.B R600
+Radeon HD 2900 GT/Pro/XT; FireGL V7600/V8600/V8650
+.TP 8
+.B RV610
+Radeon HD 2350, HD 2400 Pro/XT, HD 2400 Pro AGP; FireGL V4000
+.TP 8
+.B RV620
+Radeon HD 3450, HD 3470
+.TP 8
+.B RV630
+Radeon HD 2600 LE/Pro/XT, HD 2600 Pro/XT AGP; Gemini RV630;
+FireGL V3600/V5600
+.TP 8
+.B RV635
+Radeon HD 3650, HD 3670
+.TP 8
+.B RV670
+Radeon HD 3690, 3850, HD 3870, FireGL V7700, FireStream 9170
+.TP 8
+.B R680
+Radeon HD 3870 X2
+.TP 8
+.B M52
+Mobility Radeon X1300
+.TP 8
+.B M54
+Mobility Radeon X1400; M54-GL
+.TP 8
+.B M56
+Mobility Radeon X1600; Mobility FireGL V5200
+.TP 8
+.B M58
+Mobility Radeon X1800, X1800 XT; Mobility FireGL V7100, V7200
+.TP 8
+.B M62
+Mobility Radeon X1350
+.TP 8
+.B M64
+Mobility Radeon X1450, X2300
+.TP 8
+.B M66
+Mobility Radeon X1700, X1700 XT; FireGL V5250
+.TP 8
+.B M68
+Mobility Radeon X1900
+.TP 8
+.B M71
+Mobility Radeon HD 2300
+.TP 8
+.B M72
+Mobility Radeon HD 2400; Radeon E2400
+.TP 8
+.B M74
+Mobility Radeon HD 2400 XT
+.TP 8
+.B M76
+Mobility Radeon HD 2600;
+(Gemini ATI) Mobility Radeon HD 2600 XT
+.TP 8
+.B M82
+Mobility Radeon HD 3400
+.TP 8
+.B M86
+Mobility Radeon HD 3650, HD 3670, Mobility FireGL V5700
+.TP 8
+.B M88
+Mobility Radeon HD 3850, HD 3850 X2, HD 3870, HD3870 X2
+.TP 8
+.B RS600
+Radeon Xpress 1200, Xpress 1250
+.TP 8
+.B RS690
+Radeon X1200, X1250, X1270
+.TP 8
+.B RS740
+RS740, RS740M
+.TP 8
+.B RS780
+Radeon HD 3100/3200/3300 Series
+.TP 8
+.B R700
+Radeon R700
+.TP 8
+.B RV710
+Radeon HD4570, HD4350
+.TP 8
+.B RV730
+Radeon HD4670, HD4650
+.TP 8
+.B RV740
+Radeon HD4770. EXPERIMENTAL AND UNTESTED
+.TP 8
+.B RV770
+Radeon HD 4800 Series; Everest, K2, Denali ATI FirePro
+.TP 8
+.B RV790
+Radeon HD 4890
+.TP 8
+.B M92
+Mobility Radeon HD4330, HD4530, HD4570. EXPERIMENTAL
+.TP 8
+.B M93
+Mobility Radeon M93. EXPERIMENTAL AND UNTESTED
+.TP 8
+.B M96
+Mobility Radeon HD4600
+.TP 8
+.B M97
+Mobility Radeon HD4860. EXPERIMENTAL AND UNTESTED
+.TP 8
+.B M98
+Mobility Radeon HD4850, HD4870
--- ../README 2017-07-01 19:58:21.341321788 +0200
+++ README.new 2017-07-01 21:25:20.686656772 +0200
@@ -194,3 +194,52 @@
* M96: Mobility Radeon HD4600
* M97: Mobility Radeon HD4860. EXPERIMENTAL AND UNTESTED
* M98: Mobility Radeon HD4850, HD4870
+ * RV505: Radeon X1550, X1550 64bit
+ * RV515: Radeon X1300, X1550, X1600; FireGL V3300, V3350
+ * RV516: Radeon X1300, X1550, X1550 64-bit, X1600; FireMV 2250
+ * R520: Radeon X1800; FireGL V5300, V7200, V7300, V7350
+ * RV530: Radeon X1300 XT, X1600, X1600 Pro, X1650; FireGL V3400, V5200
+ * RV535: Radeon X1300, X1650
+ * RV550: Radeon X2300 HD
+ * RV560: Radeon X1650
+ * RV570: Radeon X1950, X1950 GT; FireGL V7400
+ * R580: Radeon X1900, X1950; AMD Stream Processor
+ * R600: Radeon HD 2900 GT/Pro/XT; FireGL V7600/V8600/V8650
+ * RV610: Radeon HD 2350, HD 2400 Pro/XT, HD 2400 Pro AGP; FireGL V4000
+ * RV620: Radeon HD 3450, HD 3470
+ * RV630: Radeon HD 2600 LE/Pro/XT, HD 2600 Pro/XT AGP; Gemini RV630;
+ FireGL V3600/V5600
+ * RV635: Radeon HD 3650, HD 3670
+ * RV670: Radeon HD 3690, 3850, HD 3870, FireGL V7700, FireStream 9170
+ * R680: Radeon HD 3870 X2
+ * M52: Mobility Radeon X1300
+ * M54: Mobility Radeon X1400; M54-GL
+ * M56: Mobility Radeon X1600; Mobility FireGL V5200
+ * M58: Mobility Radeon X1800, X1800 XT; Mobility FireGL V7100, V7200
+ * M62: Mobility Radeon X1350
+ * M64: Mobility Radeon X1450, X2300
+ * M66: Mobility Radeon X1700, X1700 XT; FireGL V5250
+ * M68: Mobility Radeon X1900
+ * M71: Mobility Radeon HD 2300
+ * M72: Mobility Radeon HD 2400; Radeon E2400
+ * M74: Mobility Radeon HD 2400 XT
+ * M76: Mobility Radeon HD 2600;
+ (Gemini ATI) Mobility Radeon HD 2600 XT
+ * M82: Mobility Radeon HD 3400
+ * M86: Mobility Radeon HD 3650, HD 3670, Mobility FireGL V5700
+ * M88: Mobility Radeon HD 3850, HD 3850 X2, HD 3870, HD3870 X2
+ * RS600: Radeon Xpress 1200, Xpress 1250
+ * RS690: Radeon X1200, X1250, X1270
+ * RS740: RS740, RS740M
+ * RS780: Radeon HD 3100/3200/3300 Series
+ * R700: Radeon R700
+ * RV710: Radeon HD4570, HD4350
+ * RV730: Radeon HD4670, HD4650
+ * RV740: Radeon HD4770. EXPERIMENTAL AND UNTESTED
+ * RV770: Radeon HD 4800 Series; Everest, K2, Denali ATI FirePro
+ * RV790: Radeon HD 4890
+ * M92: Mobility Radeon HD4330, HD4530, HD4570. EXPERIMENTAL
+ * M93: Mobility Radeon M93. EXPERIMENTAL AND UNTESTED
+ * M96: Mobility Radeon HD4600
+ * M97: Mobility Radeon HD4860. EXPERIMENTAL AND UNTESTED
+ * M98: Mobility Radeon HD4850, HD4870
WARNING: Due to changes to src/rhd_id.c, some files differ from the original ones.
Please verify the changes to the following files
../man/radeonhd.man
../README
and commit them together with your changes to
./rhd_id.c
Making all in man
Making all in utils/conntest